will and way

ただの自分用メモを人に伝える形式で書くことでわかりやすくまとめてるはずのブログ

iOSのSecurity Frameworkのステータスコード逆引き

Appleのセキュリティ周りのステータスコードでnumberとエラーが紐づかないのでメモ

In addition to the codes listed here, certain Security framework services provide additional status codes that are specific to that service. In particular, see Authorization Services Result Codes, Sessions API Result Codes, Secure Transport Result Codes, Secure Download Result Codes, and Code Signing Services Result Codes.

他のステータスコードは追加していないです。

Success

errSecSuccess: 0

Error(降順)

errSecUnimplemented: -4
errSecDskFull: -34
errSecIO: -36
errSecOpWr: -49
errSecParam: -50
errSecWrPerm: -61
errSecAllocate: -108
errSecUserCanceled: -128
errSecBadReq: -909
errSecInternalComponent: -2070
errSecCoreFoundationUnknown: -4960
errSecACLNotSimple: -25240
errSecPolicyNotFound: -25241
errSecInvalidTrustSetting: -25242
errSecNoAccessForItem: -25243
errSecInvalidOwnerEdit: -25244
errSecTrustNotAvailable: -25245
errSecUnsupportedFormat: -25256
errSecUnknownFormat: -25257
errSecKeyIsSensitive: -25258
errSecMultiplePrivKeys: -25259
errSecPassphraseRequired: -25260
errSecInvalidPasswordRef: -25261
errSecInvalidTrustSettings: -25262
errSecNoTrustSettings: -25263
errSecPkcs12VerifyFailure: -25264
errSecNotAvailable: -25291
errSecReadOnly: -25292
errSecAuthFailed: -25293
errSecNoSuchKeychain: -25294
errSecInvalidKeychain: -25295
errSecDuplicateKeychain: -25296
errSecDuplicateCallback: -25297
errSecInvalidCallback: -25298
errSecDuplicateItem: -25299
errSecItemNotFound: -25300
errSecBufferTooSmall: -25301
errSecDataTooLarge: -25302
errSecNoSuchAttr: -25303
errSecInvalidItemRef: -25304
errSecInvalidSearchRef: -25305
errSecNoSuchClass: -25306
errSecNoDefaultKeychain: -25307
errSecInteractionNotAllowed: -25308
errSecReadOnlyAttr: -25309
errSecWrongSecVersion: -25310
errSecKeySizeNotAllowed: -25311
errSecNoStorageModule: -25312
errSecNoCertificateModule: -25313
errSecNoPolicyModule: -25314
errSecInteractionRequired: -25315
errSecDataNotAvailable: -25316
errSecDataNotModifiable: -25317
errSecCreateChainFailed: -25318
errSecInvalidPrefsDomain: -25319
errSecInDarkWake: -25320
errSecNotSigner: -26267
errSecDecode: -26275
errSecMissingEntitlement: -34018
errSecServiceNotAvailable: -67585
errSecInsufficientClientID: -67586
errSecDeviceReset: -67587
errSecDeviceFailed: -67588
errSecAppleAddAppACLSubject: -67589
errSecApplePublicKeyIncomplete: -67590
errSecAppleSignatureMismatch: -67591
errSecAppleInvalidKeyStartDate: -67592
errSecAppleInvalidKeyEndDate: -67593
errSecConversionError: -67594
errSecAppleSSLv2Rollback: -67595
errSecQuotaExceeded: -67596
errSecFileTooBig: -67597
errSecInvalidDatabaseBlob: -67598
errSecInvalidKeyBlob: -67599
errSecIncompatibleDatabaseBlob: -67600
errSecIncompatibleKeyBlob: -67601
errSecHostNameMismatch: -67602
errSecUnknownCriticalExtensionFlag: -67603
errSecNoBasicConstraints: -67604
errSecNoBasicConstraintsCA: -67605
errSecInvalidAuthorityKeyID: -67606
errSecInvalidSubjectKeyID: -67607
errSecInvalidKeyUsageForPolicy: -67608
errSecInvalidExtendedKeyUsage: -67609
errSecInvalidIDLinkage: -67610
errSecPathLengthConstraintExceeded: -67611
errSecInvalidRoot: -67612
errSecCRLExpired: -67613
errSecCRLNotValidYet: -67614
errSecCRLNotFound: -67615
errSecCRLServerDown: -67616
errSecCRLBadURI: -67617
errSecUnknownCertExtension: -67618
errSecUnknownCRLExtension: -67619
errSecCRLNotTrusted: -67620
errSecCRLPolicyFailed: -67621
errSecIDPFailure: -67622
errSecSMIMEEmailAddressesNotFound: -67623
errSecSMIMEBadExtendedKeyUsage: -67624
errSecSMIMEBadKeyUsage: -67625
errSecSMIMEKeyUsageNotCritical: -67626
errSecSMIMENoEmailAddress: -67627
errSecSMIMESubjAltNameNotCritical: -67628
errSecSSLBadExtendedKeyUsage: -67629
errSecOCSPBadResponse: -67630
errSecOCSPBadRequest: -67631
errSecOCSPUnavailable: -67632
errSecOCSPStatusUnrecognized: -67633
errSecEndOfData: -67634
errSecIncompleteCertRevocationCheck: -67635
errSecNetworkFailure: -67636
errSecOCSPNotTrustedToAnchor: -67637
errSecRecordModified: -67638
errSecOCSPSignatureError: -67639
errSecOCSPNoSigner: -67640
errSecOCSPResponderMalformedReq: -67641
errSecOCSPResponderInternalError: -67642
errSecOCSPResponderTryLater: -67643
errSecOCSPResponderSignatureRequired: -67644
errSecOCSPResponderUnauthorized: -67645
errSecOCSPResponseNonceMismatch: -67646
errSecCodeSigningBadCertChainLength: -67647
errSecCodeSigningNoBasicConstraints: -67648
errSecCodeSigningBadPathLengthConstraint: -67649
errSecCodeSigningNoExtendedKeyUsage: -67650
errSecCodeSigningDevelopment: -67651
errSecResourceSignBadCertChainLength: -67652
errSecResourceSignBadExtKeyUsage: -67653
errSecTrustSettingDeny: -67654
errSecInvalidSubjectName: -67655
errSecUnknownQualifiedCertStatement: -67656
errSecMobileMeRequestQueued: -67657
errSecMobileMeRequestRedirected: -67658
errSecMobileMeServerError: -67659
errSecMobileMeServerNotAvailable: -67660
errSecMobileMeServerAlreadyExists: -67661
errSecMobileMeServerServiceErr: -67662
errSecMobileMeRequestAlreadyPending: -67663
errSecMobileMeNoRequestPending: -67664
errSecMobileMeCSRVerifyFailure: -67665
errSecMobileMeFailedConsistencyCheck: -67666
errSecNotInitialized: -67667
errSecInvalidHandleUsage: -67668
errSecPVCReferentNotFound: -67669
errSecFunctionIntegrityFail: -67670
errSecInternalError: -67671
errSecMemoryError: -67672
errSecInvalidData: -67673
errSecMDSError: -67674
errSecInvalidPointer: -67675
errSecSelfCheckFailed: -67676
errSecFunctionFailed: -67677
errSecModuleManifestVerifyFailed: -67678
errSecInvalidGUID: -67679
errSecInvalidHandle: -67680
errSecInvalidDBList: -67681
errSecInvalidPassthroughID: -67682
errSecInvalidNetworkAddress: -67683
errSecCRLAlreadySigned: -67684
errSecInvalidNumberOfFields: -67685
errSecVerificationFailure: -67686
errSecUnknownTag: -67687
errSecInvalidSignature: -67688
errSecInvalidName: -67689
errSecInvalidCertificateRef: -67690
errSecInvalidCertificateGroup: -67691
errSecTagNotFound: -67692
errSecInvalidQuery: -67693
errSecInvalidValue: -67694
errSecCallbackFailed: -67695
errSecACLDeleteFailed: -67696
errSecACLReplaceFailed: -67697
errSecACLAddFailed: -67698
errSecACLChangeFailed: -67699
errSecInvalidAccessCredentials: -67700
errSecInvalidRecord: -67701
errSecInvalidACL: -67702
errSecInvalidSampleValue: -67703
errSecIncompatibleVersion: -67704
errSecPrivilegeNotGranted: -67705
errSecInvalidScope: -67706
errSecPVCAlreadyConfigured: -67707
errSecInvalidPVC: -67708
errSecEMMLoadFailed: -67709
errSecEMMUnloadFailed: -67710
errSecAddinLoadFailed: -67711
errSecInvalidKeyRef: -67712
errSecInvalidKeyHierarchy: -67713
errSecAddinUnloadFailed: -67714
errSecLibraryReferenceNotFound: -67715
errSecInvalidAddinFunctionTable: -67716
errSecInvalidServiceMask: -67717
errSecModuleNotLoaded: -67718
errSecInvalidSubServiceID: -67719
errSecAttributeNotInContext: -67720
errSecModuleManagerInitializeFailed: -67721
errSecModuleManagerNotFound: -67722
errSecEventNotificationCallbackNotFound: -67723
errSecInputLengthError: -67724
errSecOutputLengthError: -67725
errSecPrivilegeNotSupported: -67726
errSecDeviceError: -67727
errSecAttachHandleBusy: -67728
errSecNotLoggedIn: -67729
errSecAlgorithmMismatch: -67730
errSecKeyUsageIncorrect: -67731
errSecKeyBlobTypeIncorrect: -67732
errSecKeyHeaderInconsistent: -67733
errSecUnsupportedKeyFormat: -67734
errSecUnsupportedKeySize: -67735
errSecInvalidKeyUsageMask: -67736
errSecUnsupportedKeyUsageMask: -67737
errSecInvalidKeyAttributeMask: -67738
errSecUnsupportedKeyAttributeMask: -67739
errSecInvalidKeyLabel: -67740
errSecUnsupportedKeyLabel: -67741
errSecInvalidKeyFormat: -67742
errSecUnsupportedVectorOfBuffers: -67743
errSecInvalidInputVector: -67744
errSecInvalidOutputVector: -67745
errSecInvalidContext: -67746
errSecInvalidAlgorithm: -67747
errSecInvalidAttributeKey: -67748
errSecMissingAttributeKey: -67749
errSecInvalidAttributeInitVector: -67750
errSecMissingAttributeInitVector: -67751
errSecInvalidAttributeSalt: -67752
errSecMissingAttributeSalt: -67753
errSecInvalidAttributePadding: -67754
errSecMissingAttributePadding: -67755
errSecInvalidAttributeRandom: -67756
errSecMissingAttributeRandom: -67757
errSecInvalidAttributeSeed: -67758
errSecMissingAttributeSeed: -67759
errSecInvalidAttributePassphrase: -67760
errSecMissingAttributePassphrase: -67761
errSecInvalidAttributeKeyLength: -67762
errSecMissingAttributeKeyLength: -67763
errSecInvalidAttributeBlockSize: -67764
errSecMissingAttributeBlockSize: -67765
errSecInvalidAttributeOutputSize: -67766
errSecMissingAttributeOutputSize: -67767
errSecInvalidAttributeRounds: -67768
errSecMissingAttributeRounds: -67769
errSecInvalidAlgorithmParms: -67770
errSecMissingAlgorithmParms: -67771
errSecInvalidAttributeLabel: -67772
errSecMissingAttributeLabel: -67773
errSecInvalidAttributeKeyType: -67774
errSecMissingAttributeKeyType: -67775
errSecInvalidAttributeMode: -67776
errSecMissingAttributeMode: -67777
errSecInvalidAttributeEffectiveBits: -67778
errSecMissingAttributeEffectiveBits: -67779
errSecInvalidAttributeStartDate: -67780
errSecMissingAttributeStartDate: -67781
errSecInvalidAttributeEndDate: -67782
errSecMissingAttributeEndDate: -67783
errSecInvalidAttributeVersion: -67784
errSecMissingAttributeVersion: -67785
errSecInvalidAttributePrime: -67786
errSecMissingAttributePrime: -67787
errSecInvalidAttributeBase: -67788
errSecMissingAttributeBase: -67789
errSecInvalidAttributeSubprime: -67790
errSecMissingAttributeSubprime: -67791
errSecInvalidAttributeIterationCount: -67792
errSecMissingAttributeIterationCount: -67793
errSecInvalidAttributeDLDBHandle: -67794
errSecMissingAttributeDLDBHandle: -67795
errSecInvalidAttributeAccessCredentials: -67796
errSecMissingAttributeAccessCredentials: -67797
errSecInvalidAttributePublicKeyFormat: -67798
errSecMissingAttributePublicKeyFormat: -67799
errSecInvalidAttributePrivateKeyFormat: -67800
errSecMissingAttributePrivateKeyFormat: -67801
errSecInvalidAttributeSymmetricKeyFormat: -67802
errSecMissingAttributeSymmetricKeyFormat: -67803
errSecInvalidAttributeWrappedKeyFormat: -67804
errSecMissingAttributeWrappedKeyFormat: -67805
errSecStagedOperationInProgress: -67806
errSecStagedOperationNotStarted: -67807
errSecVerifyFailed: -67808
errSecQuerySizeUnknown: -67809
errSecBlockSizeMismatch: -67810
errSecPublicKeyInconsistent: -67811
errSecDeviceVerifyFailed: -67812
errSecInvalidLoginName: -67813
errSecAlreadyLoggedIn: -67814
errSecInvalidDigestAlgorithm: -67815
errSecInvalidCRLGroup: -67816
errSecCertificateCannotOperate: -67817
errSecCertificateExpired: -67818
errSecCertificateNotValidYet: -67819
errSecCertificateRevoked: -67820
errSecCertificateSuspended: -67821
errSecInsufficientCredentials: -67822
errSecInvalidAction: -67823
errSecInvalidAuthority: -67824
errSecVerifyActionFailed: -67825
errSecInvalidCertAuthority: -67826
errSecInvaldCRLAuthority: -67827
errSecInvalidCRLEncoding: -67828
errSecInvalidCRLType: -67829
errSecInvalidCRL: -67830
errSecInvalidFormType: -67831
errSecInvalidID: -67832
errSecInvalidIdentifier: -67833
errSecInvalidIndex: -67834
errSecInvalidPolicyIdentifiers: -67835
errSecInvalidTimeString: -67836
errSecInvalidReason: -67837
errSecInvalidRequestInputs: -67838
errSecInvalidResponseVector: -67839
errSecInvalidStopOnPolicy: -67840
errSecInvalidTuple: -67841
errSecMultipleValuesUnsupported: -67842
errSecNotTrusted: -67843
errSecNoDefaultAuthority: -67844
errSecRejectedForm: -67845
errSecRequestLost: -67846
errSecRequestRejected: -67847
errSecUnsupportedAddressType: -67848
errSecUnsupportedService: -67849
errSecInvalidTupleGroup: -67850
errSecInvalidBaseACLs: -67851
errSecInvalidTupleCredendtials: -67852
errSecInvalidEncoding: -67853
errSecInvalidValidityPeriod: -67854
errSecInvalidRequestor: -67855
errSecRequestDescriptor: -67856
errSecInvalidBundleInfo: -67857
errSecInvalidCRLIndex: -67858
errSecNoFieldValues: -67859
errSecUnsupportedFieldFormat: -67860
errSecUnsupportedIndexInfo: -67861
errSecUnsupportedLocality: -67862
errSecUnsupportedNumAttributes: -67863
errSecUnsupportedNumIndexes: -67864
OSStatus): -67865: errSecUnsupportedNumRecordTypes: OSStatus: -67866
errSecIncompatibleFieldFormat: -67867
errSecInvalidParsingModule: -67868
errSecDatabaseLocked: -67869
errSecDatastoreIsOpen: -67870
errSecMissingValue: -67871
errSecUnsupportedQueryLimits: -67872
errSecUnsupportedNumSelectionPreds: -67873
errSecUnsupportedOperator: -67874
errSecInvalidDBLocation: -67875
errSecInvalidAccessRequest: -67876
errSecInvalidIndexInfo: -67877
errSecInvalidNewOwner: -67878
errSecInvalidModifyMode: -67879
errSecMissingRequiredExtension: -67880
errSecExtendedKeyUsageNotCritical: -67881
errSecTimestampMissing: -67882
errSecTimestampInvalid: -67883
errSecTimestampNotTrusted: -67884
errSecTimestampServiceNotAvailable: -67885
errSecTimestampBadAlg: -67886
errSecTimestampBadRequest: -67887
errSecTimestampBadDataFormat: -67888
errSecTimestampTimeNotAvailable: -67889
errSecTimestampUnacceptedPolicy: -67890
errSecTimestampUnacceptedExtension: -67891
errSecTimestampAddInfoNotAvailable: -67892
errSecTimestampSystemFailure: -67893
errSecSigningTimeMissing: -67894
errSecTimestampRejection: -67895
errSecTimestampWaiting: -67896
errSecTimestampRevocationWarning: -67897
errSecTimestampRevocationNotification: -67898