[Net-ssleay-devel] Interfacing NID_* constants in openssl/objects.h
Achim Grolms
achim at grolmsnet.de
Mon Jun 18 18:40:14 UTC 2007
Hello,
in openssl/objects.h
a set of constanst NID_* style is defined, for example
#define NID_commonName 13
(See <http://www.openssl.org/docs/crypto/OBJ_nid2obj.html>)
this can be used when calling - for example -
Net::SSLeay::X509_NAME_get_text_by_NID
1. Do you think it es a good idea to make this constants available in the
Perlinterface? This would make it possible to use constant 'NID_commonName'
in Perl instead of '13'.
2. If the answer is 'yes' - what is the better place for doing the exporting?
a standalone module (Net::SSLeay::ConstantsNID for example)
that only wraps openssl/objects.h or something in SSLeay.xs?
Anyway, I have added a "export NID_commonName"-change I've made to my local
copy of 1.30 as a base of dicussion.
Please let me know if this idea is worth discussing.
Thank you,
Achim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: netsslay.diff
Type: text/x-diff
Size: 632 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/net-ssleay-devel/attachments/20070618/76746c53/attachment.diff
More information about the Net-ssleay-devel
mailing list