OSDN Git Service

* Fixed bug.
authorAtsushi Konno <konn@users.sourceforge.jp>
Mon, 30 Mar 2009 20:16:44 +0000 (05:16 +0900)
committerAtsushi Konno <konn@users.sourceforge.jp>
Mon, 30 Mar 2009 20:16:44 +0000 (05:16 +0900)
    http://sourceforge.jp/ticket/browse.php?group_id=1608&tid=15853
    (thanks!)

src/serf/buckets/ssl_buckets.c

index 1904479..1cea83c 100644 (file)
@@ -902,8 +902,13 @@ static serf_ssl_context_t *ssl_init_context(void)
     ssl_ctx->cached_cert = 0;
     ssl_ctx->cached_cert_pw = 0;
 
+#if 0  /* for mod_chxj only */
     SSL_CTX_set_verify(ssl_ctx->ctx, SSL_VERIFY_PEER,
                        validate_server_certificate);
+#else
+    SSL_CTX_set_verify(ssl_ctx->ctx, SSL_VERIFY_NONE,
+                       validate_server_certificate);
+#endif
     SSL_CTX_set_options(ssl_ctx->ctx, SSL_OP_ALL);
 
     ssl_ctx->ssl = SSL_new(ssl_ctx->ctx);