wtc%netscape.com 688bbc9eba Bug 183612: added support for looking up a cert by subject key ID and
creating a CMS recipient info from a subject key ID.  The patch was
contributed by Javi Delgadillo <javi@netscape.com>. r=relyea, wtc.
Modified Files:
	certdb/cert.h certdb/certdb.c certdb/certdb.h certdb/certv3.c
	certdb/stanpcertdb.c nss/nss.def nss/nssinit.c
	pk11wrap/pk11cert.c pk11wrap/pk11func.h pk11wrap/secmod.h
	pki/pki3hack.c smime/cms.h smime/cmslocal.h smime/cmspubkey.c
	smime/cmsrecinfo.c smime/cmssiginfo.c smime/cmst.h
	smime/smime.def


git-svn-id: svn://10.0.0.236/trunk@135377 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-17 01:39:46 +00:00

226 lines
7.0 KiB
Modula-2

;+#
;+# The contents of this file are subject to the Mozilla Public
;+# License Version 1.1 (the "License"); you may not use this file
;+# except in compliance with the License. You may obtain a copy of
;+# the License at http://www.mozilla.org/MPL/
;+#
;+# Software distributed under the License is distributed on an "AS
;+# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
;+# implied. See the License for the specific language governing
;+# rights and limitations under the License.
;+#
;+# The Original Code is the Netscape security libraries.
;+#
;+# The Initial Developer of the Original Code is Netscape
;+# Communications Corporation. Portions created by Netscape are
;+# Copyright (C) 2000 Netscape Communications Corporation. All
;+# Rights Reserved.
;+#
;+# Contributor(s):
;+#
;+# Alternatively, the contents of this file may be used under the
;+# terms of the GNU General Public License Version 2 or later (the
;+# "GPL"), in which case the provisions of the GPL are applicable
;+# instead of those above. If you wish to allow use of your
;+# version of this file only under the terms of the GPL and not to
;+# allow others to use your version of this file under the MPL,
;+# indicate your decision by deleting the provisions above and
;+# replace them with the notice and other provisions required by
;+# the GPL. If you do not delete the provisions above, a recipient
;+# may use your version of this file under either the MPL or the
;+# GPL.
;+#
;+# OK, this file is meant to support SUN, LINUX, AIX and WINDOWS
;+# 1. For all unix platforms, the string ";-" means "remove this line"
;+# 2. For all unix platforms, the string " DATA " will be removed from any
;+# line on which it occurs.
;+# 3. Lines containing ";+" will have ";+" removed on SUN and LINUX.
;+# On AIX, lines containing ";+" will be removed.
;+# 4. For all unix platforms, the string ";;" will thave the ";;" removed.
;+# 5. For all unix platforms, after the above processing has taken place,
;+# all characters after the first ";" on the line will be removed.
;+# And for AIX, the first ";" will also be removed.
;+# This file is passed directly to windows. Since ';' is a comment, all UNIX
;+# directives are hidden behind ";", ";+", and ";-"
;+
;+NSS_3.2 { # NSS 3.2 release
;+ global:
LIBRARY smime3 ;-
EXPORTS ;-
NSS_CMSContentInfo_GetBulkKey;
NSS_CMSContentInfo_GetBulkKeySize;
NSS_CMSContentInfo_GetContent;
NSS_CMSContentInfo_GetContentEncAlgTag;
NSS_CMSContentInfo_GetContentTypeTag;
NSS_CMSContentInfo_SetBulkKey;
NSS_CMSContentInfo_SetContent;
NSS_CMSContentInfo_SetContentEncAlg;
NSS_CMSContentInfo_SetContent_Data;
NSS_CMSContentInfo_SetContent_DigestedData;
NSS_CMSContentInfo_SetContent_EncryptedData;
NSS_CMSContentInfo_SetContent_EnvelopedData;
NSS_CMSContentInfo_SetContent_SignedData;
NSS_CMSDEREncode;
NSS_CMSDecoder_Cancel;
NSS_CMSDecoder_Finish;
NSS_CMSDecoder_Start;
NSS_CMSDecoder_Update;
NSS_CMSDigestContext_Cancel;
NSS_CMSDigestContext_FinishMultiple;
NSS_CMSDigestContext_FinishSingle;
NSS_CMSDigestContext_StartMultiple;
NSS_CMSDigestContext_StartSingle;
NSS_CMSDigestContext_Update;
NSS_CMSDigestedData_Create;
NSS_CMSDigestedData_Destroy;
NSS_CMSDigestedData_GetContentInfo;
NSS_CMSEncoder_Cancel;
NSS_CMSEncoder_Finish;
NSS_CMSEncoder_Start;
NSS_CMSEncoder_Update;
NSS_CMSEncryptedData_Create;
NSS_CMSEncryptedData_Destroy;
NSS_CMSEncryptedData_GetContentInfo;
NSS_CMSEnvelopedData_AddRecipient;
NSS_CMSEnvelopedData_Create;
NSS_CMSEnvelopedData_Destroy;
NSS_CMSEnvelopedData_GetContentInfo;
NSS_CMSMessage_ContentLevel;
NSS_CMSMessage_ContentLevelCount;
NSS_CMSMessage_Copy;
NSS_CMSMessage_Create;
NSS_CMSMessage_CreateFromDER;
NSS_CMSMessage_Destroy;
NSS_CMSMessage_GetContent;
NSS_CMSMessage_GetContentInfo;
NSS_CMSRecipientInfo_Create;
NSS_CMSRecipientInfo_Destroy;
NSS_CMSSignedData_AddCertChain;
NSS_CMSSignedData_AddCertList;
NSS_CMSSignedData_AddCertificate;
NSS_CMSSignedData_AddDigest;
NSS_CMSSignedData_AddSignerInfo;
NSS_CMSSignedData_Create;
NSS_CMSSignedData_CreateCertsOnly;
NSS_CMSSignedData_Destroy;
NSS_CMSSignedData_GetContentInfo;
NSS_CMSSignedData_GetDigestAlgs;
NSS_CMSSignedData_GetSignerInfo;
NSS_CMSSignedData_HasDigests;
NSS_CMSSignedData_ImportCerts;
NSS_CMSSignedData_SetDigests;
NSS_CMSSignedData_SignerInfoCount;
NSS_CMSSignedData_VerifyCertsOnly;
NSS_CMSSignedData_VerifySignerInfo;
NSS_CMSSignerInfo_AddSMIMECaps;
NSS_CMSSignerInfo_AddSMIMEEncKeyPrefs;
NSS_CMSSignerInfo_AddSigningTime;
NSS_CMSSignerInfo_Create;
NSS_CMSSignerInfo_Destroy;
NSS_CMSSignerInfo_GetCertList;
NSS_CMSSignerInfo_GetSignerCommonName;
NSS_CMSSignerInfo_GetSignerEmailAddress;
NSS_CMSSignerInfo_GetSigningCertificate;
NSS_CMSSignerInfo_GetSigningTime;
NSS_CMSSignerInfo_GetVerificationStatus;
NSS_CMSSignerInfo_GetVersion;
NSS_CMSSignerInfo_IncludeCerts;
NSS_CMSUtil_VerificationStatusToString;
NSS_SMIMEUtil_FindBulkAlgForRecipients;
CERT_DecodeCertPackage;
SEC_PKCS7AddRecipient;
SEC_PKCS7AddSigningTime;
SEC_PKCS7ContentType;
SEC_PKCS7CreateData;
SEC_PKCS7CreateEncryptedData;
SEC_PKCS7CreateEnvelopedData;
SEC_PKCS7CreateSignedData;
SEC_PKCS7DecodeItem;
SEC_PKCS7DecoderFinish;
SEC_PKCS7DecoderStart;
SEC_PKCS7DecoderUpdate;
SEC_PKCS7DecryptContents;
SEC_PKCS7DestroyContentInfo;
SEC_PKCS7EncoderFinish;
SEC_PKCS7EncoderStart;
SEC_PKCS7EncoderUpdate;
SEC_PKCS7GetCertificateList;
SEC_PKCS7GetContent;
SEC_PKCS7GetEncryptionAlgorithm;
SEC_PKCS7IncludeCertChain;
SEC_PKCS7IsContentEmpty;
SEC_PKCS7VerifySignature;
SEC_PKCS12AddCertAndKey;
SEC_PKCS12AddPasswordIntegrity;
SEC_PKCS12CreateExportContext;
SEC_PKCS12CreatePasswordPrivSafe;
SEC_PKCS12CreateUnencryptedSafe;
SEC_PKCS12EnableCipher;
SEC_PKCS12Encode;
SEC_PKCS12DecoderImportBags;
SEC_PKCS12DecoderFinish;
SEC_PKCS12DecoderStart;
SEC_PKCS12DecoderUpdate;
SEC_PKCS12DecoderValidateBags;
SEC_PKCS12DecoderVerify;
SEC_PKCS12DestroyExportContext;
SEC_PKCS12IsEncryptionAllowed;
SEC_PKCS12SetPreferredCipher;
;+ local:
;+ *;
;+};
;+NSS_3.2.1 { # NSS 3.2.1 release
;+ global:
NSSSMIME_VersionCheck;
;+ local:
;+ *;
;+};
;+NSS_3.3 { # NSS 3.3 release
;+ global:
SEC_PKCS7AddCertificate;
SEC_PKCS7CreateCertsOnly;
SEC_PKCS7Encode;
;+ local:
;+ *;
;+};
;+NSS_3.4 { # NSS 3.4 release
;+ global:
CERT_DecodeCertFromPackage;
NSS_CMSMessage_IsSigned;
NSS_CMSSignedData_SetDigestValue;
NSS_SMIMESignerInfo_SaveSMIMEProfile;
SEC_PKCS12DecoderGetCerts;
SEC_PKCS7ContainsCertsOrCrls;
SEC_PKCS7ContentIsEncrypted;
SEC_PKCS7ContentIsSigned;
SEC_PKCS7CopyContentInfo;
SEC_PKCS7GetSignerCommonName;
SEC_PKCS7GetSignerEmailAddress;
SEC_PKCS7GetSigningTime;
SEC_PKCS7SetContent;
SEC_PKCS7VerifyDetachedSignature;
SECMIME_DecryptionAllowed;
;+ local:
;+ *;
;+};
;+NSS_3.4.1 { # NSS 3.4.1 release
;+ global:
NSS_CMSMessage_IsEncrypted;
;+ local:
;+ *;
;+};
;+NSS_3.6 { # NSS 3.6 release
;+ global:
NSS_CMSSignerInfo_AddMSSMIMEEncKeyPrefs;
NSS_CMSSignerInfo_CreateWithSubjKeyID;
;+ local:
;+ *;
;+};
;+NSS_3.7 { # NSS 3.7 release
;+ global:
NSS_CMSRecipientInfo_CreateWithSubjKeyID;
NSS_CMSRecipientInfo_CreateWithSubjKeyIDFromCert;
;+ local:
;+ *;
;+};