Return-Path: Delivered-To: apmail-apr-commits-archive@www.apache.org Received: (qmail 27915 invoked from network); 28 Mar 2007 16:27:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Mar 2007 16:27:34 -0000 Received: (qmail 15557 invoked by uid 500); 28 Mar 2007 16:27:39 -0000 Delivered-To: apmail-apr-commits-archive@apr.apache.org Received: (qmail 15506 invoked by uid 500); 28 Mar 2007 16:27:39 -0000 Mailing-List: contact commits-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: dev@apr.apache.org List-Id: Delivered-To: mailing list commits@apr.apache.org Received: (qmail 15484 invoked by uid 99); 28 Mar 2007 16:27:39 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Mar 2007 09:27:39 -0700 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 (herse.apache.org: domain of minfrin@sharp.fm designates 64.49.220.200 as permitted sender) Received: from [64.49.220.200] (HELO chandler.sharp.fm) (64.49.220.200) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Mar 2007 09:27:30 -0700 Received: from chandler.sharp.fm (localhost [127.0.0.1]) by chandler.sharp.fm (Postfix) with ESMTP id E2344E53DB; Wed, 28 Mar 2007 11:27:08 -0500 (CDT) Received: from www.sharp.fm (unknown [209.61.173.189]) by chandler.sharp.fm (Postfix) with ESMTP id 676BEE52DB; Wed, 28 Mar 2007 11:27:08 -0500 (CDT) Received: from 196.8.104.31 (SquirrelMail authenticated user minfrin@sharp.fm) by www.sharp.fm with HTTP; Wed, 28 Mar 2007 18:27:08 +0200 (SAST) Message-ID: <45861.196.8.104.31.1175099228.squirrel@www.sharp.fm> In-Reply-To: <20070328161554.169761A983A@eris.apache.org> References: <20070328161554.169761A983A@eris.apache.org> Date: Wed, 28 Mar 2007 18:27:08 +0200 (SAST) Subject: Re: svn commit: r523390 - /apr/apr-util/trunk/ssl/apr_ssl_openssl.c From: "Graham Leggett" To: dev@apr.apache.org Cc: commits@apr.apache.org User-Agent: SquirrelMail/1.4.8-4.el4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: ClamAV using ClamSMTP X-Virus-Checked: Checked by ClamAV on apache.org On Wed, March 28, 2007 6:15 pm, dreid@apache.org wrote: > We need to add an error code for "there was an openssl error" > to allow us to direct the user to call a function to determine > what was wrong. > > Highlighted by Joe Orton By way of example, the apr_ldap code tries to solve this problem by returning a structure containing the original LDAP error code, the LDAP toolkit's "error string" corresponding to that code, as well as a string that tries to explain what APR was trying to do at the time of the error (often the LDAP error is a red herring or too vague). Most of this info is very cheap to produce. The rationale behind it was to make it very easy for the (potentially lazy) APR-using coder to expose useful information to the end user when problems occurred. What may be a useful exercise is to combine this into a generic "APR error structure", so that the LDAP stuff, the SQL stuff, and the SSL stuff can report errors in the same fashion. Regards, Graham --