summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorJoe Orton <jorton@apache.org>2011-02-11 10:48:00 +0100
committerJoe Orton <jorton@apache.org>2011-02-11 10:48:00 +0100
commit1f97575296eb44fd4d181875441f3768b6ade79f (patch)
tree91e6c58ea228a705c1bee91690b152e209b83152 /modules
parentmove function... (diff)
downloadapache2-1f97575296eb44fd4d181875441f3768b6ade79f.tar.xz
apache2-1f97575296eb44fd4d181875441f3768b6ade79f.zip
* modules/ssl/ssl_private.h: Clarify comment on modssl_pk_server_t.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1069725 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules')
-rw-r--r--modules/ssl/ssl_private.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/modules/ssl/ssl_private.h b/modules/ssl/ssl_private.h
index 7c7cda84b4..99635c8dad 100644
--- a/modules/ssl/ssl_private.h
+++ b/modules/ssl/ssl_private.h
@@ -446,14 +446,19 @@ typedef struct {
} rCtx;
} SSLModConfigRec;
-/** public cert/private key */
+/** Structure representing configured filenames for certs and keys for
+ * a given vhost, and the corresponding in-memory structures once the
+ * files are parsed. */
typedef struct {
- /**
- * server only has 1-2 certs/keys
- * 1 RSA and/or 1 DSA
- */
+ /* Lists of configured certs and keys for this server; from index
+ * 0 up to SSL_AIDX_MAX-1 or the first NULL pointer. Note that
+ * these arrays are NOT indexed by algorithm type, they are simply
+ * unordered lists. */
const char *cert_files[SSL_AIDX_MAX];
const char *key_files[SSL_AIDX_MAX];
+ /* Loaded certs and keys; these arrays ARE indexed by the
+ * algorithm type, i.e. keys[SSL_AIDX_RSA] maps to the RSA
+ * private key. */
X509 *certs[SSL_AIDX_MAX];
EVP_PKEY *keys[SSL_AIDX_MAX];