Lines Matching defs:libctx
62 static OSSL_LIB_CTX *libctx = NULL;
363 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
447 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
578 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
601 if (!TEST_ptr((crt1 = load_cert_pem(int1, libctx)))
602 || !TEST_ptr((crt2 = load_cert_pem(int2, libctx)))
651 if (!TEST_ptr(ssl_ctx = SSL_CTX_new_ex(libctx, NULL, TLS_server_method())))
690 if (!TEST_ptr(ctx = SSL_CTX_new_ex(libctx, NULL, TLS_server_method())))
758 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
800 if (!create_ssl_ctx_pair(libctx, TLS_server_method(), TLS_client_method(),
859 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
967 if (!TEST_ptr(chaincert = X509_new_ex(libctx, NULL)))
975 if (!TEST_true(create_ssl_ctx_pair(libctx, smeth, cmeth, min_version,
1176 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
1315 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
1349 if (!TEST_int_gt(RAND_bytes_ex(libctx, buf, SENDFILE_SZ, 0), 0))
1609 if (!TEST_true(create_ssl_ctx_pair(libctx, smeth, cmeth, prot, prot,
1686 if (!TEST_true(create_ssl_ctx_pair(libctx,
1821 if (id == NULL || !OCSP_RESPID_match_ex(id, ocspcert, libctx, NULL))
1865 if (!create_ssl_ctx_pair(libctx, TLS_server_method(), TLS_client_method(),
1951 || !TEST_ptr(ocspcert = X509_new_ex(libctx, NULL))
1953 || !TEST_true(OCSP_RESPID_set_by_key_ex(id, ocspcert, libctx, NULL))
2034 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
2428 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
2628 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
2916 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
3020 if (!TEST_ptr(ctx = SSL_CTX_new_ex(libctx, NULL, TLS_method()))
3141 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
3390 && !TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
3718 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
3866 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
4597 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
4667 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
4896 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
5071 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
5251 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
5352 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
5615 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
5845 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
5851 && !TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(), NULL,
6138 if (!TEST_true(create_ssl_ctx_pair(libctx,
6227 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
6439 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
6502 || !TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
6586 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
6671 || !TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
6760 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
6840 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
6951 if (!TEST_true(create_ssl_ctx_pair(libctx, NULL, TLS_client_method(),
7001 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
7100 &row[DB_srpverifier], NULL, NULL, libctx, NULL);
7157 lgN->N, lgN->g, libctx, NULL)))
7224 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
7486 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
7549 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
7556 if (!TEST_true(create_ssl_ctx_pair(libctx, DTLS_server_method(),
7709 * libctx, we want one peer to always use the full set of ciphersuites
7710 * available. Therefore we use a separate libctx with the default provider
7724 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
7852 aes128cbc = EVP_CIPHER_fetch(libctx, "AES-128-CBC", NULL);
7855 sha256 = EVP_MD_fetch(libctx, "SHA-256", NULL);
7894 aes128cbc = EVP_CIPHER_fetch(libctx, "AES-128-CBC", NULL);
7996 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
8107 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
8177 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
8352 || !TEST_ptr(rootx = X509_new_ex(libctx, NULL))
8360 || !TEST_ptr(x509 = X509_new_ex(libctx, NULL))
8368 libctx, NULL)))
8421 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
8436 snictx = SSL_CTX_new_ex(libctx, NULL, TLS_server_method());
8514 if (!TEST_ptr(xcert = X509_new_ex(libctx, NULL))
8519 libctx, NULL)))
8550 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
8614 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
8762 ciph = EVP_CIPHER_fetch(libctx, fetchable_ciphers[test_index], "");
8772 if (!TEST_true(create_ssl_ctx_pair(libctx, smeth, cmeth, min_version,
8833 if (!TEST_ptr(ctx = SSL_CTX_new_ex(libctx, NULL, TLS_method()))
8966 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
9089 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
9232 OSSL_LIB_CTX *clientctx = libctx, *serverctx = libctx;
9251 * or accepted for the peer that uses this libctx. Note that libssl
9278 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
9285 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
9372 OSSL_PROVIDER *tlsprov = OSSL_PROVIDER_load(libctx, "tls-provider");
9374 OSSL_PROVIDER *legacyprov = OSSL_PROVIDER_load(libctx, "legacy");
9380 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
9424 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
9502 pctx = EVP_PKEY_CTX_new_from_name(libctx, "DH", NULL);
9609 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
9745 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
9811 sctx = SSL_CTX_new_ex(libctx, NULL, TLS_server_method());
9815 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
9873 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
9929 ctx = SSL_CTX_new_ex(libctx, NULL, TLS_server_method());
9995 ctx = SSL_CTX_new_ex(libctx, NULL, TLS_server_method());
10075 ctx = SSL_CTX_new_ex(libctx, NULL, TLS_server_method());
10160 ctx = SSL_CTX_new_ex(libctx, NULL, TLS_server_method());
10202 if (!TEST_ptr(ctx = SSL_CTX_new_ex(libctx, NULL, TLS_client_method()))
10267 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
10298 if (!TEST_int_gt(RAND_bytes_ex(libctx, msg, msglen, 0), 0))
10497 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
10597 libctx = OSSL_LIB_CTX_new();
10598 if (!TEST_ptr(libctx))
10604 * Verify that the default and fips providers in the default libctx are not
10624 if (!TEST_true(OSSL_LIB_CTX_load_config(libctx, configfile)))
10628 if (!TEST_true(OSSL_PROVIDER_available(libctx, modulename)))
10633 && !TEST_false(OSSL_PROVIDER_available(libctx, "default")))
10643 if (!TEST_true(OSSL_PROVIDER_add_builtin(libctx, "tls-provider",
10895 OSSL_LIB_CTX_free(libctx);