Return-Path: Delivered-To: apmail-xml-security-dev-archive@www.apache.org Received: (qmail 44064 invoked from network); 4 Jul 2005 12:34:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Jul 2005 12:34:58 -0000 Received: (qmail 68276 invoked by uid 500); 4 Jul 2005 12:34:53 -0000 Delivered-To: apmail-xml-security-dev-archive@xml.apache.org Received: (qmail 68186 invoked by uid 500); 4 Jul 2005 12:34:52 -0000 Mailing-List: contact security-dev-help@xml.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: security-dev@xml.apache.org List-Id: Delivered-To: mailing list security-dev@xml.apache.org Received: (qmail 68148 invoked by uid 99); 4 Jul 2005 12:34:52 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jul 2005 05:34:52 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [202.164.195.42] (HELO cerberus.wingsofhermes.org) (202.164.195.42) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 04 Jul 2005 05:34:50 -0700 Received: (qmail 26792 invoked by uid 1008); 4 Jul 2005 12:34:42 -0000 Received: from 192.168.3.10 by cerberus.wingsofhermes.org (envelope-from , uid 1002) with qmail-scanner-1.25 (clamdscan: 0.83/782. spamassassin: 3.0.0. Clear:RC:1(192.168.3.10):. Processed in 0.094353 secs); 04 Jul 2005 12:34:42 -0000 Received: from unknown (HELO ?192.168.3.10?) (192.168.3.10) by 0 with SMTP; 4 Jul 2005 12:34:41 -0000 Message-ID: <42C92CDD.5080702@wingsofhermes.org> Date: Mon, 04 Jul 2005 22:34:37 +1000 From: Berin Lautenbach User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 X-Accept-Language: en-us, en MIME-Version: 1.0 To: security-dev@xml.apache.org Subject: Use of URIs rather than enums in C++ library Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Peoples, I have done some work to implement an algorithm mapper for the signature and digest algorithms in the C++ library. As part of this, I have implemented new methods that allow callers to create new signatures or references using URIs rather than the current enumerated type. This is for two reasons 1. The algorithm mapper makes the library more extensible - you can implement a new algorithm (with associated URI) and register it with the library. Thus the library does not have to know about a particular algorithm for it to be useable. 2. The enumerated types become a bit more hidden to callers - you don't need to know the algorithm enum, you just have to pass in the standard URI. The reason for the e-mail - I'm going to check all this in later in the week. I've marked the old signature and reference creation calls (using enums) as deprecated, as it was probably a bad idea to go down that path in the first place. But does anyone feel they (the enum based creation calls) should be left in-perpetuity? (They won't be removed quickly, but they will eventually disappear.) Cheers, Berin