Searched refs:privatekey (Results 1 - 11 of 11) sorted by relevance

/freebsd-11-stable/crypto/openssl/ssl/
H A Dssl_cert.c298 if (cpk->privatekey != NULL) {
299 rpk->privatekey = cpk->privatekey;
300 CRYPTO_add(&cpk->privatekey->references, 1, CRYPTO_LOCK_EVP_PKEY);
433 if (cpk->privatekey) {
434 EVP_PKEY_free(cpk->privatekey);
435 cpk->privatekey = NULL;
590 if (cpk->x509 == x && cpk->privatekey) {
598 if (cpk->privatekey && cpk->x509 && !X509_cmp(cpk->x509, x)) {
621 if (cpk->x509 && cpk->privatekey) {
[all...]
H A Dssl_rsa.c230 if (c->pkeys[i].privatekey != NULL)
231 EVP_PKEY_free(c->pkeys[i].privatekey);
233 c->pkeys[i].privatekey = pkey;
410 if (c->pkeys[i].privatekey != NULL) {
415 EVP_PKEY_copy_parameters(pkey, c->pkeys[i].privatekey);
423 if ((c->pkeys[i].privatekey->type == EVP_PKEY_RSA) &&
424 (RSA_flags(c->pkeys[i].privatekey->pkey.rsa) &
428 if (!X509_check_private_key(x, c->pkeys[i].privatekey)) {
434 EVP_PKEY_free(c->pkeys[i].privatekey);
435 c->pkeys[i].privatekey
[all...]
H A Ds2_srvr.c457 if (s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL) {
1145 if ((c == NULL) || (c->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL)) {
1149 if (c->pkeys[SSL_PKEY_RSA_ENC].privatekey->type != EVP_PKEY_RSA) {
1153 rsa = c->pkeys[SSL_PKEY_RSA_ENC].privatekey->pkey.rsa;
H A Dssl_lib.c961 if (ctx->cert->key->privatekey == NULL) {
967 (ctx->cert->key->x509, ctx->cert->key->privatekey));
985 if (ssl->cert->key->privatekey == NULL) {
990 ssl->cert->key->privatekey));
2297 rsa_enc_export = (rsa_enc && EVP_PKEY_size(cpk->privatekey) * 8 <= kl);
2304 dh_rsa_export = (dh_rsa && EVP_PKEY_size(cpk->privatekey) * 8 <= kl);
2308 dh_dsa_export = (dh_dsa && EVP_PKEY_size(cpk->privatekey) * 8 <= kl);
2326 if (cpk->x509 != NULL && cpk->privatekey != NULL) {
2331 if (cpk->x509 != NULL && cpk->privatekey != NULL) {
2602 (c->pkeys[SSL_PKEY_DSA_SIGN].privatekey !
[all...]
H A Dd1_srvr.c519 && (s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL
522 [SSL_PKEY_RSA_ENC].privatekey) *
H A Ds2_clnt.c763 (s->cert->key->privatekey == NULL)) {
856 if (!EVP_SignFinal(&ctx, d, &n, s->cert->key->privatekey)) {
H A Ds3_srvr.c491 && (s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL
494 [SSL_PKEY_RSA_ENC].privatekey) *
2238 pkey = s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey;
2411 skey = s->cert->pkeys[idx].privatekey;
2683 tkey = s->cert->pkeys[SSL_PKEY_ECC].privatekey->pkey.ec;
2943 pk = s->cert->pkeys[SSL_PKEY_GOST94].privatekey;
2945 pk = s->cert->pkeys[SSL_PKEY_GOST01].privatekey;
H A Ds3_lib.c3258 ((s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL) ||
3259 (EVP_PKEY_size(s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey) >
3750 ((cert->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL) ||
3751 (EVP_PKEY_size(cert->pkeys[SSL_PKEY_RSA_ENC].privatekey) >
H A Ds3_clnt.c2754 EVP_PKEY *clkey = s->cert->key->privatekey;
2849 * if ((s->cert->key->privatekey != NULL) &&
2850 * (s->cert->key->privatekey->type ==
2899 tkey = s->cert->key->privatekey->pkey.ec;
3262 pkey = s->cert->key->privatekey;
3387 if (!s->cert || !s->cert->key->x509 || !s->cert->key->privatekey)
3405 clkey = s->cert->key->privatekey;
H A Dssl_locl.h540 EVP_PKEY *privatekey; member in struct:cert_pkey_st
H A Dt1_lib.c3929 if (s->cert->pkeys[idx].privatekey) {
3931 if (EVP_PKEY_get_default_digest_nid(s->cert->pkeys[idx].privatekey,
4351 pk = cpk->privatekey;

Completed in 5300 milliseconds