Make ASN.1 struct atype_info more extensible
authorGreg Hudson <ghudson@mit.edu>
Fri, 6 Jan 2012 20:52:09 +0000 (20:52 +0000)
committerGreg Hudson <ghudson@mit.edu>
Fri, 6 Jan 2012 20:52:09 +0000 (20:52 +0000)
commitb395cc1a0ebb434a257460a7d42f248177882173
treefb58cb7df9f322e02a67776fb89cba3a0c3af67f
parentf8f7eae5b81b64281548053a98f4bd5cd1d43121
Make ASN.1 struct atype_info more extensible

Instead of including all of the possible type fields in struct
atype_info, use a pointer to a type-specific structure.  This might
save a little space, but more importantly, if we get to the point of
exposing this stuff across plugin APIs, it allows ASN.1 type
information to be extensible via defining new atype_type values.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25611 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/krb5/asn.1/asn1_encode.c
src/lib/krb5/asn.1/asn1_encode.h