Return-Path: X-Original-To: apmail-httpd-cvs-archive@www.apache.org Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D1475189B2 for ; Fri, 12 Jun 2015 12:31:13 +0000 (UTC) Received: (qmail 36109 invoked by uid 500); 12 Jun 2015 12:31:13 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 36048 invoked by uid 500); 12 Jun 2015 12:31:13 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 36039 invoked by uid 99); 12 Jun 2015 12:31:13 -0000 Received: from eris.apache.org (HELO hades.apache.org) (140.211.11.105) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jun 2015 12:31:13 +0000 Received: from hades.apache.org (localhost [127.0.0.1]) by hades.apache.org (ASF Mail Server at hades.apache.org) with ESMTP id 91B5FAC0373 for ; Fri, 12 Jun 2015 12:31:13 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1685078 - /httpd/httpd/trunk/modules/ssl/ssl_engine_config.c Date: Fri, 12 Jun 2015 12:31:13 -0000 To: cvs@httpd.apache.org From: ylavic@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20150612123113.91B5FAC0373@hades.apache.org> Author: ylavic Date: Fri Jun 12 12:31:13 2015 New Revision: 1685078 URL: http://svn.apache.org/r1685078 Log: Follow up to r1685052: use retained data pattern instead. Modified: httpd/httpd/trunk/modules/ssl/ssl_engine_config.c Modified: httpd/httpd/trunk/modules/ssl/ssl_engine_config.c URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/ssl/ssl_engine_config.c?rev=1685078&r1=1685077&r2=1685078&view=diff ============================================================================== --- httpd/httpd/trunk/modules/ssl/ssl_engine_config.c (original) +++ httpd/httpd/trunk/modules/ssl/ssl_engine_config.c Fri Jun 12 12:31:13 2015 @@ -839,21 +839,17 @@ const char *ssl_cmd_SSLCertificateChainF const char *arg) { SSLSrvConfigRec *sc = mySrvConfig(cmd->server); - void *once = NULL; const char *err; - apr_pool_userdata_get(&once, "ssl_cmd_SSLCertificateChainFile", - ap_pglobal); - if (!once) { + const char *once_key = "ssl_cmd_SSLCertificateChainFile"; + if (!ap_retained_data_get(once_key)) { + ap_retained_data_create(once_key, sizeof(char)); + ap_log_error(APLOG_MARK, APLOG_WARNING|APLOG_STARTUP, 0, NULL, APLOGNO(02559) "The SSLCertificateChainFile directive (%s:%d) is " "deprecated, SSLCertificateFile should be used instead", cmd->directive->filename, cmd->directive->line_num); - - apr_pool_userdata_set("ssl_cmd_SSLCertificateChainFile", - apr_pstrdup(ap_pglobal, "1"), NULL, - ap_pglobal); } if ((err = ssl_cmd_check_file(cmd, &arg))) {