Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 76323 invoked from network); 2 Feb 2005 10:15:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Feb 2005 10:15:12 -0000 Received: (qmail 51366 invoked by uid 500); 2 Feb 2005 10:15:06 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 51334 invoked by uid 500); 2 Feb 2005 10:15:06 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 51308 invoked by uid 99); 2 Feb 2005 10:15:06 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of david@jetnet.co.uk designates 80.87.128.128 as permitted sender) Received: from kosh.jetnet.co.uk (HELO kosh.jetnet.co.uk) (80.87.128.128) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 02 Feb 2005 02:15:04 -0800 Received: from localhost (localhost [127.0.0.1]) by kosh.jetnet.co.uk (Postfix) with ESMTP id A6D5E2100A for ; Wed, 2 Feb 2005 10:15:02 +0000 (GMT) Received: from kosh.jetnet.co.uk ([127.0.0.1]) by localhost (kosh.jetnet.co.uk [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 73331-01 for ; Wed, 2 Feb 2005 10:14:42 +0000 (GMT) Received: from [192.168.0.117] (82-69-108-39.dsl.in-addr.zen.co.uk [82.69.108.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by kosh.jetnet.co.uk (Postfix) with ESMTP id 1AB2020F7F for ; Wed, 2 Feb 2005 10:14:42 +0000 (GMT) Message-ID: <4200A8A0.7010304@jetnet.co.uk> Date: Wed, 02 Feb 2005 10:17:04 +0000 From: David Reid User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@httpd.apache.org Subject: [PATCH] get a pointer to the raw cert from mod_ssl X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at jetnet.co.uk X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Basically this allows us to gain access to the actual cert structure. Index: ssl_engine_vars.c =================================================================== --- ssl_engine_vars.c (revision 123890) +++ ssl_engine_vars.c (working copy) @@ -364,6 +364,10 @@ else if (strcEQ(var, "CERT")) { result = ssl_var_lookup_ssl_cert_PEM(p, xs); } + else if (strcEQ(var, "RAW_CERT")) { + result = (char *)xs; + resdup = FALSE; + } if (result != NULL && resdup) result = apr_pstrdup(p, result);