diff options
author | Ken Raeburn <raeburn@mit.edu> | 2004-04-24 22:38:30 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2004-04-24 22:38:30 +0000 |
commit | 17c8862153e4602dabdc21d622e2301477e79605 (patch) | |
tree | 6b2bfcfe4660a2f867c825842ef3a3328f234206 /src/wconfig.c | |
parent | 3c51a8b0615193d36cff2de1af7c70d982dfaf66 (diff) | |
download | krb5-17c8862153e4602dabdc21d622e2301477e79605.tar.gz krb5-17c8862153e4602dabdc21d622e2301477e79605.tar.xz krb5-17c8862153e4602dabdc21d622e2301477e79605.zip |
Handle the somewhat common fixed case of time value 0 more efficiently
* asn1_decode.c (asn1_decode_generaltime): If the input string is the magic
UNIX time zero, bypass all the arithmetic and return 0.
* asn1_encode.c (asn1_encode_generaltime): If the input time value is the UNIX
epoch, use a hardcoded string instead of doing the math.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16272 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/wconfig.c')
0 files changed, 0 insertions, 0 deletions