Changeset: 68582346a109 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/68582346a109
Modified Files:
        clients/mapilib/openssl_windows.c
Branch: monetdburl
Log Message:

Switch back to "ROOT" certificate store on Windows.

Also be less verbose.


diffs (30 lines):

diff --git a/clients/mapilib/openssl_windows.c 
b/clients/mapilib/openssl_windows.c
--- a/clients/mapilib/openssl_windows.c
+++ b/clients/mapilib/openssl_windows.c
@@ -32,7 +32,7 @@ process_sysstore_item(Mapi mid, X509_STO
        bool is_x509 = (typ & X509_ASN_ENCODING);
        bool is_pkcs7 = (typ & PKCS_7_ASN_ENCODING);
 
-       mapi_log_data(mid, "CERT", (char*)data, size);
+       // mapi_log_data(mid, "CERT", (char*)data, size);
 
        if (!is_x509)
                return mapi_printError(mid, __func__, MERROR, "sys store 
certificate #%d must be in X509 format", nr);
@@ -62,7 +62,7 @@ add_system_certificates(Mapi mid, SSL_CT
 
        mapi_log_record(mid, "CONN", "Enumerating system certificates");
 
-       sysstore = CertOpenSystemStoreW(0, L"CA");
+       sysstore = CertOpenSystemStoreW(0, L"ROOT");
        if (!sysstore)
                return croak_win32(mid, __func__, GetLastError());
 
@@ -89,7 +89,7 @@ add_system_certificates(Mapi mid, SSL_CT
                case ERROR_NO_MORE_FILES:
                        // Normal exit codes according to the documentation at
                        // 
https://learn.microsoft.com/en-us/windows/win32/api/wincrypt/nf-wincrypt-certenumcertificatesinstore
-                       mapi_log_record(mid, "CONN", "Added %d certificates", 
count);
+                       mapi_log_record(mid, "CONN", "Found %d certificates", 
count);
                        return MOK;
                default:
                        // Anything else is problematic
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to