diff options
| author | Greg Hudson <ghudson@mit.edu> | 2012-02-11 23:25:21 +0000 |
|---|---|---|
| committer | Greg Hudson <ghudson@mit.edu> | 2012-02-11 23:25:21 +0000 |
| commit | 0af4df0af5fb856419681e8d259a5229c59e361f (patch) | |
| tree | 987ce4e9758a9eebb9bc1a8a3231fc412dd4ee4c /src/lib/krb5/error_tables | |
| parent | 17585adb23c120ae10a410c8f77207a53208c59d (diff) | |
| download | krb5-0af4df0af5fb856419681e8d259a5229c59e361f.tar.gz krb5-0af4df0af5fb856419681e8d259a5229c59e361f.tar.xz krb5-0af4df0af5fb856419681e8d259a5229c59e361f.zip | |
Change optional handling in ASN.1 encoder
Create a new atype_optional with a function pointer to decide whether
the type is present in the C object. For simple cases, sequences just
reference the optional version of a type. For more complex cases (such
as when the presence of the usec field of a sequence depends on whether
the timestamp is set), we define a predicate on the structure object
and nest the field type inside the optional type.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25692 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/error_tables')
| -rw-r--r-- | src/lib/krb5/error_tables/asn1_err.et | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/krb5/error_tables/asn1_err.et b/src/lib/krb5/error_tables/asn1_err.et index 06078ffbc..30c435641 100644 --- a/src/lib/krb5/error_tables/asn1_err.et +++ b/src/lib/krb5/error_tables/asn1_err.et @@ -12,4 +12,5 @@ error_code ASN1_PARSE_ERROR, "ASN.1 parse error" error_code ASN1_BAD_GMTIME, "ASN.1 bad return from gmtime" error_code ASN1_MISMATCH_INDEF, "ASN.1 non-constructed indefinite encoding" error_code ASN1_MISSING_EOC, "ASN.1 missing expected EOC" +error_code ASN1_OMITTED, "ASN.1 object omitted in sequence" end |
