*/
typedef struct {
SSLModConfigRec *mc;
+ BOOL bEnabled;
const char *szVHostID;
int nVHostID_length;
- BOOL bEnabled;
+ const char *szLogFile;
+ apr_file_t *fileLogFile;
+ int nLogLevel;
+ int nSessionCacheTimeout;
+
const char *szPublicCertFiles[SSL_AIDX_MAX];
const char *szPrivateKeyFiles[SSL_AIDX_MAX];
const char *szCertificateChain;
const char *szCACertificatePath;
const char *szCACertificateFile;
- const char *szLogFile;
const char *szCipherSuite;
- apr_file_t *fileLogFile;
- int nLogLevel;
int nVerifyDepth;
ssl_verify_t nVerifyClient;
X509 *pPublicCert[SSL_AIDX_MAX];
EVP_PKEY *pPrivateKey[SSL_AIDX_MAX];
SSL_CTX *pSSLCtx;
- int nSessionCacheTimeout;
int nPassPhraseDialogType;
const char *szPassPhraseDialogPath;
ssl_proto_t nProtocol;
sc->mc = ssl_config_global_create(s);
sc->bEnabled = UNSET;
+ sc->szVHostID = NULL;
+ sc->nVHostID_length = 0;
+ sc->szLogFile = NULL;
+ sc->fileLogFile = NULL;
+ sc->nLogLevel = SSL_LOG_NONE;
+ sc->nSessionCacheTimeout = UNSET;
+
sc->szCACertificatePath = NULL;
sc->szCACertificateFile = NULL;
sc->szCertificateChain = NULL;
- sc->szLogFile = NULL;
sc->szCipherSuite = NULL;
- sc->nLogLevel = SSL_LOG_NONE;
sc->nVerifyDepth = UNSET;
sc->nVerifyClient = SSL_CVERIFY_UNSET;
- sc->nSessionCacheTimeout = UNSET;
sc->nPassPhraseDialogType = SSL_PPTYPE_UNSET;
sc->szPassPhraseDialogPath = NULL;
sc->nProtocol = SSL_PROTOCOL_ALL;
- sc->fileLogFile = NULL;
sc->pSSLCtx = NULL;
sc->szCARevocationPath = NULL;
sc->szCARevocationFile = NULL;
SSLSrvConfigRec *mrg = (SSLSrvConfigRec *)apr_palloc(p, sizeof(*mrg));
cfgMerge(mc, NULL);
- cfgMergeString(szVHostID);
cfgMergeBool(bEnabled);
+ cfgMergeString(szVHostID);
+ cfgMergeString(szLogFile);
+ cfgMerge(fileLogFile, NULL);
+ cfgMerge(nLogLevel, SSL_LOG_NONE);
+ cfgMergeInt(nSessionCacheTimeout);
+
cfgMergeString(szCACertificatePath);
cfgMergeString(szCACertificateFile);
cfgMergeString(szCertificateChain);
- cfgMergeString(szLogFile);
cfgMergeString(szCipherSuite);
- cfgMerge(nLogLevel, SSL_LOG_NONE);
cfgMergeInt(nVerifyDepth);
cfgMerge(nVerifyClient, SSL_CVERIFY_UNSET);
- cfgMergeInt(nSessionCacheTimeout);
cfgMerge(nPassPhraseDialogType, SSL_PPTYPE_UNSET);
cfgMergeString(szPassPhraseDialogPath);
cfgMerge(nProtocol, SSL_PROTOCOL_ALL);
- cfgMerge(fileLogFile, NULL);
cfgMerge(pSSLCtx, NULL);
cfgMerge(szCARevocationPath, NULL);
cfgMerge(szCARevocationFile, NULL);