Lines Matching refs:pkeys
175 ret->key= &(ret->pkeys[SSL_PKEY_RSA_ENC]); in ssl_cert_new()
194 ret->key = &ret->pkeys[cert->key - &cert->pkeys[0]]; in ssl_cert_dup()
261 if (cert->pkeys[i].x509 != NULL) in ssl_cert_dup()
263 ret->pkeys[i].x509 = cert->pkeys[i].x509; in ssl_cert_dup()
264 CRYPTO_add(&ret->pkeys[i].x509->references, 1, in ssl_cert_dup()
268 if (cert->pkeys[i].privatekey != NULL) in ssl_cert_dup()
270 ret->pkeys[i].privatekey = cert->pkeys[i].privatekey; in ssl_cert_dup()
271 CRYPTO_add(&ret->pkeys[i].privatekey->references, 1, in ssl_cert_dup()
330 if (ret->pkeys[i].x509 != NULL) in ssl_cert_dup()
331 X509_free(ret->pkeys[i].x509); in ssl_cert_dup()
332 if (ret->pkeys[i].privatekey != NULL) in ssl_cert_dup()
333 EVP_PKEY_free(ret->pkeys[i].privatekey); in ssl_cert_dup()
372 if (c->pkeys[i].x509 != NULL) in ssl_cert_free()
373 X509_free(c->pkeys[i].x509); in ssl_cert_free()
374 if (c->pkeys[i].privatekey != NULL) in ssl_cert_free()
375 EVP_PKEY_free(c->pkeys[i].privatekey); in ssl_cert_free()
377 if (c->pkeys[i].publickey != NULL) in ssl_cert_free()
378 EVP_PKEY_free(c->pkeys[i].publickey); in ssl_cert_free()