Skip to content

Commit 501da57

Browse files
authored
Merge pull request #1673 from davidk-ad8/verifier-allow-null-sni
Allow OpenSSL verifier to be called with NULL SNI
2 parents 3e3f946 + 3fbd1cc commit 501da57

File tree

5 files changed

+6
-11
lines changed

5 files changed

+6
-11
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ if(PICOQUIC_FETCH_PTLS)
209209
include(FetchContent)
210210
FetchContent_Declare(picotls
211211
GIT_REPOSITORY https://github.com/h2o/picotls.git
212-
GIT_TAG af66fc4aa8853b0725fcb2c18a702e8f1c656cf1)
212+
GIT_TAG 5a4461d8a3948d9d26bf861e7d90cb80d8093515)
213213
FetchContent_MakeAvailable(picotls)
214214
endif()
215215

ci/build_picotls.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build at a known-good commit
2-
$COMMIT_ID=" af66fc4aa8853b0725fcb2c18a702e8f1c656cf1"
2+
$COMMIT_ID=" 5a4461d8a3948d9d26bf861e7d90cb80d8093515"
33

44
# Match expectations of picotlsvs project.
55
mkdir $dir\include\

ci/build_picotls.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#build last picotls master (for Travis)
33

44
# Build at a known-good commit
5-
COMMIT_ID= af66fc4aa8853b0725fcb2c18a702e8f1c656cf1
5+
COMMIT_ID= 5a4461d8a3948d9d26bf861e7d90cb80d8093515
66

77
cd ..
88
# git clone --branch master --single-branch --shallow-submodules --recurse-submodules --no-tags https://github.com/h2o/picotls

picoquic/quicctx.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3786,11 +3786,9 @@ picoquic_cnx_t* picoquic_create_cnx(picoquic_quic_t* quic,
37863786

37873787
cnx->cnx_state = picoquic_state_client_init;
37883788

3789-
if (!quic->is_cert_store_not_empty || sni == NULL) {
3790-
/* This is a hack. The open SSL certifier crashes if no name is specified,
3791-
* and always fails if no certificate is stored, so we just use a NULL verifier */
3792-
picoquic_log_app_message(cnx, "%s -- certificate will not be verified.\n",
3793-
(sni == NULL) ? "No server name specified" : "No root crt list specified");
3789+
if (!quic->is_cert_store_not_empty) {
3790+
/* The open SSL certifier always fails if no certificate is stored, so we just use a NULL verifier */
3791+
picoquic_log_app_message(cnx, "No root crt list specified -- certificate will not be verified.\n");
37943792

37953793
picoquic_set_null_verifier(quic);
37963794
}

picoquictest/tls_api_test.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2175,9 +2175,6 @@ static int tls_api_test_with_loss(uint64_t* loss_mask, uint32_t proposed_version
21752175
{
21762176
DBG_PRINTF("Could not create the QUIC test contexts for V=%x\n", proposed_version);
21772177
}
2178-
else if (sni == NULL) {
2179-
picoquic_set_null_verifier(test_ctx->qclient);
2180-
}
21812178

21822179
if (ret == 0) {
21832180
ret = tls_api_connection_loop(test_ctx, loss_mask, 0, &simulated_time);

0 commit comments

Comments
 (0)