Brushing off enough dust to be able to initiate HTTP requests from the server.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4345 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2023-07-15 01:48:36 +00:00
parent 18128303b6
commit 73bbcebddb
3 changed files with 62 additions and 1 deletions

View File

@ -154,6 +154,7 @@ void tf_tls_session_start_connect(tf_tls_session_t* session)
X509_VERIFY_PARAM* param = SSL_get0_param(session->ssl);
X509_VERIFY_PARAM_set_hostflags(param, X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS);
X509_VERIFY_PARAM_set1_host(param, session->hostname, 0);
SSL_set_tlsext_host_name(session->ssl, session->hostname);
SSL_set_bio(session->ssl, session->bio_in, session->bio_out);
SSL_connect(session->ssl);
tf_tls_session_handshake(session);