couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [08/11] couch commit: updated refs/heads/master to 7ab7995
Date Wed, 21 May 2014 16:53:23 GMT
Support `fail_if_no_peer_cert` ssl option


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

Branch: refs/heads/master
Commit: 7ab79953b6c203c39de21cbf59c21a7109e6a21c
Parents: 845bf75
Author: Klaus Trainer <klaus_trainer@apache.org>
Authored: Mon May 12 01:43:05 2014 +0200
Committer: Robert Newson <rnewson@apache.org>
Committed: Wed May 21 15:17:18 2014 +0100

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


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/7ab79953/src/couch_httpd.erl
----------------------------------------------------------------------
diff --git a/src/couch_httpd.erl b/src/couch_httpd.erl
index 99097d8..077697d 100644
--- a/src/couch_httpd.erl
+++ b/src/couch_httpd.erl
@@ -65,8 +65,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