]> granicus.if.org Git - curl/commitdiff
axtls_connect: allow connect without peer verification
authorDaniel Stenberg <daniel@haxx.se>
Wed, 15 Dec 2010 10:11:20 +0000 (11:11 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 15 Dec 2010 15:05:17 +0000 (16:05 +0100)
The SSL_SERVER_VERIFY_LATER bit in the ssl_ctx_new() call allows the
code to verify the peer certificate explicitly after the handshake and
then the "data->set.ssl.verifypeer" option works.

lib/axtls.c

index 855b554b43893023436d95fa9d9185a765e1a898..152de6f2cc48cc4bea2ba94f46514686ce8e8503 100644 (file)
@@ -156,7 +156,7 @@ Curl_axtls_connect(struct connectdata *conn,
   const char *x509;
 
   /* Assuming users will not compile in custom key/cert to axTLS */
-  uint32_t client_option = SSL_NO_DEFAULT_KEY;
+  uint32_t client_option = SSL_NO_DEFAULT_KEY|SSL_SERVER_VERIFY_LATER;
 
   if(conn->ssl[sockindex].state == ssl_connection_complete)
     /* to make us tolerant against being called more than once for the