version 1.29, 2000/09/07 21:13:36 |
version 1.30, 2000/10/03 18:03:03 |
|
|
#include <openssl/rsa.h> |
#include <openssl/rsa.h> |
#include <openssl/md5.h> |
#include <openssl/md5.h> |
|
|
|
|
|
/* import */ |
|
extern ServerOptions options; |
|
|
/* |
/* |
* Session identifier that is used to bind key exchange and authentication |
* Session identifier that is used to bind key exchange and authentication |
* responses to a particular session. |
* responses to a particular session. |
|
|
int |
int |
auth_rsa(struct passwd *pw, BIGNUM *client_n) |
auth_rsa(struct passwd *pw, BIGNUM *client_n) |
{ |
{ |
extern ServerOptions options; |
|
char line[8192], file[1024]; |
char line[8192], file[1024]; |
int authenticated; |
int authenticated; |
unsigned int bits; |
unsigned int bits; |
|
|
unsigned long linenum = 0; |
unsigned long linenum = 0; |
struct stat st; |
struct stat st; |
RSA *pk; |
RSA *pk; |
|
|
|
/* no user given */ |
|
if (pw == NULL) |
|
return 0; |
|
|
/* Temporarily use the user's uid. */ |
/* Temporarily use the user's uid. */ |
temporarily_use_uid(pw->pw_uid); |
temporarily_use_uid(pw->pw_uid); |