I think this is the right fix for other non-OpenSSL libs, based on the NSS fix
authorDaniel Stenberg <daniel@haxx.se>
Mon, 19 Nov 2007 09:24:24 +0000 (09:24 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 19 Nov 2007 09:24:24 +0000 (09:24 +0000)
from the other day. It is time to setup the internal SSL libs and treat them
with a "handler" struct similar to how we deal with the protocols these days...

lib/sslgen.c

index a8f4e25..42adbc8 100644 (file)
@@ -248,11 +248,13 @@ Curl_ssl_connect_nonblocking(struct connectdata *conn, int sockindex,
 #else
 #ifdef USE_QSOSSL
   *done = TRUE; /* fallback to BLOCKING */
+  conn->ssl[sockindex].use = TRUE;
   return Curl_qsossl_connect(conn, sockindex);
 #else
   /* not implemented!
      fallback to BLOCKING call. */
   *done = TRUE;
+  conn->ssl[sockindex].use = TRUE;
   return Curl_ssl_connect(conn, sockindex);
 #endif /* USE_QSOSSL */
 #endif /* USE_NSS */