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

Microsoft crypt library seems to always return error at the end


diffs (16 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
@@ -87,6 +87,12 @@ add_system_certificates(Mapi mid, SSL_CT
        DWORD error = GetLastError();
        assert(item == NULL);
        CertCloseStore(sysstore, 0);
+
+       // Microsoft is very unclear about the error conditions,
+       // I get the impression we can just ignore them.
+       // (For example in their own example code).
+       error = 0;
+
        switch (error) {
                case 0:
                case CRYPT_E_NOT_FOUND:
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to