diff options
author | julien.pierre.bugs%sun.com <devnull@localhost> | 2005-10-31 18:52:20 +0000 |
---|---|---|
committer | julien.pierre.bugs%sun.com <devnull@localhost> | 2005-10-31 18:52:20 +0000 |
commit | b639dd69b8dacae80084ced4719d15838d1e8dc6 (patch) | |
tree | b1056dc56aec0edc66a3fe0b63fdac05df4e0d61 /security/nss/lib | |
parent | 4cad7f2adc08a5c91f7bae65401809eeb8869c16 (diff) | |
download | nss-hg-b639dd69b8dacae80084ced4719d15838d1e8dc6.tar.gz |
Fix for 314115 . Comments about QuickDER and classic ASN.1 decoders relating to SECItem.type field
Diffstat (limited to 'security/nss/lib')
-rw-r--r-- | security/nss/lib/util/secasn1.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/security/nss/lib/util/secasn1.h b/security/nss/lib/util/secasn1.h index 5e4779d57..462aaac23 100644 --- a/security/nss/lib/util/secasn1.h +++ b/security/nss/lib/util/secasn1.h @@ -92,6 +92,13 @@ extern SECStatus SEC_ASN1Decode(PRArenaPool *pool, void *dest, const SEC_ASN1Template *t, const char *buf, long len); +/* Both classic ASN.1 and QuickDER have a feature that removes leading zeroes + out of SEC_ASN1_INTEGER if the caller sets siUnsignedInteger in the type + field of the target SECItem prior to calling the decoder. Otherwise, the + type field is ignored and untouched. For SECItem that are dynamically + allocated (from POINTER, SET OF, SEQUENCE OF) the decoder sets the type + field to siBuffer. */ + extern SECStatus SEC_ASN1DecodeItem(PRArenaPool *pool, void *dest, const SEC_ASN1Template *t, const SECItem *src); |