-= add parser/generate glue for UTF8String and NULL

(DER primitive encode/decode functions missing)
- handle parsing of DEFAULT and, ...


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12311 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2003-05-20 18:42:10 +00:00
parent 37502b25c3
commit bd85856ef6
11 changed files with 106 additions and 10 deletions

View File

@@ -253,6 +253,14 @@ decode_type (const char *name, const Type *t)
case TGeneralString:
decode_primitive ("general_string", name);
break;
case TUTF8String:
decode_primitive ("utf8string", name);
break;
case TNull:
fprintf (codefile,
"e = decode_nulltype(p, len, &l);\n"
"FORW;\n");
break;
case TApplication:
fprintf (codefile,
"e = der_match_tag_and_length (p, len, APPL, CONS, %d, "
@@ -306,6 +314,9 @@ generate_type_decode (const Symbol *s)
case TOID:
case TGeneralizedTime:
case TGeneralString:
case TUTF8String:
case TNull:
case TEnumerated:
case TBitString:
case TSequence:
case TSequenceOf: