-= 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

@@ -205,6 +205,14 @@ encode_type (const char *name, const Type *t)
case TGeneralString:
encode_primitive ("general_string", name);
break;
case TUTF8String:
encode_primitive ("utf8string", name);
break;
case TNull:
fprintf (codefile,
"e = encode_nulltype(p, len, &l);\n"
"BACK;\n");
break;
case TApplication:
encode_type (name, t->subtype);
fprintf (codefile,
@@ -240,6 +248,8 @@ generate_type_encode (const Symbol *s)
case TOctetString:
case TGeneralizedTime:
case TGeneralString:
case TUTF8String:
case TNull:
case TBitString:
case TEnumerated:
case TOID: