-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all,
in a project I maintain I have to deal with OIDs not contained within OpenSSL. In particular, I use OpenSSL to parse ASN1 encoded data containing OIDs (using the Macros from asn1t.h) and do switch-case statements on the resulting NIDs. Until now I used to patch OpenSSL (adding the OIDs to objects.txt and running the objects.pl script to generate the NIDs) to contain my OIDs but this approach is far from ideal. I know that I can add new OIDs to OpenSSL internals table using the OBJ_create function. So I could add all my OIDs in a library initialization function and save the resulting NIDs in some global data structure. But, as the man page already mentions, I can't use these NIDs for switch-case statements and probably also not for the ASN1 macros. So I would like to ask if there are any best practices on how to deal with this kind of problem. I'm pretty sure that other people must have already encountered this problem, but I couldn't find any code or documentation on how to deal with it. Best regards, Dominik -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk5nqm0ACgkQ8RP9uQqpDVTEEgCbBFj48Nf1MqdcPnqm3z4nQBxd KK0An1sjuz/vOrEsPo1KTgJESlQ8O7Kz =D9st -----END PGP SIGNATURE----- ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org