Searched refs:dhpkey (Results 1 – 8 of 8) sorted by relevance
/openssl/test/helpers/ |
H A D | predefined_dhparams.c | 24 EVP_PKEY *dhpkey = NULL; in get_dh_from_pg_bn() local 45 return dhpkey; in get_dh_from_pg_bn() 53 EVP_PKEY *dhpkey = NULL; in get_dh_from_pg() local 63 dhpkey = get_dh_from_pg_bn(libctx, type, p, g, q); in get_dh_from_pg() 69 return dhpkey; in get_dh_from_pg() 155 EVP_PKEY *dhpkey = NULL; in get_dh2048() local 165 dhpkey = get_dh_from_pg_bn(libctx, "DH", p, g, NULL); in get_dh2048() 170 return dhpkey; in get_dh2048() 176 EVP_PKEY *dhpkey = NULL; in get_dh4096() local 186 dhpkey = get_dh_from_pg_bn(libctx, "DH", p, g, NULL); in get_dh4096() [all …]
|
/openssl/ssl/ |
H A D | ssl_conf.c | 607 EVP_PKEY *dhpkey = NULL; in cmd_DHParameters() local 620 = OSSL_DECODER_CTX_new_for_pkey(&dhpkey, "PEM", NULL, "DH", in cmd_DHParameters() 627 && dhpkey == NULL in cmd_DHParameters() 631 if (dhpkey == NULL) { in cmd_DHParameters() 641 if ((rv = SSL_CTX_set0_tmp_dh_pkey(cctx->ctx, dhpkey)) > 0) in cmd_DHParameters() 642 dhpkey = NULL; in cmd_DHParameters() 645 if ((rv = SSL_set0_tmp_dh_pkey(cctx->ssl, dhpkey)) > 0) in cmd_DHParameters() 646 dhpkey = NULL; in cmd_DHParameters() 649 EVP_PKEY_free(dhpkey); in cmd_DHParameters()
|
H A D | ssl_lib.c | 7458 int SSL_set0_tmp_dh_pkey(SSL *s, EVP_PKEY *dhpkey) in SSL_set0_tmp_dh_pkey() argument 7466 EVP_PKEY_get_security_bits(dhpkey), 0, dhpkey)) { in SSL_set0_tmp_dh_pkey() 7471 sc->cert->dh_tmp = dhpkey; in SSL_set0_tmp_dh_pkey() 7475 int SSL_CTX_set0_tmp_dh_pkey(SSL_CTX *ctx, EVP_PKEY *dhpkey) in SSL_CTX_set0_tmp_dh_pkey() argument 7478 EVP_PKEY_get_security_bits(dhpkey), 0, dhpkey)) { in SSL_CTX_set0_tmp_dh_pkey() 7483 ctx->cert->dh_tmp = dhpkey; in SSL_CTX_set0_tmp_dh_pkey()
|
/openssl/doc/man3/ |
H A D | SSL_CTX_set_tmp_dh_callback.pod | 16 int SSL_CTX_set0_tmp_dh_pkey(SSL_CTX *ctx, EVP_PKEY *dhpkey); 17 int SSL_set0_tmp_dh_pkey(SSL *s, EVP_PKEY *dhpkey); 75 respectively. The parameters should be supplied in the I<dhpkey> argument as 76 an B<EVP_PKEY> containing DH parameters. Ownership of the I<dhpkey> value is
|
/openssl/apps/ |
H A D | s_server.c | 2113 EVP_PKEY *dhpkey = NULL; in s_server_main() local 2121 if (dhpkey != NULL) { in s_server_main() 2128 if (dhpkey == NULL) { in s_server_main() 2136 EVP_PKEY_free(dhpkey); in s_server_main() 2143 EVP_PKEY_free(dhpkey); in s_server_main() 2144 EVP_PKEY_free(dhpkey); in s_server_main() 2161 dhpkey = dhpkey2; in s_server_main() 2164 if (dhpkey == NULL) { in s_server_main() 2169 EVP_PKEY_free(dhpkey); in s_server_main() 2172 dhpkey = NULL; in s_server_main() [all …]
|
/openssl/test/ |
H A D | ssl_old_test.c | 917 EVP_PKEY *dhpkey; in main() local 1527 dhpkey = get_dh1024dsa(libctx); in main() 1529 dhpkey = get_dh512(libctx); in main() 1531 dhpkey = get_dh4096(libctx); in main() 1533 dhpkey = get_dh2048(libctx); in main() 1535 if (dhpkey == NULL || !EVP_PKEY_up_ref(dhpkey)) { in main() 1536 EVP_PKEY_free(dhpkey); in main() 1541 if (!SSL_CTX_set0_tmp_dh_pkey(s_ctx, dhpkey)) in main() 1542 EVP_PKEY_free(dhpkey); in main() 1543 if (!SSL_CTX_set0_tmp_dh_pkey(s_ctx2, dhpkey)) in main() [all …]
|
H A D | sslapitest.c | 10319 EVP_PKEY *dhpkey = NULL; in get_tmp_dh_params() local 10347 tmp_dh_params = dhpkey; in get_tmp_dh_params() 10368 if (!TEST_ptr(dhpkey)) in tmp_dh_callback() 10377 ret = EVP_PKEY_get1_DH(dhpkey); in tmp_dh_callback() 10380 EVP_PKEY_free(dhpkey); in tmp_dh_callback() 10410 EVP_PKEY *dhpkey = NULL; in test_set_tmp_dh() local 10420 dhpkey = get_tmp_dh_params(); in test_set_tmp_dh() 10421 if (!TEST_ptr(dhpkey)) in test_set_tmp_dh() 10447 dhpkey = NULL; in test_set_tmp_dh() 10469 dhpkey = NULL; in test_set_tmp_dh() [all …]
|
/openssl/include/openssl/ |
H A D | ssl.h.in | 1516 int SSL_set0_tmp_dh_pkey(SSL *s, EVP_PKEY *dhpkey); 1517 int SSL_CTX_set0_tmp_dh_pkey(SSL_CTX *ctx, EVP_PKEY *dhpkey);
|
Completed in 78 milliseconds