- Changed origins of random function and pointer in rsa_pkcs1_encrypt, rsa_init, rsa_gen_key.
Moved to parameters of function instead of context pointers as within ssl_cli, context pointer cannot be set easily.
This commit is contained in:
parent
61c324bbdd
commit
21eb2802fe
4 changed files with 32 additions and 26 deletions
|
@ -584,7 +584,9 @@ static int ssl_write_client_key_exchange( ssl_context *ssl )
|
|||
ssl->out_msg[5] = (unsigned char)( n );
|
||||
}
|
||||
|
||||
ret = rsa_pkcs1_encrypt( &ssl->peer_cert->rsa, RSA_PUBLIC,
|
||||
ret = rsa_pkcs1_encrypt( &ssl->peer_cert->rsa,
|
||||
ssl->f_rng, ssl->p_rng,
|
||||
RSA_PUBLIC,
|
||||
ssl->pmslen, ssl->premaster,
|
||||
ssl->out_msg + i );
|
||||
if( ret != 0 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue