Juan Lang : wininet: Don't retrieve a certificate that isn't used.

Alexandre Julliard julliard at winehq.org
Thu Dec 2 16:30:50 CST 2010


Module: wine
Branch: stable
Commit: 8dd32cff81e0629e62f7f3f06c915801bf223e6a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8dd32cff81e0629e62f7f3f06c915801bf223e6a

Author: Juan Lang <juan.lang at gmail.com>
Date:   Tue Sep 28 18:10:40 2010 -0700

wininet: Don't retrieve a certificate that isn't used.
(cherry picked from commit 181a367a1f77ae3b88e0e36dcad7b0840b920de6)

---

 dlls/wininet/netconnection.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)

diff --git a/dlls/wininet/netconnection.c b/dlls/wininet/netconnection.c
index 12aef21..08152f5 100644
--- a/dlls/wininet/netconnection.c
+++ b/dlls/wininet/netconnection.c
@@ -641,7 +641,6 @@ DWORD NETCON_secure_connect(WININET_NETCONNECTION *connection, LPWSTR hostname)
     DWORD res = ERROR_NOT_SUPPORTED;
 #ifdef SONAME_LIBSSL
     long verify_res;
-    X509 *cert;
 
     /* can't connect if we are already connected */
     if (connection->useSSL)
@@ -689,14 +688,6 @@ DWORD NETCON_secure_connect(WININET_NETCONNECTION *connection, LPWSTR hostname)
         res = ERROR_INTERNET_SECURITY_CHANNEL_ERROR;
         goto fail;
     }
-    cert = pSSL_get_peer_certificate(connection->ssl_s);
-    if (!cert)
-    {
-        ERR("no certificate for server %s\n", debugstr_w(hostname));
-        /* FIXME: is this the best error? */
-        res = ERROR_INTERNET_INVALID_CA;
-        goto fail;
-    }
     verify_res = pSSL_get_verify_result(connection->ssl_s);
     if (verify_res != X509_V_OK)
     {




More information about the wine-cvs mailing list