mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-06-19 19:33:38 +08:00
Add client_cert_optional to tlcp/tls12
This commit is contained in:
@@ -401,6 +401,13 @@ bad:
|
||||
}
|
||||
}
|
||||
|
||||
if (client_cert_optional) {
|
||||
if (tls_ctx_enable_client_certificate_optional(&ctx, 1) != 1) {
|
||||
error_print();
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (alpn_protocols_cnt) {
|
||||
if (tls_ctx_set_application_layer_protocol_negotiation(&ctx,
|
||||
alpn_protocols, alpn_protocols_cnt) != 1) {
|
||||
|
||||
Reference in New Issue
Block a user