"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "bin/test_cert.c" between
lsquic-2.22.1.tar.gz and lsquic-2.23.1.tar.gz

About: LSQUIC is LiteSpeed’s QUIC and HTTP/3 Library. A hint: HTTP/3 uses QUIC as the underlying transport protocol instead of TCP.

test_cert.c  (lsquic-2.22.1):test_cert.c  (lsquic-2.23.1)
skipping to change at line 92 skipping to change at line 92
cert->ce_ssl_ctx = SSL_CTX_new(TLS_method()); cert->ce_ssl_ctx = SSL_CTX_new(TLS_method());
if (!cert->ce_ssl_ctx) if (!cert->ce_ssl_ctx)
{ {
LSQ_ERROR("SSL_CTX_new failed"); LSQ_ERROR("SSL_CTX_new failed");
goto end; goto end;
} }
SSL_CTX_set_min_proto_version(cert->ce_ssl_ctx, TLS1_3_VERSION); SSL_CTX_set_min_proto_version(cert->ce_ssl_ctx, TLS1_3_VERSION);
SSL_CTX_set_max_proto_version(cert->ce_ssl_ctx, TLS1_3_VERSION); SSL_CTX_set_max_proto_version(cert->ce_ssl_ctx, TLS1_3_VERSION);
SSL_CTX_set_default_verify_paths(cert->ce_ssl_ctx); SSL_CTX_set_default_verify_paths(cert->ce_ssl_ctx);
SSL_CTX_set_alpn_select_cb(cert->ce_ssl_ctx, select_alpn, NULL); SSL_CTX_set_alpn_select_cb(cert->ce_ssl_ctx, select_alpn, NULL);
SSL_CTX_set_early_data_enabled(cert->ce_ssl_ctx, 1); /* XXX */ {
const char *const s = getenv("LSQUIC_ENABLE_EARLY_DATA");
if (!s || atoi(s))
SSL_CTX_set_early_data_enabled(cert->ce_ssl_ctx, 1); /* XXX */
}
if (1 != SSL_CTX_use_certificate_chain_file(cert->ce_ssl_ctx, cert_file)) if (1 != SSL_CTX_use_certificate_chain_file(cert->ce_ssl_ctx, cert_file))
{ {
LSQ_ERROR("SSL_CTX_use_certificate_chain_file failed: %s", cert_file); LSQ_ERROR("SSL_CTX_use_certificate_chain_file failed: %s", cert_file);
goto end; goto end;
} }
if (strstr(key_file, ".pkcs8")) if (strstr(key_file, ".pkcs8"))
{ {
f = fopen(key_file, "r"); f = fopen(key_file, "r");
if (!f) if (!f)
 End of changes. 1 change blocks. 
1 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)