summaryrefslogtreecommitdiffstats
path: root/src/plugins/kdb
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2012-02-11 23:25:21 +0000
committerGreg Hudson <ghudson@mit.edu>2012-02-11 23:25:21 +0000
commit0af4df0af5fb856419681e8d259a5229c59e361f (patch)
tree987ce4e9758a9eebb9bc1a8a3231fc412dd4ee4c /src/plugins/kdb
parent17585adb23c120ae10a410c8f77207a53208c59d (diff)
downloadkrb5-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/plugins/kdb')
0 files changed, 0 insertions, 0 deletions