I got sick and tired of having to keep track of NIDs when such a thing
authorRichard Levitte <levitte@openssl.org>
Wed, 5 Jul 2000 02:45:36 +0000 (02:45 +0000)
committerRichard Levitte <levitte@openssl.org>
Wed, 5 Jul 2000 02:45:36 +0000 (02:45 +0000)
commitc2bbf9cf6c2e2170df38f32ed58c35e49c239cb8
tree0a3a72ce98a14aa17d346d98f10ed365ed674985
parent8f0d68fa270de23ceada7a5e636453612bc371a8
I got sick and tired of having to keep track of NIDs when such a thing
could be done automagically, much like the numbering in libeay.num and
ssleay.num.  The solution works as follows:

  - New object identifiers are inserted in objects.txt, following the
    syntax given in objects.README.
  - objects.pl is used to process obj_mac.num and create a new
    obj_mac.h.
  - obj_dat.pl is used to create a new obj_dat.h, using the data in
    obj_mac.h.

This is currently kind of a hack, and the perl code in objects.pl
isn't very elegant, but it works as I intended.  The simplest way to
check that it worked correctly is to look in obj_dat.h and check the
array nid_objs and make sure the objects haven't moved around (this is
important!).  Additions are OK, as well as consistent name changes.
25 files changed:
Makefile.org
apps/Makefile.ssl
crypto/asn1/Makefile.ssl
crypto/bio/Makefile.ssl
crypto/comp/Makefile.ssl
crypto/err/Makefile.ssl
crypto/evp/Makefile.ssl
crypto/hmac/Makefile.ssl
crypto/objects/Makefile.ssl
crypto/objects/obj_dat.h
crypto/objects/obj_mac.h [new file with mode: 0644]
crypto/objects/obj_mac.num [new file with mode: 0644]
crypto/objects/objects.README [new file with mode: 0644]
crypto/objects/objects.h
crypto/objects/objects.pl [new file with mode: 0644]
crypto/objects/objects.txt
crypto/pem/Makefile.ssl
crypto/pkcs12/Makefile.ssl
crypto/pkcs7/Makefile.ssl
crypto/rsa/Makefile.ssl
crypto/stack/safestack.h
crypto/x509/Makefile.ssl
crypto/x509v3/Makefile.ssl
ssl/Makefile.ssl
test/Makefile.ssl