version 1.20, 1999/11/11 23:36:53 |
version 1.21, 1999/11/15 20:53:25 |
|
|
/* Tries to authenticate the user using the .rhosts file and the host using |
/* Tries to authenticate the user using the .rhosts file and the host using |
its host key. Returns true if authentication succeeds. */ |
its host key. Returns true if authentication succeeds. */ |
int auth_rhosts_rsa(struct passwd *pw, const char *client_user, |
int auth_rhosts_rsa(struct passwd *pw, const char *client_user, |
unsigned int bits, BIGNUM *client_host_key_e, |
BIGNUM *client_host_key_e, BIGNUM *client_host_key_n); |
BIGNUM *client_host_key_n); |
|
|
|
/* Tries to authenticate the user using password. Returns true if |
/* Tries to authenticate the user using password. Returns true if |
authentication succeeds. */ |
authentication succeeds. */ |
|
|
HOST_NEW if the host is not known, and HOST_CHANGED if the host is known |
HOST_NEW if the host is not known, and HOST_CHANGED if the host is known |
but used to have a different host key. The host must be in all lowercase. */ |
but used to have a different host key. The host must be in all lowercase. */ |
typedef enum { HOST_OK, HOST_NEW, HOST_CHANGED } HostStatus; |
typedef enum { HOST_OK, HOST_NEW, HOST_CHANGED } HostStatus; |
HostStatus check_host_in_hostfile(const char *filename, |
HostStatus check_host_in_hostfile(const char *filename, const char *host, |
const char *host, unsigned int bits, |
BIGNUM *e, BIGNUM *n, BIGNUM *ke, BIGNUM *kn); |
BIGNUM *e, BIGNUM *n, |
|
BIGNUM *ke, BIGNUM *kn); |
|
|
|
/* Appends an entry to the host file. Returns false if the entry |
/* Appends an entry to the host file. Returns false if the entry |
could not be appended. */ |
could not be appended. */ |
int add_host_to_hostfile(const char *filename, const char *host, |
int add_host_to_hostfile(const char *filename, const char *host, |
unsigned int bits, BIGNUM *e, BIGNUM *n); |
BIGNUM *e, BIGNUM *n); |
|
|
/* Performs the RSA authentication challenge-response dialog with the client, |
/* Performs the RSA authentication challenge-response dialog with the client, |
and returns true (non-zero) if the client gave the correct answer to |
and returns true (non-zero) if the client gave the correct answer to |
our challenge; returns zero if the client gives a wrong answer. */ |
our challenge; returns zero if the client gives a wrong answer. */ |
int auth_rsa_challenge_dialog(unsigned int bits, BIGNUM *e, BIGNUM *n); |
int auth_rsa_challenge_dialog(BIGNUM *e, BIGNUM *n); |
|
|
/* Reads a passphrase from /dev/tty with echo turned off. Returns the |
/* Reads a passphrase from /dev/tty with echo turned off. Returns the |
passphrase (allocated with xmalloc). Exits if EOF is encountered. |
passphrase (allocated with xmalloc). Exits if EOF is encountered. |