version 1.86, 2014/01/27 19:18:54 |
version 1.87, 2014/06/24 01:13:21 |
|
|
challenge = PRIVSEP(auth_rsa_generate_challenge(key)); |
challenge = PRIVSEP(auth_rsa_generate_challenge(key)); |
|
|
/* Encrypt the challenge with the public key. */ |
/* Encrypt the challenge with the public key. */ |
rsa_public_encrypt(encrypted_challenge, challenge, key->rsa); |
if (rsa_public_encrypt(encrypted_challenge, challenge, key->rsa) != 0) |
|
fatal("%s: rsa_public_encrypt failed", __func__); |
|
|
/* Send the encrypted challenge to the client. */ |
/* Send the encrypted challenge to the client. */ |
packet_start(SSH_SMSG_AUTH_RSA_CHALLENGE); |
packet_start(SSH_SMSG_AUTH_RSA_CHALLENGE); |