Lines Matching defs:private_key
240 EVP_PKEY *private_key; /* the private key if using engine */
1185 conn->private_key = EVP_PKEY_from_keystore(key_id);
1186 if (!conn->private_key) {
1238 conn->private_key = ENGINE_load_private_key(conn->engine,
1241 if (!conn->private_key) {
1278 if (conn->private_key) {
1279 EVP_PKEY_free(conn->private_key);
1280 conn->private_key = NULL;
1294 if (conn->private_key) {
1295 EVP_PKEY_free(conn->private_key);
1296 conn->private_key = NULL;
3440 const char *private_key, const char *passwd)
3446 f = fopen(private_key, "rb");
3606 if (SSL_use_PrivateKey(conn->ssl, conn->private_key) != 1) {
3637 const char *private_key,
3646 bio = BIO_new_file(private_key, "r");
3656 bio = BIO_new_file(private_key, "r");
3685 const char *private_key,
3692 if (private_key == NULL && private_key_blob == NULL)
3736 while (!ok && private_key) {
3737 if (tls_use_private_key_file(data, conn->ssl, private_key,
3743 if (tls_read_pkcs12(data, conn->ssl, private_key,
3751 if (tls_cryptoapi_cert(conn->ssl, private_key) == 0) {
3780 const char *private_key,
3785 if (private_key == NULL)
3788 if (tls_use_private_key_file(data, NULL, private_key,
3790 tls_read_pkcs12(data, NULL, private_key, private_key_passwd)) {
4923 if (!key_id && params->private_key && can_pkcs11 &&
4924 os_strncmp(params->private_key, "pkcs11:", 7) == 0) {
4926 key_id = params->private_key;
5012 params->private_key,
5017 params->private_key);
5247 tls_global_private_key(data, params->private_key,