mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
add SSLProxyCARevocation{File,Path} directives to support CRLs in the proxy
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94338 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -175,6 +175,12 @@ static const command_rec ssl_config_cmds[] = {
|
|||||||
SSL_CMD_SRV(ProxyCACertificatePath, TAKE1,
|
SSL_CMD_SRV(ProxyCACertificatePath, TAKE1,
|
||||||
"SSL Proxy: directory containing server certificates "
|
"SSL Proxy: directory containing server certificates "
|
||||||
"(`/path/to/dir' - contains PEM encoded certificates)")
|
"(`/path/to/dir' - contains PEM encoded certificates)")
|
||||||
|
SSL_CMD_SRV(ProxyCARevocationPath, TAKE1,
|
||||||
|
"SSL Proxy: CA Certificate Revocation List (CRL) path "
|
||||||
|
"(`/path/to/dir' - contains PEM encoded files)")
|
||||||
|
SSL_CMD_SRV(ProxyCARevocationFile, TAKE1,
|
||||||
|
"SSL Proxy: CA Certificate Revocation List (CRL) file "
|
||||||
|
"(`/path/to/file' - PEM encoded)")
|
||||||
SSL_CMD_SRV(ProxyMachineCertificateFile, TAKE1,
|
SSL_CMD_SRV(ProxyMachineCertificateFile, TAKE1,
|
||||||
"SSL Proxy: file containing client certificates "
|
"SSL Proxy: file containing client certificates "
|
||||||
"(`/path/to/file' - PEM encoded certificates)")
|
"(`/path/to/file' - PEM encoded certificates)")
|
||||||
|
@@ -598,6 +598,8 @@ const char *ssl_cmd_SSLProxyVerify(cmd_parms *, void *, const char *);
|
|||||||
const char *ssl_cmd_SSLProxyVerifyDepth(cmd_parms *, void *, const char *);
|
const char *ssl_cmd_SSLProxyVerifyDepth(cmd_parms *, void *, const char *);
|
||||||
const char *ssl_cmd_SSLProxyCACertificatePath(cmd_parms *, void *, const char *);
|
const char *ssl_cmd_SSLProxyCACertificatePath(cmd_parms *, void *, const char *);
|
||||||
const char *ssl_cmd_SSLProxyCACertificateFile(cmd_parms *, void *, const char *);
|
const char *ssl_cmd_SSLProxyCACertificateFile(cmd_parms *, void *, const char *);
|
||||||
|
const char *ssl_cmd_SSLProxyCARevocationPath(cmd_parms *, void *, const char *);
|
||||||
|
const char *ssl_cmd_SSLProxyCARevocationFile(cmd_parms *, void *, const char *);
|
||||||
const char *ssl_cmd_SSLProxyMachineCertificatePath(cmd_parms *, void *, const char *);
|
const char *ssl_cmd_SSLProxyMachineCertificatePath(cmd_parms *, void *, const char *);
|
||||||
const char *ssl_cmd_SSLProxyMachineCertificateFile(cmd_parms *, void *, const char *);
|
const char *ssl_cmd_SSLProxyMachineCertificateFile(cmd_parms *, void *, const char *);
|
||||||
|
|
||||||
|
@@ -1354,6 +1354,38 @@ const char *ssl_cmd_SSLProxyCACertificatePath(cmd_parms *cmd,
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char *ssl_cmd_SSLProxyCARevocationPath(cmd_parms *cmd,
|
||||||
|
void *dcfg,
|
||||||
|
const char *arg)
|
||||||
|
{
|
||||||
|
SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
|
||||||
|
const char *err;
|
||||||
|
|
||||||
|
if ((err = ssl_cmd_check_dir(cmd, &arg))) {
|
||||||
|
return err;
|
||||||
|
}
|
||||||
|
|
||||||
|
sc->proxy->crl_path = arg;
|
||||||
|
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
const char *ssl_cmd_SSLProxyCARevocationFile(cmd_parms *cmd,
|
||||||
|
void *dcfg,
|
||||||
|
const char *arg)
|
||||||
|
{
|
||||||
|
SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
|
||||||
|
const char *err;
|
||||||
|
|
||||||
|
if ((err = ssl_cmd_check_file(cmd, &arg))) {
|
||||||
|
return err;
|
||||||
|
}
|
||||||
|
|
||||||
|
sc->proxy->crl_file = arg;
|
||||||
|
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
const char *ssl_cmd_SSLProxyMachineCertificateFile(cmd_parms *cmd,
|
const char *ssl_cmd_SSLProxyMachineCertificateFile(cmd_parms *cmd,
|
||||||
void *dcfg,
|
void *dcfg,
|
||||||
const char *arg)
|
const char *arg)
|
||||||
|
Reference in New Issue
Block a user