Cargo Features
[dependencies]
objc2-security = { version = "0.3.0", default-features = false, features = ["std", "alloc", "bitflags", "block2", "libc", "objc2", "AuthSession", "Authorization", "AuthorizationDB", "AuthorizationPlugin", "AuthorizationTags", "CMSDecoder", "CMSEncoder", "CSCommon", "CipherSuite", "CodeSigning", "SecACL", "SecAccess", "SecAccessControl", "SecAsn1Templates", "SecAsn1Types", "SecBase", "SecCertificate", "SecCertificateOIDs", "SecCode", "SecCodeHost", "SecDecodeTransform", "SecEncodeTransform", "SecEncryptTransform", "SecIdentity", "SecIdentitySearch", "SecImportExport", "SecItem", "SecKey", "SecKeychain", "SecKeychainItem", "SecKeychainSearch", "SecPolicy", "SecPolicySearch", "SecProtocolMetadata", "SecProtocolOptions", "SecProtocolTypes", "SecReadTransform", "SecRequirement", "SecSharedCredential", "SecSignVerifyTransform", "SecStaticCode", "SecTask", "SecTransform", "SecTransformReadTransform", "SecTrust", "SecTrustSettings", "SecTrustedApplication", "SecureDownload", "SecureTransport", "certextensions", "cssmapi", "cssmapple", "cssmcli", "cssmconfig", "cssmerr", "cssmkrapi", "cssmkrspi", "cssmspi", "cssmtpi", "cssmtype", "emmspi", "emmtype", "oidsattr", "oidscrl", "x509defs"] }
- default = AuthSession, Authorization, AuthorizationDB, AuthorizationPlugin, AuthorizationTags, CMSDecoder, CMSEncoder, CSCommon, CipherSuite, CodeSigning, SecACL, SecAccess, SecAccessControl, SecAsn1Coder, SecAsn1Templates, SecAsn1Types, SecBase, SecCertificate, SecCertificateOIDs, SecCode, SecCodeHost, SecCustomTransform, SecDecodeTransform, SecDigestTransform, SecEncodeTransform, SecEncryptTransform, SecIdentity, SecIdentitySearch, SecImportExport, SecItem, SecKey, SecKeychain, SecKeychainItem, SecKeychainSearch, SecPolicy, SecPolicySearch, SecProtocolMetadata, SecProtocolObject, SecProtocolOptions, SecProtocolTypes, SecRandom, SecReadTransform, SecRequirement, SecSharedCredential, SecSignVerifyTransform, SecStaticCode, SecTask, SecTransform, SecTransformReadTransform, SecTrust, SecTrustSettings, SecTrustedApplication, SecureDownload, SecureTransport, bitflags, block2, certextensions, cssm, cssmaci, cssmapi, cssmapple, cssmcli, cssmconfig, cssmcspi, cssmdli, cssmerr, cssmkrapi, cssmkrspi, cssmspi, cssmtpi, cssmtype, eisl, emmspi, emmtype, libc, mds, mds_schema, objc2, oids, oidsalg, oidsattr, oidsbase, oidscert, oidscrl, std, x509defs
-
These default features are set whenever
objc2-security
is added without
somewhere in the dependency tree.default-features = false - std default = alloc
- alloc std
- bitflags default AuthSession Authorization AuthorizationPlugin CMSEncoder CSCommon SecACL SecAccessControl SecCertificate SecImportExport SecKey SecKeychain SecTrust SecTrustSettings
-
Enables bitflags
- block2 default
-
Enables block2
Affects
Authorization::AuthorizationAsyncCallback
,Authorization::AuthorizationCopyRightsAsync
,SecCustomTransform::SecTransformActionBlock
,SecCustomTransform::SecTransformAttributeActionBlock
,SecCustomTransform::SecTransformDataBlock
,SecCustomTransform::SecTransformInstanceBlock
,SecCustomTransform::SecTransformSetAttributeAction
,SecCustomTransform::SecTransformSetDataAction
,SecCustomTransform::SecTransformSetTransformAction
,SecProtocolMetadata::sec_protocol_metadata_access_supported_signature_algorithms
,SecProtocolOptions::sec_protocol_key_update_complete_t
,SecProtocolOptions::sec_protocol_verify_complete_t
,SecProtocolTypes::sec_identity_access_certificates
,SecSharedCredential::SecAddSharedWebCredential
,SecSharedCredential::SecRequestSharedWebCredential
,SecTransform::SecMessageBlock
,SecTrust::SecTrustCallback
,SecTrust::SecTrustWithErrorCallback
,SecCustomTransform::SecTransformCreateFP
,SecCustomTransform::SecTransformRegister
… - libc default
-
Enables libc
Affects
Authorization::AuthorizationExecuteWithPrivileges
,SecAccess::SecAccessCreateWithOwnerAndACL
,SecAccess::SecAccessCopyOwnerAndACL
,SecCodeHost::SecHostSetHostingPort
,SecKeychain::SecKeychainCallbackInfo
,SecKeychain::SecKeychainCallback
,SecKeychain::SecKeychainAddCallback
,SecKeychain::SecKeychainRemoveCallback
,cssmapple::cssm_appledl_open_parameters
,cssmapple::CSSM_APPLEDL_OPEN_PARAMETERS
,cssmapple::CSSM_APPLEDL_OPEN_PARAMETERS_PTR
… - objc2 default
-
Enables objc2, objc2 of objc2-core-foundation
- AuthSession default = bitflags
- Authorization default = bitflags
-
Affects
AuthorizationDB::AuthorizationRightSet
,AuthorizationDB::AuthorizationRightRemove
,AuthorizationPlugin::AuthorizationMechanismId
,AuthorizationPlugin::AuthorizationPluginId
,AuthorizationPlugin::AuthorizationCallbacks
,AuthorizationPlugin::AuthorizationPluginInterface
,AuthorizationPlugin::AuthorizationPluginCreate
… - AuthorizationDB default
-
Enables CFBase, CFBundle and CFDictionary of objc2-core-foundation
- AuthorizationPlugin default = bitflags
-
Enables CFArray and CFBase of objc2-core-foundation
- AuthorizationTags default
- CMSDecoder default
-
Enables CFArray, CFBase, CFData and CFDate of objc2-core-foundation
- CMSEncoder default = bitflags
-
Enables CFArray, CFBase, CFData and CFDate of objc2-core-foundation
- CSCommon default = bitflags
-
Enables CFBase of objc2-core-foundation
Affects
SecCode::SecCodeCopySelf
,SecCode::SecCodeCopyStaticCode
,SecCode::SecCodeCopyHost
,SecCode::SecCodeCopyGuestWithAttributes
,SecCode::SecCodeCheckValidity
,SecCode::SecCodeCheckValidityWithErrors
,SecCode::SecCodeValidateFileResource
,SecCode::SecCodeCopyPath
,SecCode::SecCodeCopyDesignatedRequirement
,SecCode::SecCodeCopySigningInformation
,SecCode::SecCodeMapMemory
,SecCodeHost::SecHostCreateGuest
,SecCodeHost::SecHostRemoveGuest
,SecCodeHost::SecHostSelectGuest
,SecCodeHost::SecHostSelectedGuest
,SecCodeHost::SecHostSetGuestStatus
,SecRequirement::SecRequirementCreateWithData
,SecRequirement::SecRequirementCreateWithString
,SecRequirement::SecRequirementCreateWithStringAndErrors
,SecRequirement::SecRequirementCopyData
… - CipherSuite default
-
Affects
SecProtocolMetadata::sec_protocol_metadata_get_negotiated_ciphersuite
,SecProtocolOptions::sec_protocol_options_add_tls_ciphersuite
,SecProtocolOptions::sec_protocol_options_add_tls_ciphersuite_group
,SecureTransport::SSLGetSupportedCiphers
,SecureTransport::SSLSetEnabledCiphers
,SecureTransport::SSLGetEnabledCiphers
,SecureTransport::SSLGetNegotiatedCipher
… - CodeSigning default
- SecACL default = bitflags
-
Enables CFArray and CFBase of objc2-core-foundation
- SecAccess default
-
Enables CFArray, CFBase and CFError of objc2-core-foundation
- SecAccessControl default = bitflags
-
Enables CFBase and CFError of objc2-core-foundation
- SecAsn1Coder SecAsn1Templates default
- SecAsn1Types default
-
Affects
CMSEncoder::CMSEncoderSetEncapsulatedContentType
,CMSEncoder::CMSEncode
,SecAsn1Coder::SecAsn1Decode
,SecAsn1Coder::SecAsn1DecodeData
,SecAsn1Coder::SecAsn1EncodeItem
,SecAsn1Coder::SecAsn1AllocItem
,SecAsn1Coder::SecAsn1AllocCopy
,SecAsn1Coder::SecAsn1AllocCopyItem
,SecAsn1Coder::SecAsn1OidCompare
,SecAsn1Templates::kSecAsn1AnyTemplate
,SecAsn1Templates::kSecAsn1BitStringTemplate
,SecAsn1Templates::kSecAsn1BMPStringTemplate
,SecAsn1Templates::kSecAsn1BooleanTemplate
,SecAsn1Templates::kSecAsn1EnumeratedTemplate
,SecAsn1Templates::kSecAsn1GeneralizedTimeTemplate
,SecAsn1Templates::kSecAsn1IA5StringTemplate
,SecAsn1Templates::kSecAsn1IntegerTemplate
,SecAsn1Templates::kSecAsn1UnsignedIntegerTemplate
,SecAsn1Templates::kSecAsn1NullTemplate
,SecAsn1Templates::kSecAsn1ObjectIDTemplate
… - SecBase default
-
Enables CFBase of objc2-core-foundation
Affects
CMSDecoder::CMSDecoderCopySignerCert
,SecACL::SecACLRemove
,SecACL::SecACLCopyAuthorizations
,SecACL::SecACLUpdateAuthorizations
,SecAccess::SecAccessCreate
,SecAccess::SecAccessCopyACLList
,SecAccess::SecAccessCopyMatchingACLList
,SecAccessControl::SecAccessControlCreateWithFlags
,SecCertificate::SecCertificateCreateWithData
,SecCertificate::SecCertificateCopyData
,SecCertificate::SecCertificateCopySubjectSummary
,SecCertificate::SecCertificateCopyCommonName
,SecCertificate::SecCertificateCopyEmailAddresses
,SecCertificate::SecCertificateCopyNormalizedIssuerSequence
,SecCertificate::SecCertificateCopyNormalizedSubjectSequence
,SecCertificate::SecCertificateCopyPublicKey
,SecCertificate::SecCertificateCopySerialNumberData
,SecCertificate::SecCertificateCopyNotValidBeforeDate
,SecCertificate::SecCertificateCopyNotValidAfterDate
,SecCertificate::SecCertificateCopySerialNumber
… - SecCertificate default = bitflags
-
Enables CFArray, CFBase, CFData, CFDate, CFDictionary and CFError of objc2-core-foundation
- SecCertificateOIDs default
-
Enables CFBase of objc2-core-foundation
- SecCode default
-
Enables CFBase, CFData, CFDictionary, CFError and CFURL of objc2-core-foundation
- SecCodeHost default
-
Enables CFDictionary and CFURL of objc2-core-foundation
- SecCustomTransform SecDecodeTransform default
-
Enables CFBase and CFError of objc2-core-foundation
- SecDigestTransform SecEncodeTransform default
-
Enables CFBase and CFError of objc2-core-foundation
- SecEncryptTransform default
-
Enables CFBase and CFError of objc2-core-foundation
- SecIdentity default
-
Enables CFArray and CFBase of objc2-core-foundation
- SecIdentitySearch default
-
Enables CFBase of objc2-core-foundation
- SecImportExport default = bitflags
-
Enables CFArray, CFBase, CFData and CFDictionary of objc2-core-foundation
- SecItem default
-
Enables CFBase and CFDictionary of objc2-core-foundation
- SecKey default = bitflags
-
Enables CFBase, CFData, CFDictionary and CFError of objc2-core-foundation
- SecKeychain default = bitflags
-
Enables CFArray and CFBase of objc2-core-foundation
- SecKeychainItem default
-
Enables CFBase and CFData of objc2-core-foundation
Affects
SecKeychainSearch::SecKeychainSearchCreateFromAttributes
… - SecKeychainSearch default
-
Enables CFBase of objc2-core-foundation
- SecPolicy default
-
Enables CFBase and CFDictionary of objc2-core-foundation
- SecPolicySearch default
-
Enables CFBase of objc2-core-foundation
- SecProtocolMetadata default
-
Affects
SecProtocolOptions::sec_protocol_key_update_t
,SecProtocolOptions::sec_protocol_challenge_t
,SecProtocolOptions::sec_protocol_verify_t
… - SecProtocolObject SecProtocolOptions default
- SecProtocolTypes default
-
Enables CFArray of objc2-core-foundation
Affects
SecProtocolMetadata::sec_protocol_metadata_get_negotiated_tls_protocol_version
,SecProtocolMetadata::sec_protocol_metadata_get_negotiated_protocol_version
,SecProtocolMetadata::sec_protocol_metadata_get_negotiated_tls_ciphersuite
,SecProtocolOptions::sec_protocol_options_set_local_identity
,SecProtocolOptions::sec_protocol_options_append_tls_ciphersuite
,SecProtocolOptions::sec_protocol_options_append_tls_ciphersuite_group
,SecProtocolOptions::sec_protocol_options_set_tls_min_version
,SecProtocolOptions::sec_protocol_options_set_min_tls_protocol_version
,SecProtocolOptions::sec_protocol_options_get_default_min_tls_protocol_version
,SecProtocolOptions::sec_protocol_options_get_default_min_dtls_protocol_version
,SecProtocolOptions::sec_protocol_options_set_tls_max_version
,SecProtocolOptions::sec_protocol_options_set_max_tls_protocol_version
,SecProtocolOptions::sec_protocol_options_get_default_max_tls_protocol_version
,SecProtocolOptions::sec_protocol_options_get_default_max_dtls_protocol_version
,SecureTransport::SSLSetProtocolVersionMin
,SecureTransport::SSLGetProtocolVersionMin
,SecureTransport::SSLSetProtocolVersionMax
,SecureTransport::SSLGetProtocolVersionMax
,SecureTransport::SSLSetProtocolVersionEnabled
,SecureTransport::SSLGetProtocolVersionEnabled
… - SecRandom SecReadTransform default
- SecRequirement default
-
Enables CFBase, CFData and CFError of objc2-core-foundation
-
Enables CFArray, CFBase and CFError of objc2-core-foundation
- SecSignVerifyTransform default
-
Enables CFBase, CFData and CFError of objc2-core-foundation
- SecStaticCode default
-
Enables CFBase, CFDictionary, CFError and CFURL of objc2-core-foundation
- SecTask default
-
Enables CFArray, CFBase, CFDictionary and CFError of objc2-core-foundation
- SecTransform default
-
Enables CFBase, CFDictionary and CFError of objc2-core-foundation
Affects
SecCustomTransform::SecTransformCreate
,SecDecodeTransform::SecDecodeTransformCreate
,SecDigestTransform::SecDigestTransformCreate
,SecEncodeTransform::SecEncodeTransformCreate
,SecTransformReadTransform::SecTransformCreateReadTransformWithReadStream
,SecCustomTransform::SecTransformCreateFP
,SecCustomTransform::SecTransformRegister
,SecEncryptTransform::SecEncryptTransformCreate
,SecEncryptTransform::SecDecryptTransformCreate
,SecSignVerifyTransform::SecSignTransformCreate
,SecSignVerifyTransform::SecVerifyTransformCreate
… - SecTransformReadTransform default
-
Enables CFBase and CFStream of objc2-core-foundation
- SecTrust default = bitflags
-
Enables CFArray, CFBase, CFData, CFDate, CFDictionary and CFError of objc2-core-foundation
Affects
CMSDecoder::CMSDecoderCopySignerStatus
,SecProtocolTypes::sec_trust_create
,SecProtocolTypes::sec_trust_copy_ref
,SecureDownload::SecureDownloadTrustSetupCallback
,SecureDownload::SecureDownloadTrustEvaluateCallback
,SecureDownload::SecureDownloadCreateWithTicket
,SecureTransport::SSLCopyPeerTrust
… - SecTrustSettings default = bitflags
-
Enables CFArray, CFBase, CFData and CFDate of objc2-core-foundation
- SecTrustedApplication default
-
Enables CFBase and CFData of objc2-core-foundation
- SecureDownload default
-
Enables CFArray, CFBase, CFData, CFDate and CFURL of objc2-core-foundation
- SecureTransport default
-
Enables CFArray, CFBase and CFData of objc2-core-foundation
- certextensions default
-
Affects
cssmapple::CSSM_APPLE_TP_SMIME_OPTIONS
,cssmapple::CSSM_APPLE_TP_CERT_REQUEST
… - cssm cssmaci cssmapi default
- cssmapple default
-
Affects
SecACL::SecACLCreateFromSimpleContents
,SecACL::SecACLCopySimpleContents
,SecACL::SecACLSetSimpleContents
,SecTrust::SecTrustGetResult
… - cssmcli default
- cssmconfig default
-
Affects
SecACL::SecKeychainPromptSelector
,SecKey::SecCredentialType
,certextensions::CE_KeyUsage
,certextensions::CE_CrlReason
,certextensions::CE_NetscapeCertType
,certextensions::CE_CrlDistReasonFlags
,certextensions::CE_CrlNumber
,certextensions::CE_DeltaCrl
,certextensions::CE_InhibitAnyPolicy
,cssmapple::cssm_acl_process_subject_selector
,cssmapple::CSSM_ACL_PROCESS_SUBJECT_SELECTOR
,cssmapple::cssm_acl_keychain_prompt_selector
,cssmapple::CSSM_ACL_KEYCHAIN_PROMPT_SELECTOR
,cssmapple::CSSM_ACL_PREAUTH_TRACKING_STATE
,cssmapple::cssm_applecspdl_db_settings_parameters
,cssmapple::CSSM_APPLECSPDL_DB_SETTINGS_PARAMETERS
,cssmapple::CSSM_APPLECSPDL_DB_SETTINGS_PARAMETERS_PTR
,cssmapple::cssm_applecspdl_db_is_locked_parameters
,cssmapple::CSSM_APPLECSPDL_DB_IS_LOCKED_PARAMETERS
,cssmapple::CSSM_APPLECSPDL_DB_IS_LOCKED_PARAMETERS_PTR
… - cssmcspi cssmdli cssmerr default
- cssmkrapi default
-
Affects
cssmtype::cssm_context_attribute
,cssmtype::CSSM_CONTEXT_ATTRIBUTE
,cssmtype::CSSM_CONTEXT_ATTRIBUTE_PTR
,cssmtype::cssm_context
,cssmtype::CSSM_CONTEXT
,cssmtype::CSSM_CONTEXT_PTR
,cssmapi::CSSM_GetContext
,cssmapi::CSSM_FreeContext
,cssmapi::CSSM_SetContext
,cssmapi::CSSM_GetContextAttribute
,cssmapi::CSSM_UpdateContextAttributes
,cssmapi::CSSM_DeleteContextAttributes
,cssmkrspi::cssm_spi_kr_funcs
,cssmkrspi::CSSM_SPI_KR_FUNCS
,cssmkrspi::CSSM_SPI_KR_FUNCS_PTR
,cssmcspi::cssm_spi_csp_funcs
,cssmcspi::CSSM_SPI_CSP_FUNCS
,cssmcspi::CSSM_SPI_CSP_FUNCS_PTR
… - cssmkrspi default
- cssmspi default
-
Affects
cssmcspi::cssm_spi_csp_funcs
,cssmcspi::CSSM_SPI_CSP_FUNCS
,cssmcspi::CSSM_SPI_CSP_FUNCS_PTR
,emmspi::cssm_state_funcs
,emmspi::CSSM_STATE_FUNCS
,emmspi::CSSM_STATE_FUNCS_PTR
,emmspi::cssm_manager_registration_info
,emmspi::CSSM_MANAGER_REGISTRATION_INFO
,emmspi::CSSM_MANAGER_REGISTRATION_INFO_PTR
… - cssmtpi default
- cssmtype default
-
Affects
objc2-security::CSSM_STRING
,SecIdentitySearch::SecIdentitySearchCreate
,SecTrust::SecTrustSetParameters
,SecTrust::SecTrustGetCssmResult
,SecTrust::SecTrustGetTPHandle
,certextensions::CE_BasicConstraints
,certextensions::CE_PolicyConstraints
,cssmaci::cssm_spi_ac_funcs
,cssmaci::CSSM_SPI_AC_FUNCS
,cssmaci::CSSM_SPI_AC_FUNCS_PTR
,cssmapi::CSSM_Init
,cssmapi::CSSM_Terminate
,cssmapi::CSSM_ModuleLoad
,cssmapi::CSSM_ModuleUnload
,cssmapi::CSSM_Introduce
,cssmapi::CSSM_Unintroduce
,cssmapi::CSSM_ModuleAttach
,cssmapi::CSSM_ModuleDetach
,cssmapi::CSSM_SetPrivilege
,cssmapi::CSSM_GetPrivilege
… - eisl emmspi default
- emmtype default
-
Affects
emmspi::cssm_state_funcs
,emmspi::CSSM_STATE_FUNCS
,emmspi::CSSM_STATE_FUNCS_PTR
,emmspi::cssm_manager_registration_info
,emmspi::CSSM_MANAGER_REGISTRATION_INFO
,emmspi::CSSM_MANAGER_REGISTRATION_INFO_PTR
… - mds mds_schema oids oidsalg oidsattr default
- oidsbase oidscert oidscrl default
- x509defs default
-
Affects
SecCertificate::SecCertificateGetSubject
,SecCertificate::SecCertificateGetIssuer
,certextensions::CE_DistributionPointName
,certextensions::CE_CRLDistributionPoint
,certextensions::CE_CRLDistPointsSyntax
,certextensions::CE_IssuingDistributionPoint
,certextensions::CE_DataAndType
,cssmapple::CSSM_APPLE_CL_CSR_REQUEST
,cssmapple::CSSM_APPLE_TP_CERT_REQUEST
…