version 1.34, 2001/06/23 02:34:32 |
version 1.35, 2001/06/23 15:12:21 |
|
|
* Checks if the user has an authentication agent, and if so, tries to |
* Checks if the user has an authentication agent, and if so, tries to |
* authenticate using the agent. |
* authenticate using the agent. |
*/ |
*/ |
int |
static int |
try_agent_authentication(void) |
try_agent_authentication(void) |
{ |
{ |
int type; |
int type; |
|
|
* Computes the proper response to a RSA challenge, and sends the response to |
* Computes the proper response to a RSA challenge, and sends the response to |
* the server. |
* the server. |
*/ |
*/ |
void |
static void |
respond_to_rsa_challenge(BIGNUM * challenge, RSA * prv) |
respond_to_rsa_challenge(BIGNUM * challenge, RSA * prv) |
{ |
{ |
u_char buf[32], response[16]; |
u_char buf[32], response[16]; |
|
|
* Checks if the user has authentication file, and if so, tries to authenticate |
* Checks if the user has authentication file, and if so, tries to authenticate |
* the user using it. |
* the user using it. |
*/ |
*/ |
int |
static int |
try_rsa_authentication(const char *authfile) |
try_rsa_authentication(const char *authfile) |
{ |
{ |
BIGNUM *challenge; |
BIGNUM *challenge; |
|
|
* Tries to authenticate the user using combined rhosts or /etc/hosts.equiv |
* Tries to authenticate the user using combined rhosts or /etc/hosts.equiv |
* authentication and RSA host authentication. |
* authentication and RSA host authentication. |
*/ |
*/ |
int |
static int |
try_rhosts_rsa_authentication(const char *local_user, Key * host_key) |
try_rhosts_rsa_authentication(const char *local_user, Key * host_key) |
{ |
{ |
int type; |
int type; |
|
|
} |
} |
|
|
#ifdef KRB4 |
#ifdef KRB4 |
int |
static int |
try_kerberos_authentication(void) |
try_kerberos_authentication(void) |
{ |
{ |
KTEXT_ST auth; /* Kerberos data */ |
KTEXT_ST auth; /* Kerberos data */ |
|
|
#endif /* KRB4 */ |
#endif /* KRB4 */ |
|
|
#ifdef AFS |
#ifdef AFS |
int |
static int |
send_kerberos_tgt(void) |
send_kerberos_tgt(void) |
{ |
{ |
CREDENTIALS *creds; |
CREDENTIALS *creds; |
|
|
return 1; |
return 1; |
} |
} |
|
|
void |
static void |
send_afs_tokens(void) |
send_afs_tokens(void) |
{ |
{ |
CREDENTIALS creds; |
CREDENTIALS creds; |
|
|
* Tries to authenticate with any string-based challenge/response system. |
* Tries to authenticate with any string-based challenge/response system. |
* Note that the client code is not tied to s/key or TIS. |
* Note that the client code is not tied to s/key or TIS. |
*/ |
*/ |
int |
static int |
try_challenge_response_authentication(void) |
try_challenge_response_authentication(void) |
{ |
{ |
int type, i; |
int type, i; |
|
|
/* |
/* |
* Tries to authenticate with plain passwd authentication. |
* Tries to authenticate with plain passwd authentication. |
*/ |
*/ |
int |
static int |
try_password_authentication(char *prompt) |
try_password_authentication(char *prompt) |
{ |
{ |
int type, i, payload_len; |
int type, i, payload_len; |