We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8b9597 commit b1f99b3Copy full SHA for b1f99b3
1 file changed
src/main/tls.c
@@ -524,12 +524,12 @@ tls_session_t *tls_new_client_session(TALLOC_CTX *ctx, fr_tls_server_conf_t *con
524
* Always verify the peer, but only require a certificate
525
* if we're doing certificate auth, and not PSK.
526
*/
527
- verify_mode = SSL_VERIFY_PEER;
528
if (!conf->psk_identity) {
529
RDEBUG2("(TLS) Requiring Server certificate");
+ verify_mode = SSL_VERIFY_PEER;
530
verify_mode |= SSL_VERIFY_FAIL_IF_NO_PEER_CERT;
531
+ SSL_set_verify(ssn->ssl, verify_mode, cbtls_verify);
532
}
- SSL_set_verify(ssn->ssl, verify_mode, cbtls_verify);
533
534
SSL_set_ex_data(ssn->ssl, FR_TLS_EX_INDEX_CONF, (void *)conf);
535
SSL_set_ex_data(ssn->ssl, FR_TLS_EX_INDEX_SSN, (void *)ssn);
0 commit comments