Lines Matching refs:ssl

55 static int verify_chain(SSL *ssl, STACK_OF(X509) *chain)  in verify_chain()  argument
64 || !TEST_ptr(ssl_ctx = SSL_get_SSL_CTX(ssl)) in verify_chain()
68 ssl))) in verify_chain()
71 X509_STORE_CTX_set_default(store_ctx, SSL_is_server(ssl) in verify_chain()
74 SSL_get0_param(ssl)); in verify_chain()
75 store_ctx_dane_init(store_ctx, ssl); in verify_chain()
77 if (SSL_get_verify_callback(ssl) != NULL) in verify_chain()
78 X509_STORE_CTX_set_verify_cb(store_ctx, SSL_get_verify_callback(ssl)); in verify_chain()
84 SSL_set_verify_result(ssl, X509_STORE_CTX_get_error(store_ctx)); in verify_chain()
243 static int tlsa_import_rr(SSL *ssl, const char *rrdata) in tlsa_import_rr() argument
268 ret = SSL_dane_tlsa_add(ssl, usage, selector, mtype, data, len); in tlsa_import_rr()
296 SSL *ssl; in test_tlsafile() local
322 if (!TEST_ptr(ssl = SSL_new(ctx))) in test_tlsafile()
324 SSL_set_connect_state(ssl); in test_tlsafile()
325 if (SSL_dane_enable(ssl, base_name) <= 0) { in test_tlsafile()
326 SSL_free(ssl); in test_tlsafile()
330 SSL_dane_set_flags(ssl, DANE_FLAG_NO_DANE_EE_NAMECHECKS); in test_tlsafile()
333 if ((line = read_to_eol(f)) == NULL || !tlsa_import_rr(ssl, line)) { in test_tlsafile()
334 SSL_free(ssl); in test_tlsafile()
342 SSL_free(ssl); in test_tlsafile()
346 ok = verify_chain(ssl, chain); in test_tlsafile()
348 err = SSL_get_verify_result(ssl); in test_tlsafile()
354 SSL_set_verify_result(ssl, X509_V_OK); in test_tlsafile()
355 mdpth = SSL_get0_dane_authority(ssl, NULL, NULL); in test_tlsafile()
357 SSL_set_verify_result(ssl, err); in test_tlsafile()
358 SSL_free(ssl); in test_tlsafile()
427 static void store_ctx_dane_init(X509_STORE_CTX *store_ctx, SSL *ssl) in store_ctx_dane_init() argument
429 X509_STORE_CTX_set0_dane(store_ctx, SSL_get0_dane(ssl)); in store_ctx_dane_init()