summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchrisk%netscape.com <devnull@localhost>2000-06-14 23:12:48 +0000
committerchrisk%netscape.com <devnull@localhost>2000-06-14 23:12:48 +0000
commit02573f2e4308f03769897461ef030f3017218a1d (patch)
tree46b05d949b2a8ec3d8447d6fd345db1106e36de0
parenta083d0fa5de4b734ee34a8ee7d857f4911648f8b (diff)
downloadnss-hg-02573f2e4308f03769897461ef030f3017218a1d.tar.gz
Make example 5.7 of ietf-smime-examples draft decode correctly
(we still cannot look up certs by SubjectKeyID, so it won't verify)
-rw-r--r--security/nss/lib/smime/cmsasn1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/security/nss/lib/smime/cmsasn1.c b/security/nss/lib/smime/cmsasn1.c
index 1c8695d8c..afd82d407 100644
--- a/security/nss/lib/smime/cmsasn1.c
+++ b/security/nss/lib/smime/cmsasn1.c
@@ -149,9 +149,9 @@ static const SEC_ASN1Template NSSCMSSignerIdentifierTemplate[] = {
{ SEC_ASN1_CHOICE,
offsetof(NSSCMSSignerIdentifier,identifierType), NULL,
sizeof(NSSCMSSignerIdentifier) },
- { SEC_ASN1_EXPLICIT | SEC_ASN1_CONSTRUCTED | SEC_ASN1_CONTEXT_SPECIFIC | 0,
+ { SEC_ASN1_POINTER | SEC_ASN1_CONTEXT_SPECIFIC | 0,
offsetof(NSSCMSSignerIdentifier,id.subjectKeyID),
- SEC_PointerToOctetStringTemplate,
+ SEC_OctetStringTemplate,
NSSCMSRecipientID_SubjectKeyID },
{ SEC_ASN1_POINTER,
offsetof(NSSCMSSignerIdentifier,id.issuerAndSN),