Home
last modified time | relevance | path

Searched refs:privatekey (Results 1 – 15 of 15) sorted by relevance

/external/openssl/ssl/
Dssl_cert.c284 if (cert->pkeys[i].privatekey != NULL) in ssl_cert_dup()
286 ret->pkeys[i].privatekey = cert->pkeys[i].privatekey; in ssl_cert_dup()
287 CRYPTO_add(&ret->pkeys[i].privatekey->references, 1, in ssl_cert_dup()
352 if (ret->pkeys[i].privatekey != NULL) in ssl_cert_dup()
353 EVP_PKEY_free(ret->pkeys[i].privatekey); in ssl_cert_dup()
394 if (c->pkeys[i].privatekey != NULL) in ssl_cert_free()
395 EVP_PKEY_free(c->pkeys[i].privatekey); in ssl_cert_free()
482 if (sc->peer_pkeys[i].privatekey != NULL) in ssl_sess_cert_free()
483 EVP_PKEY_free(sc->peer_pkeys[i].privatekey); in ssl_sess_cert_free()
Dssl_rsa.c217 if (c->pkeys[i].privatekey != NULL) in ssl_set_pkey()
218 EVP_PKEY_free(c->pkeys[i].privatekey); in ssl_set_pkey()
220 c->pkeys[i].privatekey=pkey; in ssl_set_pkey()
414 if (c->pkeys[i].privatekey != NULL) in ssl_set_cert()
416 EVP_PKEY_copy_parameters(pkey,c->pkeys[i].privatekey); in ssl_set_cert()
422 if ((c->pkeys[i].privatekey->type == EVP_PKEY_RSA) && in ssl_set_cert()
423 (RSA_flags(c->pkeys[i].privatekey->pkey.rsa) & in ssl_set_cert()
428 if (!X509_check_private_key(x,c->pkeys[i].privatekey)) in ssl_set_cert()
434 EVP_PKEY_free(c->pkeys[i].privatekey); in ssl_set_cert()
435 c->pkeys[i].privatekey=NULL; in ssl_set_cert()
Dssl_lib.c902 if (ctx->cert->key->privatekey == NULL) in SSL_CTX_check_private_key()
907 return(X509_check_private_key(ctx->cert->key->x509, ctx->cert->key->privatekey)); in SSL_CTX_check_private_key()
928 if (ssl->cert->key->privatekey == NULL) in SSL_check_private_key()
934 ssl->cert->key->privatekey)); in SSL_check_private_key()
2083 rsa_enc= (cpk->x509 != NULL && cpk->privatekey != NULL); in ssl_set_cert_masks()
2084 rsa_enc_export=(rsa_enc && EVP_PKEY_size(cpk->privatekey)*8 <= kl); in ssl_set_cert_masks()
2086 rsa_sign=(cpk->x509 != NULL && cpk->privatekey != NULL); in ssl_set_cert_masks()
2088 dsa_sign=(cpk->x509 != NULL && cpk->privatekey != NULL); in ssl_set_cert_masks()
2090 dh_rsa= (cpk->x509 != NULL && cpk->privatekey != NULL); in ssl_set_cert_masks()
2091 dh_rsa_export=(dh_rsa && EVP_PKEY_size(cpk->privatekey)*8 <= kl); in ssl_set_cert_masks()
[all …]
Ds3_lib.c3142 ((s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL) || in ssl3_ctrl()
3143 (EVP_PKEY_size(s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey) > (512/8)))) in ssl3_ctrl()
3465 ((cert->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL) || in ssl3_ctx_ctrl()
3466 (EVP_PKEY_size(cert->pkeys[SSL_PKEY_RSA_ENC].privatekey) > (512/8))) in ssl3_ctx_ctrl()
3943 (s->cert->pkeys[SSL_PKEY_ECC].privatekey->pkey.ec != NULL) in ssl3_choose_cipher()
3944 && (s->cert->pkeys[SSL_PKEY_ECC].privatekey->pkey.ec->group != NULL) in ssl3_choose_cipher()
3945 && (s->cert->pkeys[SSL_PKEY_ECC].privatekey->pkey.ec->group->meth != NULL) in ssl3_choose_cipher()
3946 …&& (EC_METHOD_get_field_type(s->cert->pkeys[SSL_PKEY_ECC].privatekey->pkey.ec->group->meth) == NID… in ssl3_choose_cipher()
3958 …else if (EC_METHOD_get_field_type(s->cert->pkeys[SSL_PKEY_ECC].privatekey->pkey.ec->group->meth) =… in ssl3_choose_cipher()
3982 (s->cert->pkeys[SSL_PKEY_ECC].privatekey->pkey.ec != NULL) in ssl3_choose_cipher()
[all …]
Ds2_srvr.c443 if (s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL) in get_client_master_key()
1124 if ((c == NULL) || (c->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL)) in ssl_rsa_private_decrypt()
1129 if (c->pkeys[SSL_PKEY_RSA_ENC].privatekey->type != EVP_PKEY_RSA) in ssl_rsa_private_decrypt()
1134 rsa=c->pkeys[SSL_PKEY_RSA_ENC].privatekey->pkey.rsa; in ssl_rsa_private_decrypt()
Dd1_clnt.c1317 tkey = s->cert->key->privatekey->pkey.ec; in dtls1_send_client_key_exchange()
1555 pkey=s->cert->key->privatekey; in dtls1_send_client_verify()
1646 (s->cert->key->privatekey == NULL)) in dtls1_send_client_certificate()
Ds3_srvr.c487 && (s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL in IMPLEMENT_ssl3_meth_func()
489 …&& EVP_PKEY_size(s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey)*8 > SSL_C_EXPORT_PKEYLENGTH(s->s3->t… in IMPLEMENT_ssl3_meth_func()
2208 pkey=s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey; in ssl3_get_client_key_exchange()
2572 tkey = s->cert->pkeys[SSL_PKEY_ECC].privatekey->pkey.ec; in ssl3_get_client_key_exchange()
2852 pk = s->cert->pkeys[SSL_PKEY_GOST94].privatekey; in ssl3_get_client_key_exchange()
2854 pk = s->cert->pkeys[SSL_PKEY_GOST01].privatekey; in ssl3_get_client_key_exchange()
Ds2_clnt.c783 (s->cert->key->privatekey == NULL)) in client_certificate()
880 if (!EVP_SignFinal(&ctx,d,&n,s->cert->key->privatekey)) in client_certificate()
Ds3_clnt.c2669 tkey = s->cert->key->privatekey->pkey.ec; in ssl3_send_client_key_exchange()
2803 if (s->s3->tmp.cert_req && s->cert->key->privatekey) { in ssl3_send_client_key_exchange()
2804 if (EVP_PKEY_derive_set_peer(pkey_ctx,s->cert->key->privatekey) <=0) { in ssl3_send_client_key_exchange()
3022 pkey=s->cert->key->privatekey; in ssl3_send_client_verify()
3174 (s->cert->key->privatekey == NULL)) in ssl3_send_client_certificate()
Dd1_srvr.c478 && (s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL in IMPLEMENT_dtls1_meth_func()
480 …&& EVP_PKEY_size(s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey)*8 > SSL_C_EXPORT_PKEYLENGTH(s->s3->t… in IMPLEMENT_dtls1_meth_func()
Dssl_locl.h485 EVP_PKEY *privatekey; member
/external/ipsec-tools/src/racoon/samples/
Dracoon.conf.sample-plainrsa22 certificate_type plain_rsa "privatekey.rsa";
/external/openssl/patches/
Djsse.patch350 EVP_PKEY *privatekey;
Dchannelid.patch816 {ERR_REASON(SSL_R_NO_PRIVATEKEY) ,"no privatekey"},
/external/wpa_supplicant_8/wpa_supplicant/
DChangeLog1674 client_cert, privatekey, private_key_passwd