]> granicus.if.org Git - apache/commitdiff
Follow-up to r1588987:
authorJeff Trawick <trawick@apache.org>
Mon, 19 May 2014 12:24:06 +0000 (12:24 +0000)
committerJeff Trawick <trawick@apache.org>
Mon, 19 May 2014 12:24:06 +0000 (12:24 +0000)
Fix doc and code confusion about the trust/distrust flag; 1 is
distrust, 0 or NULL/- is trust.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1595861 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_ssl_ct.xml
modules/ssl/ssl_ct_log_config.c

index ca76549774e293335a02bb9624614ded40740af8..029fdd0c7c941b025db1d23d13352e7ff8db3ff7 100644 (file)
@@ -453,10 +453,10 @@ ServerHello</description>
     public key.  If the name is not absolute, then it is assumed to be relative
     to <directive module="core">ServerRoot</directive>.</dd>
 
-    <dt><em>trust</em></dt>
-    <dd>This is a generic <q>trust</q> flag.  Set this field to <em>0</em> to
-    distrust this log, or to otherwise avoid using it for server certificate
-    submission.</dd>
+    <dt><em>trust/distrust</em></dt>
+    <dd>Set this field to <em>1</em> to distrust this log, or to otherwise avoid
+    using it for server certificate submission.  Set this to <em>-</em> or
+    <em>0</em> (the default) to treat the log normally.</dd>
 
     <dt><em>min-timestamp</em> and <em>max-timestamp</em></dt>
     <dd>A timestamp is a time as expressed in the number of milliseconds since the
index de068ca57d301b0c5fe793b887457146bf4d6557..1f8c7408166c20cb9d7bf471638bf22c5db11b74 100644 (file)
@@ -203,7 +203,7 @@ apr_status_t save_log_config_entry(apr_array_header_t *log_config,
         distrusted = DISTRUSTED;
     }
     else if (!strcasecmp(distrusted_str, "0")) {
-        distrusted = DISTRUSTED;
+        distrusted = TRUSTED;
     }
     else {
         ap_log_error(APLOG_MARK, APLOG_ERR, 0, ap_server_conf,