mozilla
Your Search Results

    NSS functions

    This page lists all exported functions in NSS 3.11.7 It was ported from here.

    This is a composite page. Section headings are links to the individual pages where you can edit them.

    Keywords:

    • Deprecated - function should no longer be used.
    • Updated - function has new arguments such as new flag or addition to structure.

    SSL functions

    The public functions listed here are used to configure sockets for communication via the SSL and TLS protocols. In addition to the functions listed here, applications that support SSL use some of the Certificate functions, Crypto functions, and Utility functions described below on this page.

    Other sources of information:

    • The NSS_reference documents the functions most commonly used by applications to support SSL.
    • The NSS home page links to additional SSL documentation.

    If documentation is available for a function listed below, the function name is linked to either its MDC wiki page or its entry in the old SSL Reference. The Mozilla Cross Reference (MXR) link for each function provides access to the function definition, prototype definition, and source code references. The NSS version column indicates which versions of NSS support the function.

     

    Function name/documentation Source code NSS versions
    NSS_GetClientAuthData MXR 3.2 and later
    NSS_SetDomesticPolicy MXR 3.2 and later
    NSS_SetExportPolicy MXR 3.2 and later
    NSS_SetFrancePolicy MXR 3.2 and later
    NSSSSL_VersionCheck MXR 3.2.1 and later
    SSL_AuthCertificate MXR 3.2 and later
    SSL_AuthCertificateHook MXR 3.2 and later
    SSL_BadCertHook MXR 3.2 and later
    SSL_CertDBHandleSet MXR 3.2 and later
    SSL_Canbypass MXR 3.11.7 and later
    SSL_CipherPolicyGet MXR 3.2 and later
    SSL_CipherPolicySet MXR 3.2 and later
    SSL_CipherPrefGet MXR 3.2 and later
    SSL_CipherPrefGetDefault MXR 3.2 and later
    SSL_CipherPrefSet MXR 3.2 and later
    SSL_CipherPrefSetDefault MXR 3.2 and later
    SSL_ClearSessionCache MXR 3.2 and later
    SSL_ConfigMPServerSIDCache MXR 3.2 and later
    SSL_ConfigSecureServer MXR 3.2 and later
    SSL_ConfigServerSessionIDCache MXR 3.2 and later
    SSL_DataPending MXR 3.2 and later
    SSL_ForceHandshake MXR 3.2 and later
    SSL_ForceHandshakeWithTimeout MXR 3.11.4 and later
    SSL_GetChannelInfo MXR 3.4 and later
    SSL_GetCipherSuiteInfo MXR 3.4 and later
    SSL_GetClientAuthDataHook MXR 3.2 and later
    SSL_GetMaxServerCacheLocks MXR 3.4 and later
    SSL_GetSessionID MXR 3.2 and later
    SSL_GetStatistics MXR 3.2 and later
    SSL_HandshakeCallback MXR 3.2 and later
    SSL_ImportFD MXR 3.2 and later
    SSL_InheritMPServerSIDCache MXR 3.2 and later
    SSL_InvalidateSession MXR 3.2 and later
    SSL_LocalCertificate MXR 3.4 and later
    SSL_OptionGet MXR 3.2 and later
    SSL_OptionGetDefault MXR 3.2 and later
    SSL_OptionSet MXR 3.2 and later
    SSL_OptionSetDefault MXR 3.2 and later
    SSL_PeerCertificate MXR 3.2 and later
    SSL_PreencryptedFileToStream MXR 3.2 and later
    SSL_PreencryptedStreamToFile MXR 3.2 and later
    SSL_ReHandshake MXR 3.2 and later
    SSL_ReHandshakeWithTimeout MXR 3.11.4 and later
    SSL_ResetHandshake MXR 3.2 and later
    SSL_RestartHandshakeAfterCertReq MXR 3.2 and later
    SSL_RestartHandshakeAfterServerCert MXR 3.2 and later
    SSL_RevealCert MXR 3.2 and later
    SSL_RevealPinArg MXR 3.2 and later
    SSL_RevealURL MXR 3.2 and later
    SSL_SecurityStatus MXR 3.2 and later
    SSL_SetMaxServerCacheLocks MXR 3.4 and later
    SSL_SetPKCS11PinArg MXR 3.2 and later
    SSL_SetSockPeerID MXR 3.2 and later
    SSL_SetURL MXR 3.2 and later
    SSL_ShutdownServerSessionIDCache MXR 3.7.4 and later

     

    Deprecated SSL functions

    The following SSL functions have been replaced with newer versions. The deprecated functions are not supported by the new SSL shared libraries. Applications that want to use the SSL shared libraries must convert to calling the new replacement functions listed below.

    Each function name is linked to its entry in the old SSL Reference. The Mozilla Cross Reference (MXR) link for each function provides access to the function definition, prototype definition, and source code references.

    Function name/documentation Source code Replacement in NSS 3.2
    SSL_Enable MXR SSL_OptionSet
    SSL_EnableCipher MXR SSL_CipherPrefSetDefault
    SSL_EnableDefault MXR SSL_OptionSetDefault
    SSL_RedoHandshake MXR SSL_ReHandshake
    SSL_SetPolicy MXR SSL_CipherPolicySet

     

    Certificate functions

    The public functions listed here are used to interact with certificate databases.

    If documentation is available for a function listed below, the function name is linked to either its MDC wiki page or its entry in the old SSL Reference. The Mozilla Cross Reference (MXR) link for each function provides access to the function definition, prototype definition, and source code references. The NSS version column indicates which versions of NSS support the function.

    Function name/documentation Source code NSS versions
    CERT_AddCertToListTail MXR 3.2 and later
    CERT_AddExtension MXR 3.5 and later
    CERT_AddOCSPAcceptableResponses MXR 3.6 and later
    CERT_AddOKDomainName MXR 3.4 and later
    CERT_AddRDN MXR 3.2.1 and later
    CERT_AsciiToName MXR 3.2 and later
    CERT_CacheCRL MXR 3.10 and later
    CERT_ClearOCSPCache MXR 3.11.7 and later
    CERT_CertChainFromCert MXR 3.2 and later
    CERT_CertListFromCert MXR 3.2 and later
    CERT_CertTimesValid MXR 3.2 and later
    CERT_ChangeCertTrust MXR 3.2 and later
    CERT_CheckCertValidTimes MXR 3.2 and later
    CERT_CheckNameSpace MXR 3.12 and later
    CERT_CheckCertUsage MXR 3.3 and later
    CERT_CompareName MXR 3.2 and later
    CERT_CompareValidityTimes MXR 3.11 and later
    CERT_CompleteCRLDecodeEntries MXR 3.6 and later
    CERT_ConvertAndDecodeCertificate MXR 3.9.3 and later
    CERT_CopyName MXR 3.4 and later
    CERT_CopyRDN MXR 3.5 and later
    CERT_CreateAVA MXR 3.2.1 and later
    CERT_CreateCertificate MXR 3.5 and later
    CERT_CreateCertificateRequest MXR 3.2 and later
    CERT_CreateName MXR 3.2.1 and later
    CERT_CreateOCSPCertID MXR 3.6 and later
    CERT_CreateOCSPRequest MXR 3.6 and later
    CERT_CreateRDN MXR 3.2.1 and later
    CERT_CreateSubjectCertList MXR 3.4 and later
    CERT_CreateValidity MXR 3.5 and later
    CERT_CRLCacheRefreshIssuer MXR 3.7 and later
    CERT_DecodeAltNameExtension MXR 3.10 and later
    CERT_DecodeAuthInfoAccessExtension MXR 3.10 and later
    CERT_DecodeAuthKeyID MXR 3.10 and later
    CERT_DecodeAVAValue MXR 3.4 and later
    CERT_DecodeBasicConstraintValue MXR 3.2 and later
    CERT_DecodeCertFromPackage MXR 3.4 and later
    CERT_DecodeCertificatePoliciesExtension MXR 3.2 and later
    CERT_DecodeCertPackage MXR 3.2 and later
    CERT_DecodeCRLDistributionPoints MXR 3.10 and later
    CERT_DecodeDERCrl MXR 3.2 and later
    CERT_DecodeDERCrlWithFlags MXR 3.6 and later
    CERT_DecodeGeneralName MXR 3.4 and later
    CERT_DecodeNameConstraintsExtension MXR 3.10 and later
    CERT_DecodeOCSPResponse MXR 3.6 and later
    CERT_DecodeOidSequence MXR 3.2 and later
    CERT_DecodePrivKeyUsagePeriodExtension MXR 3.10 and later
    CERT_DecodeTrustString MXR 3.4 and later
    CERT_DecodeUserNotice MXR 3.2 and later
    CERT_DerNameToAscii MXR 3.4 and later
    CERT_DestroyCertArray MXR 3.2 and later
    CERT_DestroyCertificate MXR 3.2 and later
    CERT_DestroyCertificateList MXR 3.2 and later
    CERT_DestroyCertificatePoliciesExtension MXR 3.2 and later
    CERT_DestroyCertificateRequest MXR 3.2 and later
    CERT_DestroyCertList MXR 3.2 and later
    CERT_DestroyName MXR 3.2 and later
    CERT_DestroyOCSPCertID MXR 3.6 and later
    CERT_DestroyOCSPRequest MXR 3.6 and later
    CERT_DestroyOCSPResponse MXR 3.7 and later
    CERT_DestroyOidSequence MXR 3.9 and later
    CERT_DestroyUserNotice MXR 3.10 and later
    CERT_DestroyValidity MXR 3.5 and later
    CERT_DupCertificate MXR 3.2 and later
    CERT_DupCertList MXR 3.2 and later
    CERT_EnableOCSPChecking MXR 3.2 and later
    CERT_EncodeAltNameExtension MXR 3.7 and later
    CERT_EncodeAndAddBitStrExtension MXR 3.5 and later
    CERT_EncodeAuthKeyID MXR 3.5 and later
    CERT_EncodeBasicConstraintValue MXR 3.5 and later
    CERT_EncodeCertPoliciesExtension MXR 3.12 and later
    CERT_EncodeCRLDistributionPoints MXR 3.5 and later
    CERT_EncodeGeneralName MXR 3.4 and later
    CERT_EncodeInfoAccessExtension MXR 3.12 and later
    CERT_EncodeInhibitAnyExtension MXR 3.12 and later
    CERT_EncodeNoticeReference MXR 3.12 and later
    CERT_EncodeOCSPRequest MXR 3.6 and later
    CERT_EncodePolicyConstraintsExtension MXR 3.12 and later
    CERT_EncodePolicyMappingExtension MXR 3.12 and later
    CERT_EncodeSubjectKeyID MXR 3.12 and later
    CERT_EncodeUserNotice MXR 3.12 and later
    CERT_ExtractPublicKey MXR 3.2 and later
    CERT_FindCertByName MXR 3.2 and later
    CERT_FindCRLEntryReasonExten MXR 3.12 and later
    CERT_FindCRLNumberExten MXR 3.12 and later
    CERT_FindNameConstraintsExten MXR 3.12 and later
    CERT_FilterCertListByCANames MXR 3.4 and later
    CERT_FilterCertListByUsage MXR 3.4 and later
    CERT_FilterCertListForUserCerts MXR 3.6 and later
    CERT_FindCertByDERCert MXR 3.2 and later
    CERT_FindCertByIssuerAndSN MXR 3.2 and later
    CERT_FindCertByNickname MXR 3.2 and later
    CERT_FindCertByNicknameOrEmailAddr MXR 3.2 and later
    CERT_FindCertBySubjectKeyID MXR 3.7 and later
    CERT_FindCertExtension MXR 3.4 and later
    CERT_FindCertIssuer MXR 3.3 and later
    CERT_FindKeyUsageExtension MXR 3.4 and later
    CERT_FindSMimeProfile MXR 3.2 and later
    CERT_FindSubjectKeyIDExtension MXR 3.7 and later
    CERT_FindUserCertByUsage MXR 3.4 and later
    CERT_FindUserCertsByUsage MXR 3.4 and later
    CERT_FinishCertificateRequestAttributes MXR 3.10 and later
    CERT_FinishExtensions MXR 3.5 and later
    CERT_FormatName MXR 3.2 and later
    CERT_FreeDistNames MXR 3.2 and later
    CERT_FreeNicknames MXR 3.2 and later
    CERT_GetAVATag MXR 3.2 and later
    CERT_GetCertChainFromCert MXR 3.4 and later
    CERT_GetCertEmailAddress MXR 3.2 and later
    CERT_GetCertificateNames MXR 3.10 and later
    CERT_GetCertificateRequestExtensions MXR 3.10 and later
    CERT_GetCertIssuerAndSN MXR 3.2 and later
    CERT_GetCertNicknames MXR 3.2 and later
    CERT_GetCertTrust MXR 3.2 and later
    CERT_GetCertUid MXR 3.2 and later
    CERT_GetClassicOCSPDisabledPolicy MXR 3.12 and later
    CERT_GetClassicOCSPEnabledHardFailurePolicy MXR 3.12 and later
    CERT_GetClassicOCSPEnabledSoftFailurePolicy MXR 3.12 and later
    CERT_GetCommonName MXR 3.2 and later
    CERT_GetCountryName MXR 3.2 and later
    CERT_GetDBContentVersion MXR 3.2 and later
    CERT_GetDefaultCertDB MXR 3.2 and later
    CERT_GetDomainComponentName MXR 3.2 and later
    CERT_GetFirstEmailAddress MXR 3.7 and later
    CERT_GetLocalityName MXR 3.2 and later
    CERT_GetNextEmailAddress MXR 3.7 and later
    CERT_GetNextGeneralName MXR 3.10 and later
    CERT_GetNextNameConstraint MXR 3.10 and later
    CERT_GetOCSPResponseStatus MXR 3.6 and later
    CERT_GetOCSPStatusForCertID MXR 3.6 and later
    CERT_GetOidString MXR 3.9 and later
    CERT_GetOrgName MXR 3.2 and later
    CERT_GetOrgUnitName MXR 3.2 and later
    CERT_GetOCSPAuthorityInfoAccessLocation MXR 3.4 and later
    CERT_GetPKIXVerifyNistRevocationPolicy MXR 3.12 and later
    CERT_GetPrevGeneralName MXR 3.10 and later
    CERT_GetPrevNameConstraint MXR 3.10 and later
    CERT_GetSlopTime MXR 3.2 and later
    CERT_GetSSLCACerts MXR 3.2 and later
    CERT_GetStateName MXR 3.2 and later
    CERT_GetUsePKIXForValidation MXR 3.12 and later
    CERT_GetValidDNSPatternsFromCert MXR 3.12 and later
    CERT_GenTime2FormattedAscii MXR 3.2 and later
    CERT_Hexify MXR 3.2 and later
    CERT_ImportCAChain MXR 3.2 and later
    CERT_ImportCerts MXR 3.2 and later
    CERT_IsRootDERCert MXR 3.8 and later
    CERT_IsUserCert MXR 3.6 and later
    CERT_KeyFromDERCrl MXR 3.4 and later
    CERT_MakeCANickname MXR 3.4 and later
    CERT_MergeExtensions MXR 3.10 and later
    CERT_NameToAscii MXR 3.2 and later
    CERT_NewCertList MXR 3.2 and later
    CERT_NewTempCertificate MXR 3.12 and later
    CERT_NicknameStringsFromCertList MXR 3.4 and later
    CERT_OpenCertDBFilename MXR 3.2 and later
    CERT_OCSPCacheSettings MXR 3.11.7 and later
    CERT_PKIXVerifyCert MXR 3.12 and later
    CERT_RemoveCertListNode MXR 3.6 and later
    CERT_RFC1485_EscapeAndQuote MXR 3.2 and later
    CERT_SaveSMimeProfile MXR 3.2 and later
    CERT_SetSlopTime MXR 3.2 and later
    CERT_SetOCSPFailureMode MXR 3.11.7 and later
    CERT_SetOCSPTimeout MXR 3.12 and later
    CERT_SetUsePKIXForValidation MXR 3.12 and later
    CERT_StartCertExtensions MXR 3.5 and later
    CERT_StartCertificateRequestAttributes MXR 3.10 and later
    CERT_StartCRLEntryExtensions MXR 3.10 and later
    CERT_StartCRLExtensions MXR 3.10 and later
    CERT_UncacheCRL MXR 3.10 and later
    CERT_VerifyCertName MXR 3.2 and later
    CERT_VerifyCACertForUsage MXR 3.6 and later
    CERT_VerifyCert MXR 3.2 and later. If you need to verify for multiple usages use CERT_VerifyCertificate
    CERT_VerifyCertificate MXR 3.6 and later
    CERT_VerifyCertificateNow MXR 3.6 and later
    CERT_VerifyCertNow MXR 3.2 and later. If you need to verify for multiple usages use CERT_VerifyCertificateNow
    CERT_VerifyOCSPResponseSignature MXR 3.6 and later
    CERT_VerifySignedData MXR 3.4 and later
    CERT_VerifySignedDataWithPublicKey MXR 3.7 and later
    CERT_VerifySignedDataWithPublicKeyInfo MXR 3.7 and later
    NSS_CmpCertChainWCANames MXR 3.2 and later
    NSS_FindCertKEAType MXR 3.2 and later

     

    Cryptography functions

    The public functions listed here perform cryptographic operations based on the PKCS #11 interface.

    If documentation is available for a function listed below, the function name is linked to either its MDC wiki page or its entry in the old SSL Reference. The Mozilla Cross Reference (MXR) link for each function provides access to the function definition, prototype definition, and source code references. The NSS version column indicates which versions of NSS support the function.

    Function name/documentation Source code NSS versions
    PK11_AlgtagToMechanism MXR 3.2 and later
    PK11_Authenticate MXR 3.2 and later
    PK11_BlockData MXR 3.2 and later
    PK11_ChangePW MXR 3.2 and later
    PK11_CheckUserPassword MXR 3.2 and later
    PK11_CipherOp MXR 3.2 and later
    PK11_CloneContext MXR 3.2 and later
    PK11_ConfigurePKCS11 MXR 3.2 and later
    PK11_ConvertSessionPrivKeyToTokenPrivKey MXR 3.6 and later
    PK11_ConvertSessionSymKeyToTokenSymKey MXR 3.6 and later
    PK11_CopyTokenPrivKeyToSessionPrivKey MXR 3.11 and later
    PK11_CreateContextBySymKey MXR 3.2 and later
    PK11_CreateDigestContext MXR 3.2 and later
    PK11_CreateGenericObject MXR 3.12 and later
    PK11_CreateMergeLog MXR 3.12 and later
    PK11_CreatePBEAlgorithmID MXR 3.2 and later
    PK11_CreatePBEV2AlgorithmID MXR 3.12 and later
    PK11_DeleteTokenPrivateKey MXR 3.4 and later
    PK11_DeleteTokenPublicKey MXR 3.4 and later
    PK11_DeleteTokenSymKey MXR 3.4 and later
    PK11_Derive MXR 3.2 and later
    PK11_DeriveWithFlags MXR 3.2 and later
    PK11_DeriveWithFlagsPerm MXR 3.9 and later
    PK11_DestroyContext MXR 3.2 and later
    PK11_DestroyGenericObject MXR 3.9.2 and later
    PK11_DestroyGenericObjects MXR 3.9.2 and later
    PK11_DestroyMergeLog MXR 3.12 and later
    PK11_DestroyObject MXR 3.2 and later
    PK11_DestroyTokenObject MXR 3.2 and later
    PK11_DigestBegin MXR 3.2 and later
    PK11_DigestKey MXR 3.2 and later
    PK11_DigestOp MXR 3.2 and later
    PK11_DigestFinal MXR 3.2 and later
    PK11_DoesMechanism MXR 3.2 and later
    PK11_ExportEncryptedPrivateKeyInfo MXR 3.2 and later
    PK11_ExportEncryptedPrivKeyInfo MXR 3.9 and later
    PK11_ExportPrivateKeyInfo MXR 3.2 and later
    PK11_Finalize MXR 3.2 and later
    PK11_FindBestKEAMatch MXR 3.2 and later
    PK11_FindCertAndKeyByRecipientList MXR 3.2 and later
    PK11_FindCertAndKeyByRecipientListNew MXR 3.2 and later
    PK11_FindCertByIssuerAndSN MXR 3.2 and later
    PK11_FindCertFromDERCert MXR 3.2 and later
    PK11_FindCertFromNickname MXR 3.2 and later
    PK11_FindCertInSlot MXR 3.2 and later
    PK11_FindGenericObjects MXR 3.9.2 and later
    PK11_FindFixedKey MXR 3.2 and later
    PK11_FindKeyByAnyCert MXR 3.2 and later
    PK11_FindKeyByDERCert MXR 3.2 and later
    PK11_FindPrivateKeyFromCert MXR 3.2 and later
    PK11_FindSlotByName MXR 3.2 and later
    PK11_FindSlotsByNames MXR 3.9 and later
    PK11_FortezzaHasKEA MXR 3.2 and later
    PK11_FortezzaMapSig MXR 3.2 and later
    PK11_FreeSlot MXR 3.2 and later
    PK11_FreeSlotList MXR 3.2 and later
    PK11_FreeSlotListElement MXR 3.11 and later
    PK11_FreeSymKey MXR 3.2 and later
    PK11_GenerateFortezzaIV MXR 3.2 and later
    PK11_GenerateKeyPair MXR 3.2 and later
    PK11_GenerateKeyPairWithFlags MXR 3.10.2 and later
    PK11_GenerateKeyPairWithOpFlags MXR 3.12 and later
    PK11_GenerateNewParam MXR 3.2 and later
    PK11_GenerateRandom MXR 3.2 and later
    PK11_GenerateRandomOnSlot MXR 3.11 and later
    PK11_GetAllTokens MXR 3.2 and later
    PK11_GetAllSlotsForCert MXR 3.12 and later
    PK11_GetBestKeyLength MXR 3.2 and later
    PK11_GetBestSlot MXR 3.2 and later
    PK11_GetBestSlotMultiple MXR 3.2 and later
    PK11_GetBestWrapMechanism MXR 3.2 and later
    PK11_GetBlockSize MXR 3.2 and later
    PK11_GetCertFromPrivateKey MXR 3.9.3 and later
    PK11_GetCurrentWrapIndex MXR 3.2 and later
    PK11_GetDefaultArray MXR 3.8 and later
    PK11_GetDefaultFlags MXR 3.8 and later
    PK11_GetDisabledReason MXR 3.8 and later
    PK11_GetFirstSafe MXR 3.2 and later
    PK11_GetInternalKeySlot MXR 3.2 and later
    PK11_GetInternalSlot MXR 3.2 and later
    PK11_GetKeyGen MXR 3.4 and later
    PK11_GetKeyLength MXR 3.2 and later
    PK11_GetKeyStrength MXR 3.2 and later
    PK11_GetMechanism MXR 3.2 and later
    PK11_GetMinimumPwdLength MXR 3.4 and later
    PK11_GetModInfo MXR 3.6 and later
    PK11_GetModule MXR 3.3 and later
    PK11_GetModuleID MXR 3.2 and later
    PK11_GetNextGenericObject MXR 3.9.2 and later
    PK11_GetNextSafe MXR 3.4 and later
    PK11_GetNextSymKey MXR 3.4 and later
    PK11_GetPadMechanism MXR 3.4 and later
    PK11_GetPBECryptoMechanism MXR 3.12 and later
    PK11_GetPBEIV MXR 3.6 and later
    PK11_GetPQGParamsFromPrivateKey MXR 3.4 and later
    PK11_GetPrevGenericObject MXR 3.9.2 and later
    PK11_GetPrivateKeyNickname MXR 3.4 and later
    PK11_GetPrivateModulusLen MXR 3.2 and later
    PK11_GetPublicKeyNickname MXR 3.4 and later
    PK11_GetSlotFromKey MXR 3.2 and later
    PK11_GetSlotFromPrivateKey MXR 3.2 and later
    PK11_GetSlotID MXR 3.2 and later
    PK11_GetSlotInfo MXR 3.4 and later
    PK11_GetSlotName MXR 3.2 and later
    PK11_GetSlotSeries MXR 3.2 and later
    PK11_GetSymKeyNickname MXR 3.4 and later
    PK11_GetSymKeyType MXR 3.9 and later
    PK11_GetSymKeyUserData MXR 3.11 and later
    PK11_GetTokenInfo MXR 3.2 and later
    PK11_GetTokenName MXR 3.2 and later
    PK11_GetWindow MXR 3.2 and later
    PK11_GetWrapKey MXR 3.2 and later
    PK11_HashBuf MXR 3.2 and later
    PK11_HasRootCerts MXR 3.4 and later
    PK11_ImportCert MXR 3.5 and later
    PK11_ImportCertForKeyToSlot MXR 3.2 and later
    PK11_ImportCRL MXR 3.6 and later
    PK11_ImportDERCert MXR 3.6 and later
    PK11_ImportDERPrivateKeyInfoAndReturnKey MXR 3.4 and later
    PK11_ImportEncryptedPrivateKeyInfo MXR 3.2 and later
    PK11_ImportPrivateKeyInfo MXR 3.2 and later
    PK11_ImportPrivateKeyInfoAndReturnKey MXR 3.4 and later
    PK11_ImportPublicKey MXR 3.4 and later
    PK11_ImportSymKeyWithFlags MXR 3.4 and later
    PK11_InitPin MXR 3.2 and later
    PK11_IsFIPS MXR 3.2 and later
    PK11_IsDisabled MXR 3.4 and later
    PK11_IsFriendly MXR 3.2 and later
    PK11_IsHW MXR 3.2 and later
    PK11_IsInternal MXR 3.2 and later
    PK11_IsPresent MXR 3.2 and later
    PK11_IsReadOnly MXR 3.2 and later
    PK11_IsRemovable MXR 3.12 and later
    PK11_IVFromParam MXR 3.2 and later
    PK11_KeyGen MXR 3.2 and later
    PK11_LinkGenericObject MXR 3.9.2 and later
    PK11_ListCerts MXR 3.2 and later. Updated 3.8 with new options. See bug 215186
    PK11_ListFixedKeysInSlot MXR 3.4 and later
    PK11_ListPrivKeysInSlot MXR 3.4 and later
    PK11_ListPublicKeysInSlot MXR 3.4 and later
    PK11_LoadPrivKey MXR 3.4 and later
    PK11_LogoutAll MXR 3.4 and later
    PK11_MakeKEAPubKey MXR 3.2 and later
    PK11_MapPBEMechanismToCryptoMechanism MXR 3.2 and later
    PK11_MapSignKeyType MXR 3.11 and later
    PK11_MechanismToAlgtag MXR 3.4 and later
    PK11_MergeTokens MXR 3.12 and later
    PK11_MoveSymKey MXR 3.9 and later
    PK11_NeedLogin MXR 3.2 and later
    PK11_NeedUserInit MXR 3.2 and later
    PK11_ParamFromIV MXR 3.2 and later
    PK11_ParamFromAlgid MXR 3.2 and later
    PK11_ParamToAlgid MXR 3.2 and later
    PK11_PBEKeyGen MXR 3.2 and later
    PK11_PrivDecryptPKCS1 MXR 3.9.3 and later
    PK11_ProtectedAuthenticationPath MXR 3.4 and later
    PK11_PubDecryptRaw MXR 3.2 and later
    PK11_PubDerive MXR 3.2 and later
    PK11_PubDeriveWithKDF MXR 3.9 and later
    PK11_PubEncryptPKCS1 MXR 3.9.3 and later
    PK11_PubEncryptRaw MXR 3.2 and later
    PK11_PubUnwrapSymKey MXR 3.2 and later
    PK11_PubUnwrapSymKeyWithFlags MXR 3.6 and later
    PK11_PubUnwrapSymKeyWithFlagsPerm MXR 3.9 and later
    PK11_PubWrapSymKey MXR 3.2 and later
    PK11_RandomUpdate MXR 3.2 and later
    PK11_ReadRawAttribute MXR 3.9.2 and later
    PK11_ReferenceSymKey MXR 3.2 and later
    PK11_ResetToken MXR 3.4 and later
    PK11_RestoreContext MXR 3.2 and later
    PK11_SaveContext MXR 3.2 and later
    PK11_SaveContextAlloc MXR 3.6 and later
    PK11_SetFortezzaHack MXR 3.2 and later
    PK11_SetPasswordFunc MXR 3.2 and later
    PK11_SetPrivateKeyNickname MXR 3.4 and later
    PK11_SetPublicKeyNickname MXR 3.4 and later
    PK11_SetSlotPWValues MXR 3.2 and later
    PK11_SetSymKeyNickname MXR 3.4 and later
    PK11_SetSymKeyUserData MXR 3.11 and later
    PK11_SetWrapKey MXR 3.2 and later
    PK11_Sign MXR 3.2 and later
    PK11_SignatureLen MXR 3.2 and later
    PK11_SymKeyFromHandle MXR 3.2 and later
    PK11_TokenExists MXR 3.2 and later
    PK11_TokenKeyGen MXR 3.6 and later
    PK11_TokenKeyGenWithFlags MXR 3.10.2 and later
    PK11_TokenRefresh MXR 3.7.1 and later
    PK11_TraverseCertsForNicknameInSlot MXR 3.2 and later
    PK11_TraverseCertsForSubjectInSlot MXR 3.2 and later
    PK11_TraverseSlotCerts MXR 3.4 and later
    PK11_UnlinkGenericObject MXR 3.9.2 and later
    PK11_UnwrapSymKey MXR 3.2 and later
    PK11_UnwrapSymKeyWithFlags MXR 3.2 and later
    PK11_UnwrapSymKeyWithFlagsPerm MXR 3.9 and later
    PK11_UpdateSlotAttribute MXR 3.8 and later
    PK11_UserEnableSlot MXR 3.8 and later
    PK11_UserDisableSlot MXR 3.8 and later
    PK11_Verify MXR 3.2 and later
    PK11_VerifyKeyOK MXR 3.2 and later
    PK11_WaitForTokenEvent MXR 3.7 and later
    PK11_WrapSymKey MXR 3.2 and later
    PK11_WriteRawAttribute MXR 3.12 and later
    PK11SDR_Encrypt MXR 3.2 and later
    PK11SDR_Decrypt MXR 3.2 and later
    SEC_DeletePermCertificate MXR 3.2 and later
    SEC_DeletePermCRL MXR 3.2 and later
    SEC_DerSignData MXR 3.2 and later
    SEC_DestroyCrl MXR 3.2 and later
    SEC_FindCrlByDERCert MXR 3.2 and later
    SEC_FindCrlByName MXR 3.2 and later
    SEC_LookupCrls MXR 3.2 and later
    SEC_NewCrl MXR 3.2 and later
    SEC_QuickDERDecodeItem MXR 3.6 and later
    SECKEY_CacheStaticFlags MXR 3.10 and later
    SECKEY_ConvertToPublicKey MXR 3.2 and later
    SECKEY_CopyPrivateKey MXR 3.2 and later
    SECKEY_CopyPublicKey MXR 3.6 and later
    SECKEY_CopySubjectPublicKeyInfo MXR 3.4 and later
    SECKEY_CreateDHPrivateKey MXR 3.3 and later
    SECKEY_CreateECPrivateKey MXR 3.8 and later
    SECKEY_CreateSubjectPublicKeyInfo MXR 3.2 and later
    SECKEY_DecodeDERSubjectPublicKeyInfo MXR 3.4 and later
    SECKEY_DestroyPrivateKey MXR 3.2 and later
    SECKEY_ECParamsToBasePointOrderLen MXR 3.12 and later
    SECKEY_ECParamsToKeySize MXR 3.12 and later
    SECKEY_DestroyPublicKeyList MXR 3.4 and later
    SECKEY_DestroySubjectPublicKeyInfo MXR 3.2 and later
    SECKEY_GetPublicKeyType MXR 3.3 and later
    SECKEY_PublicKeyStrengthInBits MXR 3.8 and later
    SECKEY_SignatureLen MXR 3.11.2 and later

     

    Utility functions

    The public functions listed here perform initialization tasks and other services.

    If documentation is available for a function listed below, the function name is linked to either its MDC wiki page or its entry in the old SSL Reference. The Mozilla Cross Reference (MXR) link for each function provides access to the function definition, prototype definition, and source code references. The NSS version column indicates which versions of NSS support the function.

    Function name/documentation Source code NSS versions
    ATOB_AsciiToData MXR Deprecated 3.2 use NSSBase64_DecodeBuffer
    ATOB_ConvertAsciiToItem MXR Deprecated 3.2 use NSSBase64_DecodeBuffer
    BTOA_ConvertItemToAscii MXR Deprecated 3.2 use NSSBase64_EncodeItem
    BTOA_DataToAscii MXR Deprecated 3.2 use NSSBase64_EncodeItem
    DER_AsciiToTime MXR 3.5 and later
    DER_DecodeTimeChoice MXR 3.9 and later
    DER_Encode MXR 3.4 and later
    DER_EncodeTimeChoice MXR 3.9 and later
    DER_GeneralizedTimeToTime MXR 3.2 and later
    DER_GetInteger MXR 3.2 and later
    DER_GeneralizedDayToAscii MXR 3.11.7 and later
    DER_Lengths MXR 3.2 and later
    DER_TimeToUTCTime MXR 3.2 and later
    DER_TimeChoiceDayToAscii MXR 3.11.7 and later
    DER_TimeToGeneralizedTime MXR 3.11.7 and later
    DER_TimeToGeneralizedTimeArena MXR 3.11.7 and later
    DER_UTCDayToAscii MXR 3.2 and later
    DER_UTCTimeToAscii MXR 3.2 and later
    DER_UTCTimeToTime MXR 3.2 and later
    DSAU_DecodeDerSig MXR 3.2 and later
    DSAU_DecodeDerSigToLen MXR 3.9 and later
    DSAU_EncodeDerSig MXR 3.2 and later
    DSAU_EncodeDerSigWithLen MXR 3.9 and later
    HASH_Begin MXR 3.4 and later
    HASH_Clone MXR 3.10 and later
    HASH_Create MXR 3.4 and later
    HASH_Destroy MXR 3.4 and later
    HASH_End MXR 3.4 and later
    HASH_GetHashObject MXR 3.2 and later
    HASH_GetHashObjectByOidTag MXR 3.8 and later
    HASH_GetHashTypeByOidTag MXR 3.8 and later
    HASH_GetType MXR 3.12 and later
    HASH_HashBuf MXR 3.10 and later
    HASH_ResultLen MXR 3.4 and later
    HASH_ResultLenByOidTag MXR 3.10 and later
    HASH_ResultLenContext MXR 3.10 and later
    HASH_Update MXR 3.4 and later
    NSS_Init MXR 3.2 and later
    NSS_Initialize MXR 3.2 and later
    NSS_InitReadWrite MXR 3.2 and later
    NSS_InitWithMerge MXR 3.12 and later
    NSS_IsInitialized MXR 3.9.2 and later
    NSS_NoDB_Init MXR 3.2 and later
    NSS_PutEnv MXR 3.2 and later
    NSS_RegisterShutdown MXR 3.11.1 and later
    NSS_Shutdown MXR 3.2 and later
    NSS_UnregisterShutdown MXR 3.11.1 and later
    NSS_VersionCheck MXR 3.2 and later
    NSSBase64_DecodeBuffer MXR 3.4 and later
    NSSBase64Decoder_Create MXR 3.2 and later
    NSSBase64Decoder_Destroy MXR 3.2 and later
    NSSBase64Decoder_Update MXR 3.2 and later
    NSSBase64_EncodeItem MXR 3.4 and later
    NSSBase64Encoder_Create MXR 3.2 and later
    NSSBase64Encoder_Destroy MXR 3.2 and later
    NSSBase64Encoder_Update MXR 3.2 and later
    NSSRWLock_Destroy MXR 3.2 and later
    NSSRWLock_HaveWriteLock MXR 3.2 and later
    NSSRWLock_LockRead MXR 3.2 and later
    NSSRWLock_LockWrite MXR 3.2 and later
    NSSRWLock_New MXR 3.2 and later
    NSSRWLock_UnlockRead MXR 3.2 and later
    NSSRWLock_UnlockWrite MXR 3.2 and later
    NSSSMIME_VersionCheck MXR 3.2.1 and later
    PORT_Alloc MXR 3.2 and later
    PORT_ArenaAlloc MXR 3.2 and later
    PORT_ArenaGrow MXR 3.2 and later
    PORT_ArenaMark MXR 3.2 and later
    PORT_ArenaRelease MXR 3.2 and later
    PORT_ArenaStrdup MXR 3.2 and later
    PORT_ArenaUnmark MXR 3.2 and later
    PORT_ArenaZAlloc MXR 3.2 and later
    PORT_Free MXR 3.2 and later
    PORT_FreeArena MXR 3.2 and later
    PORT_GetError MXR 3.2 and later
    PORT_NewArena MXR 3.2 and later
    PORT_Realloc MXR 3.2 and later
    PORT_SetError MXR 3.2 and later
    PORT_SetUCS2_ASCIIConversionFunction MXR 3.2 and later
    PORT_SetUCS2_UTF8ConversionFunction MXR 3.2 and later
    PORT_SetUCS4_UTF8ConversionFunction MXR 3.2 and later
    PORT_Strdup MXR 3.5 and later
    PORT_UCS2_ASCIIConversion MXR 3.2 and later
    PORT_UCS2_UTF8Conversion MXR 3.2 and later
    PORT_ZAlloc MXR 3.2 and later
    PORT_ZFree MXR 3.2 and later
    RSA_FormatBlock MXR 3.2 and later
    SEC_ASN1Decode MXR 3.4 and later
    SEC_ASN1DecodeInteger MXR 3.2 and later
    SEC_ASN1DecodeItem MXR 3.2 and later
    SEC_ASN1DecoderAbort MXR 3.9 and later
    SEC_ASN1DecoderClearFilterProc MXR 3.2 and later
    SEC_ASN1DecoderClearNotifyProc MXR 3.2 and later
    SEC_ASN1DecoderFinish MXR 3.2 and later
    SEC_ASN1DecoderSetFilterProc MXR 3.2 and later
    SEC_ASN1DecoderSetNotifyProc MXR 3.2 and later
    SEC_ASN1DecoderStart MXR 3.2 and later
    SEC_ASN1DecoderUpdate MXR 3.2 and later
    SEC_ASN1Encode MXR 3.2 and later
    SEC_ASN1EncodeInteger MXR 3.2 and later
    SEC_ASN1EncodeItem MXR 3.2 and later
    SEC_ASN1EncoderAbort MXR 3.9 and later
    SEC_ASN1EncoderClearNotifyProc MXR 3.2 and later
    SEC_ASN1EncoderClearStreaming MXR 3.2 and later
    SEC_ASN1EncoderClearTakeFromBuf MXR 3.2 and later
    SEC_ASN1EncoderFinish MXR 3.2 and later
    SEC_ASN1EncoderSetNotifyProc MXR 3.2 and later
    SEC_ASN1EncoderSetStreaming MXR 3.2 and later
    SEC_ASN1EncoderSetTakeFromBuf MXR 3.2 and later
    SEC_ASN1EncoderStart MXR 3.2 and later
    SEC_ASN1EncoderUpdate MXR 3.2 and later
    SEC_ASN1EncodeUnsignedInteger MXR 3.11.1 and later
    SEC_ASN1LengthLength MXR 3.2 and later
    SEC_DupCrl MXR 3.9 and later
    SEC_GetSignatureAlgorithmOidTag MXR 3.10 and later
    SEC_GetRegisteredHttpClient MXR 3.12 and later
    SEC_PKCS5GetCryptoAlgorithm MXR 3.2 and later
    SEC_PKCS5GetKeyLength MXR 3.2 and later
    SEC_PKCS5GetPBEAlgorithm MXR 3.2 and later
    SEC_PKCS5IsAlgorithmPBEAlg MXR 3.2 and later
    SEC_PKCS5IsAlgorithmPBEAlgTag MXR 3.12 and later
    SEC_RegisterDefaultHttpClient MXR 3.11.1 and later
    SEC_SignData MXR 3.2 and later
    SEC_StringToOID MXR 3.12 and later
    SECITEM_AllocItem MXR 3.2 and later
    SECITEM_ArenaDupItem MXR 3.9 and later
    SECITEM_CompareItem MXR 3.2 and later
    SECITEM_CopyItem MXR 3.2 and later
    SECITEM_DupItem MXR 3.2 and later
    SECITEM_FreeItem MXR 3.2 and later
    SECITEM_ItemsAreEqual MXR 3.8 and later
    SECITEM_ZfreeItem MXR 3.2 and later
    SECKEY_CopyEncryptedPrivateKeyInfo MXR 3.2 and later
    SECKEY_CopyPrivateKeyInfo MXR 3.2 and later
    SECKEY_CreateRSAPrivateKey MXR 3.2 and later
    SECKEY_DestroyEncryptedPrivateKeyInfo MXR 3.2 and later
    SECKEY_DestroyPrivateKeyInfo MXR 3.2 and later
    SECKEY_DestroyPublicKey MXR 3.2 and later
    SECKEY_PublicKeyStrength MXR 3.2 and later
    SECKEY_UpdateCertPQG MXR 3.2 and later
    SECMOD_AddNewModule MXR 3.3 and later
    SECMOD_AddNewModuleEx MXR 3.4 and later
    SECMOD_DeleteModuleEx MXR 3.12 and later
    SECMOD_CancelWait MXR 3.9.3 and later
    SECMOD_CanDeleteInternalModule MXR 3.5 and later
    SECMOD_CreateModule MXR 3.4 and later
    SECMOD_DeleteModule MXR 3.4 and later
    SECMOD_FindModule MXR 3.4 and later
    SECMOD_FindSlot MXR 3.4 and later
    SECMOD_FreeModuleSpecList MXR 3.4 and later
    SECMOD_GetDBModuleList MXR 3.9 and later
    SECMOD_GetDeadModuleList MXR 3.9 and later
    SECMOD_GetModuleSpecList MXR 3.4 and later
    SECMOD_HasRemovableSlots MXR 3.9.3 and later
    SECMOD_IsModulePresent MXR 3.2 and later
    SECMOD_LoadModule MXR 3.4 and later
    SECMOD_LoadUserModule MXR 3.4 and later
    SECMOD_LookupSlot MXR 3.2 and later
    SECMOD_PubCipherFlagstoInternal MXR 3.4 and later
    SECMOD_PubMechFlagstoInternal MXR 3.4 and later
    SECMOD_UnloadUserModule MXR 3.4 and later
    SECMOD_UpdateModule MXR 3.4 and later
    SECMOD_UpdateSlotList MXR 3.9.3 and later
    SECMOD_WaitForAnyTokenEvent MXR 3.9.3 and later
    SECOID_AddEntry MXR 3.10 and later
    SECOID_CompareAlgorithmID MXR 3.2 and later
    SECOID_CopyAlgorithmID MXR 3.2 and later
    SECOID_DestroyAlgorithmID MXR 3.2 and later
    SECOID_FindOID MXR 3.2 and later
    SECOID_FindOIDByTag MXR 3.2 and later
    SECOID_FindOIDTag MXR 3.2 and later
    SECOID_FindOIDTagDescription MXR 3.2 and later
    SECOID_GetAlgorithmTag MXR 3.2 and later
    SECOID_SetAlgorithmID MXR 3.2 and later
    SGN_Begin MXR 3.2 and later
    SGN_CompareDigestInfo MXR 3.2 and later
    SGN_CopyDigestInfo MXR 3.2 and later
    SGN_CreateDigestInfo MXR 3.2 and later
    SGN_DestroyContext MXR 3.2 and later
    SGN_DestroyDigestInfo MXR 3.2 and later
    SGN_Digest MXR 3.2 and later
    SGN_End MXR 3.2 and later
    SGN_NewContext MXR 3.2 and later
    SGN_Update MXR 3.2 and later
    VFY_Begin MXR 3.2 and later
    VFY_CreateContext MXR Deprecated 3.12 use VFY_CreateContextDirect or VFY_CreateContextWithAlgorithmID
    VFY_CreateContextDirect MXR 3.12 and later
    VFY_CreateContextWithAlgorithmID MXR 3.12 and later
    VFY_DestroyContext MXR 3.2 and later
    VFY_End MXR 3.2 and later
    VFY_Update MXR 3.2 and later
    VFY_VerifyData MXR Deprecated 3.12 use VFY_VerifyDataDirect or VFY_VerifyDataWithAlgorithmID
    VFY_VerifyDataDirect MXR 3.12 and later
    VFY_DataWithAlgorithmID MXR 3.12 and later
    VFY_VerifyDigest MXR Deprecated 3.12 use VFY_VerifyDigestDirect or VFY_VerifyDigestWithAlgorithmID
    VFY_VerifyDigestDirect MXR 3.12 and later
    VFY_VerifyDigestWithAlgorithmID MXR 3.12 and later

     

    S/MIME functions

    The public functions listed here perform S/MIME operations using the S/MIME Toolkit.

    The Mozilla Cross Reference (MXR) link for each function provides access to the function definition, prototype definition, and source code references. The NSS version column indicates which versions of NSS support the function.

     

    Function name/documentation Source code NSS versions
    NSS_CMSContentInfo_GetBulkKey MXR 3.2 and later
    NSS_CMSContentInfo_GetBulkKeySize MXR 3.2 and later
    NSS_CMSContentInfo_GetContent MXR 3.2 and later
    NSS_CMSContentInfo_GetContentEncAlgTag MXR 3.2 and later
    NSS_CMSContentInfo_GetContentTypeTag MXR 3.2 and later
    NSS_CMSContentInfo_SetBulkKey MXR 3.2 and later
    NSS_CMSContentInfo_SetContent MXR 3.2 and later
    NSS_CMSContentInfo_SetContent_Data MXR 3.2 and later
    NSS_CMSContentInfo_SetContentEncAlg MXR 3.2 and later
    NSS_CMSContentInfo_SetContent_DigestedData MXR 3.2 and later
    NSS_CMSContentInfo_SetContent_EncryptedData MXR 3.2 and later
    NSS_CMSContentInfo_SetContent_EnvelopedData MXR 3.2 and later
    NSS_CMSContentInfo_SetContent_SignedData MXR 3.2 and later
    NSS_CMSDecoder_Cancel MXR 3.2 and later
    NSS_CMSDecoder_Finish MXR 3.2 and later
    NSS_CMSDecoder_Start MXR 3.2 and later
    NSS_CMSDecoder_Update MXR 3.2 and later
    NSS_CMSDigestContext_Cancel MXR 3.2 and later
    NSS_CMSDigestContext_FinishMultiple MXR 3.2 and later
    NSS_CMSDigestContext_FinishSingle MXR 3.2 and later
    NSS_CMSDigestContext_StartMultiple MXR 3.2 and later
    NSS_CMSDigestContext_StartSingle MXR 3.2 and later
    NSS_CMSDigestContext_Update MXR 3.2 and later
    NSS_CMSDigestedData_Create MXR 3.2 and later
    NSS_CMSDigestedData_Destroy MXR 3.2 and later
    NSS_CMSDigestedData_GetContentInfo MXR 3.2 and later
    NSS_CMSDEREncode MXR 3.2 and later
    NSS_CMSEncoder_Cancel MXR 3.2 and later
    NSS_CMSEncoder_Finish MXR 3.2 and later
    NSS_CMSEncoder_Start MXR 3.2 and later
    NSS_CMSEncoder_Update MXR 3.2 and later
    NSS_CMSEncryptedData_Create MXR 3.2 and later
    NSS_CMSEncryptedData_Destroy MXR 3.2 and later
    NSS_CMSEncryptedData_GetContentInfo MXR 3.2 and later
    NSS_CMSEnvelopedData_AddRecipient MXR 3.2 and later
    NSS_CMSEnvelopedData_Create MXR 3.2 and later
    NSS_CMSEnvelopedData_Destroy MXR 3.2 and later
    NSS_CMSEnvelopedData_GetContentInfo MXR 3.2 and later
    NSS_CMSMessage_ContentLevel MXR 3.2 and later
    NSS_CMSMessage_ContentLevelCount MXR 3.2 and later
    NSS_CMSMessage_Copy MXR 3.2 and later
    NSS_CMSMessage_Create MXR 3.2 and later
    NSS_CMSMessage_CreateFromDER MXR 3.2 and later
    NSS_CMSMessage_Destroy MXR 3.2 and later
    NSS_CMSMessage_GetContent MXR 3.2 and later
    NSS_CMSMessage_GetContentInfo MXR 3.2 and later
    NSS_CMSMessage_IsEncrypted MXR 3.4.1 and later
    NSS_CMSMessage_IsSigned MXR 3.4 and later
    NSS_CMSRecipientInfo_Create MXR 3.2 and later
    NSS_CMSRecipientInfo_CreateFromDER MXR 3.8 and later
    NSS_CMSRecipientInfo_CreateNew MXR 3.8 and later
    NSS_CMSRecipientInfo_CreateWithSubjKeyID MXR 3.7 and later
    NSS_CMSRecipientInfo_CreateWithSubjKeyIDFromCert MXR 3.7 and later
    NSS_CMSRecipientInfo_Destroy MXR 3.2 and later
    NSS_CMSRecipientInfo_Encode MXR 3.8 and later
    NSS_CMSRecipientInfo_GetCertAndKey MXR 3.8 and later
    NSS_CMSRecipientInfo_UnwrapBulkKey MXR 3.7.2 and later
    NSS_CMSRecipientInfo_WrapBulkKey MXR 3.7.2 and later
    NSS_CMSSignedData_AddCertChain MXR 3.2 and later
    NSS_CMSSignedData_AddCertList MXR 3.2 and later
    NSS_CMSSignedData_AddCertificate MXR 3.2 and later
    NSS_CMSSignedData_AddDigest MXR 3.2 and later
    NSS_CMSSignedData_AddSignerInfo MXR 3.2 and later
    NSS_CMSSignedData_Create MXR 3.2 and later
    NSS_CMSSignedData_CreateCertsOnly MXR 3.2 and later
    NSS_CMSSignedData_Destroy MXR 3.2 and later
    NSS_CMSSignedData_GetContentInfo MXR 3.2 and later
    NSS_CMSSignedData_GetDigestAlgs MXR 3.2 and later
    NSS_CMSSignedData_GetSignerInfo MXR 3.2 and later
    NSS_CMSSignedData_HasDigests MXR 3.2 and later
    NSS_CMSSignedData_ImportCerts MXR 3.2 and later
    NSS_CMSSignedData_SetDigests MXR 3.2 and later
    NSS_CMSSignedData_SetDigestValue MXR 3.4 and later
    NSS_CMSSignedData_SignerInfoCount MXR 3.2 and later
    NSS_CMSSignedData_VerifyCertsOnly MXR 3.2 and later
    NSS_CMSSignedData_VerifySignerInfo MXR 3.2 and later
    NSS_CMSSignerInfo_AddMSSMIMEEncKeyPrefs MXR 3.6 and later
    NSS_CMSSignerInfo_AddSMIMECaps MXR 3.2 and later
    NSS_CMSSignerInfo_AddSMIMEEncKeyPrefs MXR 3.2 and later
    NSS_CMSSignerInfo_AddSigningTime MXR 3.2 and later
    NSS_CMSSignerInfo_Create MXR 3.2 and later
    NSS_CMSSignerInfo_CreateWithSubjKeyID MXR 3.6 and later
    NSS_CMSSignerInfo_Destroy MXR 3.2 and later
    NSS_CMSSignerInfo_GetCertList MXR 3.2 and later
    NSS_CMSSignerInfo_GetSignerCommonName MXR 3.2 and later
    NSS_CMSSignerInfo_GetSignerEmailAddress MXR 3.2 and later
    NSS_CMSSignerInfo_GetSigningCertificate MXR 3.2 and later
    NSS_CMSSignerInfo_GetSigningTime MXR 3.2 and later
    NSS_CMSSignerInfo_GetVerificationStatus MXR 3.2 and later
    NSS_CMSSignerInfo_GetVersion MXR 3.2 and later
    NSS_CMSSignerInfo_IncludeCerts MXR 3.2 and later
    NSS_CMSUtil_VerificationStatusToString MXR 3.2 and later
    NSS_SMIMESignerInfo_SaveSMIMEProfile MXR 3.4 and later
    NSS_SMIMEUtil_FindBulkAlgForRecipients MXR 3.2 and later

     

    PKCS #7 functions

    The public functions listed here perform PKCS #7 operations required by mail and news applications and by some of the NSS tools.

    The Mozilla Cross Reference (MXR) link for each function provides access to the function definition, prototype definition, and source code references. The NSS version column indicates which versions of NSS support the function.

     

    Function name/documentation Source code NSS versions
    SEC_PKCS7AddCertificate MXR 3.3 and later
    SEC_PKCS7AddRecipient MXR 3.2 and later
    SEC_PKCS7AddSigningTime MXR 3.2 and later
    SEC_PKCS7ContainsCertsOrCrls MXR 3.4 and later
    SEC_PKCS7ContentIsEncrypted MXR 3.4 and later
    SEC_PKCS7ContentIsSigned MXR 3.4 and later
    SEC_PKCS7ContentType MXR 3.2 and later
    SEC_PKCS7CopyContentInfo MXR 3.4 and later
    SEC_PKCS7CreateCertsOnly MXR 3.3 and later
    SEC_PKCS7CreateData MXR 3.2 and later
    SEC_PKCS7CreateEncryptedData MXR 3.2 and later
    SEC_PKCS7CreateEnvelopedData MXR 3.2 and later
    SEC_PKCS7CreateSignedData MXR 3.2 and later
    SEC_PKCS7DecodeItem MXR 3.2 and later
    SEC_PKCS7DecoderAbort MXR 3.9 and later
    SEC_PKCS7DecoderFinish MXR 3.2 and later
    SEC_PKCS7DecoderStart MXR 3.2 and later
    SEC_PKCS7DecoderUpdate MXR 3.2 and later
    SEC_PKCS7DecryptContents MXR 3.2 and later
    SEC_PKCS7DestroyContentInfo MXR 3.2 and later
    SEC_PKCS7Encode MXR 3.3 and later
    SEC_PKCS7EncodeItem MXR 3.9.3 and later
    SEC_PKCS7EncoderAbort MXR 3.9 and later
    SEC_PKCS7EncoderFinish MXR 3.2 and later
    SEC_PKCS7EncoderStart MXR 3.2 and later
    SEC_PKCS7EncoderUpdate MXR 3.2 and later
    SEC_PKCS7GetCertificateList MXR 3.2 and later
    SEC_PKCS7GetContent MXR 3.2 and later
    SEC_PKCS7GetEncryptionAlgorithm MXR 3.2 and later
    SEC_PKCS7GetSignerCommonName MXR 3.4 and later
    SEC_PKCS7GetSignerEmailAddress MXR 3.4 and later
    SEC_PKCS7GetSigningTime MXR 3.4 and later
    SEC_PKCS7IncludeCertChain MXR 3.2 and later
    SEC_PKCS7IsContentEmpty MXR 3.2 and later
    SEC_PKCS7SetContent MXR 3.4 and later
    SEC_PKCS7VerifyDetachedSignature MXR 3.4 and later
    SEC_PKCS7VerifySignature MXR 3.2 and later
    SECMIME_DecryptionAllowed MXR 3.4 and later

     

    PKCS #12 functions

    The public functions listed here perform PKCS #12 operations required by some of the NSS tools and other applications.

    The Mozilla Cross Reference (MXR) link for each function provides access to the function definition, prototype definition, and source code references. The NSS version column indicates which versions of NSS support the function.

    Function name/documentation Source code NSS versions
    SEC_PKCS12AddCertAndKey MXR 3.2 and later
    SEC_PKCS12AddPasswordIntegrity MXR 3.2 and later
    SEC_PKCS12CreateExportContext MXR 3.2 and later
    SEC_PKCS12CreatePasswordPrivSafe MXR 3.2 and later
    SEC_PKCS12CreateUnencryptedSafe MXR 3.2 and later
    SEC_PKCS12DecoderFinish MXR 3.2 and later
    SEC_PKCS12DecoderGetCerts MXR 3.4 and later
    SEC_PKCS12DecoderImportBags MXR 3.2 and later
    SEC_PKCS12DecoderIterateInit MXR 3.10 and later
    SEC_PKCS12DecoderIterateNext MXR 3.10 and later
    SEC_PKCS12DecoderSetTargetTokenCAs MXR 3.8 and later
    SEC_PKCS12DecoderStart MXR 3.2 and later
    SEC_PKCS12DecoderUpdate MXR 3.2 and later
    SEC_PKCS12DecoderValidateBags MXR 3.2 and later
    SEC_PKCS12DecoderVerify MXR 3.2 and later
    SEC_PKCS12DestroyExportContext MXR 3.2 and later
    SEC_PKCS12EnableCipher MXR 3.2 and later
    SEC_PKCS12Encode MXR 3.2 and later
    SEC_PKCS12IsEncryptionAllowed MXR 3.2 and later
    SEC_PKCS12SetPreferredCipher MXR 3.2 and later

     

    Document Tags and Contributors

    Tags: 
    Contributors to this page: kwilson, Glenb, ethertank, fscholz, Akass
    Last updated by: fscholz,