Skip to content

Commit 95b5584

Browse files
committed
Add accidentally deleted lines
1 parent c2ee9d5 commit 95b5584

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/libmongoc/src/mongoc/mongoc-stream-tls-secure-channel.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -970,6 +970,14 @@ mongoc_secure_channel_cred_new(const mongoc_ssl_opt_t *opt)
970970
printf("Enabling TLS 1.3 with Secure Channel \n");
971971
}
972972

973+
if (opt->ca_file) {
974+
mongoc_secure_channel_setup_ca(opt);
975+
}
976+
977+
if (opt->crl_file) {
978+
mongoc_secure_channel_setup_crl(opt);
979+
}
980+
973981
if (opt->pem_file) {
974982
cred->cert = mongoc_secure_channel_setup_certificate(opt);
975983
}
@@ -979,13 +987,16 @@ mongoc_secure_channel_cred_new(const mongoc_ssl_opt_t *opt)
979987
if (_mongoc_verify_windows_version(10, 0, 17763, false)) {
980988
cred->cred = _mongoc_secure_channel_sch_credentials_new(opt, cred->cert, enabled_protocols);
981989
cred->cred_type = sch_credentials;
990+
printf("Using SCH_CREDENTIALS\n");
982991
} else {
983992
cred->cred = _mongoc_secure_channel_schannel_cred_new(opt, cred->cert, enabled_protocols);
984993
cred->cred_type = schannel_cred;
994+
printf("Using SCHANNEL_CREDS\n");
985995
}
986996
#else
987997
cred->cred = _mongoc_secure_channel_schannel_cred_new(opt, cred->cert, enabled_protocols);
988998
cred->cred_type = schannel_cred;
999+
printf("Using SCHANNEL_CREDS\n");
9891000
#endif
9901001

9911002
return cred;

0 commit comments

Comments
 (0)