Home
last modified time | relevance | path

Searched refs:rsa_tmp (Results 1 – 8 of 8) sorted by relevance

/external/openssl/ssl/
Dssl_cert.c204 if (cert->rsa_tmp != NULL) in ssl_cert_dup()
206 RSA_up_ref(cert->rsa_tmp); in ssl_cert_dup()
207 ret->rsa_tmp = cert->rsa_tmp; in ssl_cert_dup()
315 if (ret->rsa_tmp != NULL) in ssl_cert_dup()
316 RSA_free(ret->rsa_tmp); in ssl_cert_dup()
360 if (c->rsa_tmp) RSA_free(c->rsa_tmp); in ssl_cert_free()
Dssltest.c2101 static RSA *rsa_tmp=NULL; variable
2106 if (rsa_tmp == NULL) in tmp_rsa_cb()
2109 rsa_tmp = RSA_new(); in tmp_rsa_cb()
2110 if(!bn || !rsa_tmp || !BN_set_word(bn, RSA_F4)) in tmp_rsa_cb()
2117 if(!RSA_generate_key_ex(rsa_tmp,keylength,bn,NULL)) in tmp_rsa_cb()
2120 RSA_free(rsa_tmp); in tmp_rsa_cb()
2121 rsa_tmp = NULL; in tmp_rsa_cb()
2128 return(rsa_tmp); in tmp_rsa_cb()
2133 if (rsa_tmp != NULL) in free_tmp_rsa()
2135 RSA_free(rsa_tmp); in free_tmp_rsa()
[all …]
Ds3_lib.c1802 if ((s->cert != NULL) && (s->cert->rsa_tmp == NULL) && in ssl3_ctrl()
1820 if (s->cert->rsa_tmp != NULL) in ssl3_ctrl()
1821 RSA_free(s->cert->rsa_tmp); in ssl3_ctrl()
1822 s->cert->rsa_tmp = rsa; in ssl3_ctrl()
2051 if ( (cert->rsa_tmp == NULL) && in ssl3_ctx_ctrl()
2080 if (cert->rsa_tmp != NULL) in ssl3_ctx_ctrl()
2081 RSA_free(cert->rsa_tmp); in ssl3_ctx_ctrl()
2082 cert->rsa_tmp=rsa; in ssl3_ctx_ctrl()
Dssl_lib.c1619 int rsa_enc,rsa_tmp,rsa_sign,dh_tmp,dh_rsa,dh_dsa,dsa_sign; in ssl_set_cert_masks() local
1636 rsa_tmp=(c->rsa_tmp != NULL || c->rsa_tmp_cb != NULL); in ssl_set_cert_masks()
1638 (rsa_tmp && RSA_size(c->rsa_tmp)*8 <= kl)); in ssl_set_cert_masks()
1640 rsa_tmp=rsa_tmp_export=0; in ssl_set_cert_masks()
1674 rsa_tmp,rsa_tmp_export,dh_tmp, in ssl_set_cert_masks()
1678 if (rsa_enc || (rsa_tmp && rsa_sign)) in ssl_set_cert_masks()
Dd1_srvr.c808 rsa=cert->rsa_tmp; in dtls1_send_server_key_exchange()
821 cert->rsa_tmp=rsa; in dtls1_send_server_key_exchange()
Ds3_srvr.c1252 rsa=cert->rsa_tmp; in ssl3_send_server_key_exchange()
1265 cert->rsa_tmp=rsa; in ssl3_send_server_key_exchange()
1765 if ((s->cert != NULL) && (s->cert->rsa_tmp != NULL)) in ssl3_get_client_key_exchange()
1766 rsa=s->cert->rsa_tmp; in ssl3_get_client_key_exchange()
Dssl_locl.h420 RSA *rsa_tmp; member
/external/openssl/apps/
Ds_server.c2427 static RSA *rsa_tmp=NULL; in tmp_rsa_cb() local
2429 if (!rsa_tmp && ((bn = BN_new()) == NULL)) in tmp_rsa_cb()
2431 if (!rsa_tmp && bn) in tmp_rsa_cb()
2438 if(!BN_set_word(bn, RSA_F4) || ((rsa_tmp = RSA_new()) == NULL) || in tmp_rsa_cb()
2439 !RSA_generate_key_ex(rsa_tmp, keylength, bn, NULL)) in tmp_rsa_cb()
2441 if(rsa_tmp) RSA_free(rsa_tmp); in tmp_rsa_cb()
2442 rsa_tmp = NULL; in tmp_rsa_cb()
2451 return(rsa_tmp); in tmp_rsa_cb()