couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chewbra...@apache.org
Subject [4/9] chttpd commit: updated refs/heads/1843-feature-bigcouch-clustered-eventsource-changes-feed to 002a908
Date Wed, 28 May 2014 22:45:10 GMT
Support `fail_if_no_peer_cert` ssl option


Project: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/commit/7c7c19ff
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/tree/7c7c19ff
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/diff/7c7c19ff

Branch: refs/heads/1843-feature-bigcouch-clustered-eventsource-changes-feed
Commit: 7c7c19ff628929417c37cb26b91a40c388c57dec
Parents: c27884b
Author: Robert Newson <rnewson@apache.org>
Authored: Thu May 22 12:11:29 2014 +0100
Committer: Robert Newson <rnewson@apache.org>
Committed: Thu May 22 12:13:14 2014 +0100

----------------------------------------------------------------------
 src/chttpd.erl | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/7c7c19ff/src/chttpd.erl
----------------------------------------------------------------------
diff --git a/src/chttpd.erl b/src/chttpd.erl
index fb9a94d..8618811 100644
--- a/src/chttpd.erl
+++ b/src/chttpd.erl
@@ -77,8 +77,13 @@ start_link(https) ->
         "false" ->
             [];
         "true" ->
+            FailIfNoPeerCert = case config:get("ssl", "fail_if_no_peer_cert", "false") of
+            "false" -> false;
+            "true" -> true
+            end,
             [{depth, list_to_integer(config:get("ssl",
                 "ssl_certificate_max_depth", "1"))},
+             {fail_if_no_peer_cert, FailIfNoPeerCert},
              {verify, verify_peer}] ++
             case config:get("ssl", "verify_fun", nil) of
                 nil -> [];


Mime
View raw message