2 https://bugzilla.redhat.com/show_bug.cgi?id=1109119
 
   4 Don't prepend !aNULL etc if PROFILE= is used with SSLCipherSuite.
 
   6 --- httpd-2.4.17/modules/ssl/ssl_engine_config.c.sslciphdefault
 
   7 +++ httpd-2.4.17/modules/ssl/ssl_engine_config.c
 
   8 @@ -708,8 +708,10 @@ const char *ssl_cmd_SSLCipherSuite(cmd_p
 
   9      SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
 
  10      SSLDirConfigRec *dc = (SSLDirConfigRec *)dcfg;
 
  12 -    /* always disable null and export ciphers */
 
  13 -    arg = apr_pstrcat(cmd->pool, arg, ":!aNULL:!eNULL:!EXP", NULL);
 
  14 +    /* Disable null and export ciphers by default, except for PROFILE=
 
  15 +     * configs where the parser doesn't cope. */
 
  16 +    if (strncmp(arg, "PROFILE=", 8) != 0)
 
  17 +        arg = apr_pstrcat(cmd->pool, arg, ":!aNULL:!eNULL:!EXP", NULL);
 
  20          dc->szCipherSuite = arg;
 
  21 @@ -1428,8 +1430,10 @@ const char *ssl_cmd_SSLProxyCipherSuite(
 
  23      SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
 
  25 -    /* always disable null and export ciphers */
 
  26 -    arg = apr_pstrcat(cmd->pool, arg, ":!aNULL:!eNULL:!EXP", NULL);
 
  27 +    /* Disable null and export ciphers by default, except for PROFILE=
 
  28 +     * configs where the parser doesn't cope. */
 
  29 +    if (strncmp(arg, "PROFILE=", 8) != 0)
 
  30 +        arg = apr_pstrcat(cmd->pool, arg, ":!aNULL:!eNULL:!EXP", NULL);
 
  32      sc->proxy->auth.cipher_suite = arg;