OSDN Git Service
(root)
/
modchxj
/
mod_chxj.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21be212
)
* Fixed bug.
author
Atsushi Konno
<konn@users.sourceforge.jp>
Mon, 30 Mar 2009 20:16:44 +0000
(
05:16
+0900)
committer
Atsushi 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
patch
|
blob
|
history
diff --git
a/src/serf/buckets/ssl_buckets.c
b/src/serf/buckets/ssl_buckets.c
index
1904479
..
1cea83c
100644
(file)
--- a/
src/serf/buckets/ssl_buckets.c
+++ b/
src/serf/buckets/ssl_buckets.c
@@
-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);