Hi,

I'm writing a C++ wrapper library around the OpenSSL API with the
intent to not just support SSL for sockets, but as much of the other
parts as possible, things like the message digests,
encryption/decryption, certificates, etc.
So far I have wrapped the core message digests, encryption algos, BIO
support, BIGNUM structures and done the basics for RSA key generation
and public/private key persistence plus signing and verifying data
with them.
I am now torn between tackling the ASN API's or simply moving on to
the X509 API's. My question is: are the ASN functions worth wrapping?
Are they generally useful in and of themselves? I have looked around
and found (so far) very little documentation about them. I have found
a couple of uses, for example, setting the serial number on an X509
cert structure :

ASN1_INTEGER_set( X509_get_serialNumber(x),serial );

Outside of the internal usage of the API's I haven't seen any other
examples of how to use them. As I understand it, ASN is used to
describe data structure and also how to encode it. This sounds like it
would be a nice thing to have a C++ wrapper for, but I'm kind of
clueless on where to begin. The other API's were relatively easy to
wrap, as it seemed pretty obvious from either documents or examples
what they were supposed to do.

If the ASN stuff is worth wrapping would anyone have any suggestions
on were else to look to understnad better what needs to be wrapped and
how to approach it? I noticed that there was a book from O'Reilly
about OpenSSL programming maybe that might have enough info in it.

Cheers

Jim
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to