We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b902494 commit 3ce6e09Copy full SHA for 3ce6e09
src/IdSSLOpenSSLSocket.pas
@@ -717,14 +717,12 @@ procedure TIdSSLContext.InitContext(CtxMode: TIdSSLCtxMode);
717
SSL_CTX_set_default_passwd_cb_userdata(fContext, Self);
718
// end;
719
720
+ {$IFDEF USE_WINDOWS_CERT_STORE}
721
if fUseSystemRootCertificateStore then
- begin
722
- {$IFDEF USE_WINDOWS_CERT_STORE}
723
- LoadWindowsCertStore;
724
- {$ELSE}
725
- SSL_CTX_set_default_verify_paths(fContext);
726
- {$ENDIF}
727
- end;
+ LoadWindowsCertStore
+ else
+ {$ENDIF}
+ SSL_CTX_set_default_verify_paths(fContext);
728
// load key and certificate files
729
if (RootCertFile <> '') or (VerifyDirs <> '') then begin {Do not Localize}
730
if not LoadRootCert then begin
0 commit comments