Permalink
Browse files

Clean up the asn1 encoder design

Now that the PKINIT types have been converted and atype_fn has only
one use, we can more easily modify the encoder so that any object can
be encoded without its tag, which makes for a cleaner design.  The
basic building block is now krb5int_asn1_encode_type, which encodes
the contents of a function and returns its tag information to the
caller.

atype_fn now has its own structure, and the encoder function it
references follows the semantics of krb5int_asn1_encode_type.
atype_opaque is now atype_der and goes with a new corresponding field
type (field_der); stored DER encodings are parsed to separate the tag
from the content.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25622 dc483132-0cff-0310-8789-dd5450dbe970
  • Loading branch information...
1 parent 9fff645 commit fc741d71ecc3d7ac9cc067745ee2015459df687c ghudson committed Jan 8, 2012
Showing with 227 additions and 226 deletions.
  1. +174 −170 src/lib/krb5/asn.1/asn1_encode.c
  2. +42 −42 src/lib/krb5/asn.1/asn1_encode.h
  3. +11 −14 src/lib/krb5/asn.1/asn1_k_encode.c
Oops, something went wrong.

0 comments on commit fc741d7

Please sign in to comment.