[System] Use 'ObjCRuntimeInternal' as the namespace instead of 'ObjCRuntime'. (#4820)
[mono.git] / mcs / class / System / Mono.AppleTls / Enums.cs
1 #if MONO_FEATURE_APPLETLS
2 // Copyright 2011-2015 Xamarin Inc. All rights reserved.
3
4 using ObjCRuntimeInternal;
5
6 namespace Mono.AppleTls {
7
8         // this is a subset of OSStatus -> SInt32 -> signed int - see CoreFoundation.framework/Headers/CFBase.h
9         // values are defined in Security.framework/Headers/SecBase.h 
10         enum SecStatusCode {
11                 Success                                                         = 0,
12                 Unimplemented                                           = -4,
13                 DiskFull                                                        = -34,
14                 IO                                                                      = -36,
15                 OpWr                                                            = -49,
16                 Param                                                           = -50,
17                 WritePermissions                                        = -61,
18                 Allocate                                                        = -108,
19                 UserCanceled                                            = -128,
20                 BadReq                                                          = -909,
21                 InternalComponent                                       = -2070,
22                 CoreFoundationUnknown                           = -4960,
23                 NotAvailable                                            = -25291,
24                 ReadOnly                                                        = -25292,
25                 AuthFailed                                                      = -25293,
26                 NoSuchKeyChain                                          = -25294,
27                 InvalidKeyChain                                         = -25295,
28                 DuplicateKeyChain                                       = -25296,
29                 DuplicateItem                                           = -25299,
30                 ItemNotFound                                            = -25300,
31                 InteractionNotAllowed                           = -25308,
32                 Decode                                                          = -26275,
33                 DuplicateCallback                                       = -25297,
34                 InvalidCallback                                         = -25298,
35                 BufferTooSmall                                          = -25301,
36                 DataTooLarge                                            = -25302,
37                 NoSuchAttribute                                         = -25303,
38                 InvalidItemRef                                          = -25304,
39                 InvalidSearchRef                                        = -25305,
40                 NoSuchClass                                                     = -25306,
41                 NoDefaultKeychain                                       = -25307,
42                 ReadOnlyAttribute                                       = -25309,
43                 WrongSecVersion                                         = -25310,
44                 KeySizeNotAllowed                                       = -25311,
45                 NoStorageModule                                         = -25312,
46                 NoCertificateModule                             = -25313,
47                 NoPolicyModule                                          = -25314,
48                 InteractionRequired                             = -25315,
49                 DataNotAvailable                                        = -25316,
50                 DataNotModifiable                                       = -25317,
51                 CreateChainFailed                                       = -25318,
52                 InvalidPrefsDomain                                      = -25319,
53                 InDarkWake                                                      = -25320,
54                 ACLNotSimple                                            = -25240,
55                 PolicyNotFound                                          = -25241,
56                 InvalidTrustSetting                                     = -25242,
57                 NoAccessForItem                                         = -25243,
58                 InvalidOwnerEdit                                        = -25244,
59                 TrustNotAvailable                                       = -25245,
60                 UnsupportedFormat                                       = -25256,
61                 UnknownFormat                                           = -25257,
62                 KeyIsSensitive                                          = -25258,
63                 MultiplePrivateKeys                             = -25259,
64                 PassphraseRequired                                      = -25260,
65                 InvalidPasswordRef                                      = -25261,
66                 InvalidTrustSettings                            = -25262,
67                 NoTrustSettings                                         = -25263,
68                 Pkcs12VerifyFailure                             = -25264,
69                 NotSigner                                                       = -26267,
70                 ServiceNotAvailable                             = -67585,
71                 InsufficientClientID                            = -67586,
72                 DeviceReset                                             = -67587,
73                 DeviceFailed                                            = -67588,
74                 AppleAddAppACLSubject                           = -67589,
75                 ApplePublicKeyIncomplete                        = -67590,
76                 AppleSignatureMismatch                          = -67591,
77                 AppleInvalidKeyStartDate                        = -67592,
78                 AppleInvalidKeyEndDate                          = -67593,
79                 ConversionError                                         = -67594,
80                 AppleSSLv2Rollback                                      = -67595,
81                 QuotaExceeded                                           = -67596,
82                 FileTooBig                                                      = -67597,
83                 InvalidDatabaseBlob                             = -67598,
84                 InvalidKeyBlob                                          = -67599,
85                 IncompatibleDatabaseBlob                        = -67600,
86                 IncompatibleKeyBlob                             = -67601,
87                 HostNameMismatch                                        = -67602,
88                 UnknownCriticalExtensionFlag            = -67603,
89                 NoBasicConstraints                                      = -67604,
90                 NoBasicConstraintsCA                            = -67605,
91                 InvalidAuthorityKeyID                           = -67606,
92                 InvalidSubjectKeyID                                     = -67607,       /* The subject key ID is not valid. */
93                 InvalidKeyUsageForPolicy                        = -67608,       /* The key usage is not valid for the specified policy. */
94                 InvalidExtendedKeyUsage                         = -67609,       /* The extended key usage is not valid. */
95                 InvalidIDLinkage                                        = -67610,       /* The ID linkage is not valid. */
96                 PathLengthConstraintExceeded            = -67611,       /* The path length constraint was exceeded. */
97                 InvalidRoot                                                     = -67612,       /* The root or anchor certificate is not valid. */
98                 CRLExpired                                                      = -67613,       /* The CRL has expired. */
99                 CRLNotValidYet                                          = -67614,       /* The CRL is not yet valid. */
100                 CRLNotFound                                                     = -67615,       /* The CRL was not found. */
101                 CRLServerDown                                           = -67616,       /* The CRL server is down. */
102                 CRLBadURI                                                       = -67617,       /* The CRL has a bad Uniform Resource Identifier. */
103                 UnknownCertExtension                            = -67618,       /* An unknown certificate extension was encountered. */
104                 UnknownCRLExtension                                     = -67619,       /* An unknown CRL extension was encountered. */
105                 CRLNotTrusted                                           = -67620,       /* The CRL is not trusted. */
106                 CRLPolicyFailed                                         = -67621,       /* The CRL policy failed. */
107                 IDPFailure                                                      = -67622,       /* The issuing distribution point was not valid. */
108                 SMIMEEmailAddressesNotFound                     = -67623,       /* An email address mismatch was encountered. */
109                 SMIMEBadExtendedKeyUsage                        = -67624,       /* The appropriate extended key usage for SMIME was not found. */
110                 SMIMEBadKeyUsage                                        = -67625,       /* The key usage is not compatible with SMIME. */
111                 SMIMEKeyUsageNotCritical                        = -67626,       /* The key usage extension is not marked as critical. */
112                 SMIMENoEmailAddress                                     = -67627,       /* No email address was found in the certificate. */
113                 SMIMESubjAltNameNotCritical                     = -67628,       /* The subject alternative name extension is not marked as critical. */
114                 SSLBadExtendedKeyUsage                          = -67629,       /* The appropriate extended key usage for SSL was not found. */
115                 OCSPBadResponse                                         = -67630,       /* The OCSP response was incorrect or could not be parsed. */
116                 OCSPBadRequest                                          = -67631,       /* The OCSP request was incorrect or could not be parsed. */
117                 OCSPUnavailable                                         = -67632,       /* OCSP service is unavailable. */
118                 OCSPStatusUnrecognized                          = -67633,       /* The OCSP server did not recognize this certificate. */
119                 EndOfData                                                       = -67634,       /* An end-of-data was detected. */
120                 IncompleteCertRevocationCheck           = -67635,       /* An incomplete certificate revocation check occurred. */
121                 NetworkFailure                                          = -67636,       /* A network failure occurred. */
122                 OCSPNotTrustedToAnchor                          = -67637,       /* The OCSP response was not trusted to a root or anchor certificate. */
123                 RecordModified                                          = -67638,       /* The record was modified. */
124                 OCSPSignatureError                                      = -67639,       /* The OCSP response had an invalid signature. */
125                 OCSPNoSigner                                            = -67640,       /* The OCSP response had no signer. */
126                 OCSPResponderMalformedReq                       = -67641,       /* The OCSP responder was given a malformed request. */
127                 OCSPResponderInternalError                      = -67642,       /* The OCSP responder encountered an internal error. */
128                 OCSPResponderTryLater                           = -67643,       /* The OCSP responder is busy, try again later. */
129                 OCSPResponderSignatureRequired          = -67644,       /* The OCSP responder requires a signature. */
130                 OCSPResponderUnauthorized                       = -67645,       /* The OCSP responder rejected this request as unauthorized. */
131                 OCSPResponseNonceMismatch                       = -67646,       /* The OCSP response nonce did not match the request. */
132                 CodeSigningBadCertChainLength           = -67647,       /* Code signing encountered an incorrect certificate chain length. */
133                 CodeSigningNoBasicConstraints           = -67648,       /* Code signing found no basic constraints. */
134                 CodeSigningBadPathLengthConstraint      = -67649,       /* Code signing encountered an incorrect path length constraint. */
135                 CodeSigningNoExtendedKeyUsage           = -67650,       /* Code signing found no extended key usage. */
136                 CodeSigningDevelopment                          = -67651,       /* Code signing indicated use of a development-only certificate. */
137                 ResourceSignBadCertChainLength          = -67652,       /* Resource signing has encountered an incorrect certificate chain length. */
138                 ResourceSignBadExtKeyUsage                      = -67653,       /* Resource signing has encountered an error in the extended key usage. */
139                 TrustSettingDeny                                        = -67654,       /* The trust setting for this policy was set to Deny. */
140                 InvalidSubjectName                                      = -67655,       /* An invalid certificate subject name was encountered. */
141                 UnknownQualifiedCertStatement           = -67656,       /* An unknown qualified certificate statement was encountered. */
142                 MobileMeRequestQueued                           = -67657,       /* The MobileMe request will be sent during the next connection. */
143                 MobileMeRequestRedirected                       = -67658,       /* The MobileMe request was redirected. */
144                 MobileMeServerError                                     = -67659,       /* A MobileMe server error occurred. */
145                 MobileMeServerNotAvailable                      = -67660,       /* The MobileMe server is not available. */
146                 MobileMeServerAlreadyExists                     = -67661,       /* The MobileMe server reported that the item already exists. */
147                 MobileMeServerServiceErr                        = -67662,       /* A MobileMe service error has occurred. */
148                 MobileMeRequestAlreadyPending           = -67663,       /* A MobileMe request is already pending. */
149                 MobileMeNoRequestPending                        = -67664,       /* MobileMe has no request pending. */
150                 MobileMeCSRVerifyFailure                        = -67665,       /* A MobileMe CSR verification failure has occurred. */
151                 MobileMeFailedConsistencyCheck          = -67666,       /* MobileMe has found a failed consistency check. */
152                 NotInitialized                                          = -67667,       /* A function was called without initializing CSSM. */
153                 InvalidHandleUsage                                      = -67668,       /* The CSSM handle does not match with the service type. */
154                 PVCReferentNotFound                                     = -67669,       /* A reference to the calling module was not found in the list of authorized callers. */
155                 FunctionIntegrityFail                           = -67670,       /* A function address was not within the verified module. */
156                 InternalError                                           = -67671,       /* An internal error has occurred. */
157                 MemoryError                                                     = -67672,       /* A memory error has occurred. */
158                 InvalidData                                                     = -67673,       /* Invalid data was encountered. */
159                 MDSError                                                        = -67674,       /* A Module Directory Service error has occurred. */
160                 InvalidPointer                                          = -67675,       /* An invalid pointer was encountered. */
161                 SelfCheckFailed                                         = -67676,       /* Self-check has failed. */
162                 FunctionFailed                                          = -67677,       /* A function has failed. */
163                 ModuleManifestVerifyFailed                      = -67678,       /* A module manifest verification failure has occurred. */
164                 InvalidGUID                                                     = -67679,       /* An invalid GUID was encountered. */
165                 InvalidHandle                                           = -67680,       /* An invalid handle was encountered. */
166                 InvalidDBList                                           = -67681,       /* An invalid DB list was encountered. */
167                 InvalidPassthroughID                            = -67682,       /* An invalid passthrough ID was encountered. */
168                 InvalidNetworkAddress                           = -67683,       /* An invalid network address was encountered. */
169                 CRLAlreadySigned                                        = -67684,       /* The certificate revocation list is already signed. */
170                 InvalidNumberOfFields                           = -67685,       /* An invalid number of fields were encountered. */
171                 VerificationFailure                                     = -67686,       /* A verification failure occurred. */
172                 UnknownTag                                                      = -67687,       /* An unknown tag was encountered. */
173                 InvalidSignature                                        = -67688,       /* An invalid signature was encountered. */
174                 InvalidName                                                     = -67689,       /* An invalid name was encountered. */
175                 InvalidCertificateRef                           = -67690,       /* An invalid certificate reference was encountered. */
176                 InvalidCertificateGroup                         = -67691,       /* An invalid certificate group was encountered. */
177                 TagNotFound                                                     = -67692,       /* The specified tag was not found. */
178                 InvalidQuery                                            = -67693,       /* The specified query was not valid. */
179                 InvalidValue                                            = -67694,       /* An invalid value was detected. */
180                 CallbackFailed                                          = -67695,       /* A callback has failed. */
181                 ACLDeleteFailed                                         = -67696,       /* An ACL delete operation has failed. */
182                 ACLReplaceFailed                                        = -67697,       /* An ACL replace operation has failed. */
183                 ACLAddFailed                                            = -67698,       /* An ACL add operation has failed. */
184                 ACLChangeFailed                                         = -67699,       /* An ACL change operation has failed. */
185                 InvalidAccessCredentials                        = -67700,       /* Invalid access credentials were encountered. */
186                 InvalidRecord                                           = -67701,       /* An invalid record was encountered. */
187                 InvalidACL                                                      = -67702,       /* An invalid ACL was encountered. */
188                 InvalidSampleValue                                      = -67703,       /* An invalid sample value was encountered. */
189                 IncompatibleVersion                                     = -67704,       /* An incompatible version was encountered. */
190                 PrivilegeNotGranted                                     = -67705,       /* The privilege was not granted. */
191                 InvalidScope                                            = -67706,       /* An invalid scope was encountered. */
192                 PVCAlreadyConfigured                            = -67707,       /* The PVC is already configured. */
193                 InvalidPVC                                                      = -67708,       /* An invalid PVC was encountered. */
194                 EMMLoadFailed                                           = -67709,       /* The EMM load has failed. */
195                 EMMUnloadFailed                                         = -67710,       /* The EMM unload has failed. */
196                 AddinLoadFailed                                         = -67711,       /* The add-in load operation has failed. */
197                 InvalidKeyRef                                           = -67712,       /* An invalid key was encountered. */
198                 InvalidKeyHierarchy                                     = -67713,       /* An invalid key hierarchy was encountered. */
199                 AddinUnloadFailed                                       = -67714,       /* The add-in unload operation has failed. */
200                 LibraryReferenceNotFound                        = -67715,       /* A library reference was not found. */
201                 InvalidAddinFunctionTable                       = -67716,       /* An invalid add-in function table was encountered. */
202                 InvalidServiceMask                                      = -67717,       /* An invalid service mask was encountered. */
203                 ModuleNotLoaded                                         = -67718,       /* A module was not loaded. */
204                 InvalidSubServiceID                                     = -67719,       /* An invalid subservice ID was encountered. */
205                 AttributeNotInContext                           = -67720,       /* An attribute was not in the context. */
206                 ModuleManagerInitializeFailed           = -67721,       /* A module failed to initialize. */
207                 ModuleManagerNotFound                           = -67722,       /* A module was not found. */
208                 EventNotificationCallbackNotFound       = -67723,       /* An event notification callback was not found. */
209                 InputLengthError                                        = -67724,       /* An input length error was encountered. */
210                 OutputLengthError                                       = -67725,       /* An output length error was encountered. */
211                 PrivilegeNotSupported                           = -67726,       /* The privilege is not supported. */
212                 DeviceError                                                     = -67727,       /* A device error was encountered. */
213                 AttachHandleBusy                                        = -67728,       /* The CSP handle was busy. */
214                 NotLoggedIn                                                     = -67729,       /* You are not logged in. */
215                 AlgorithmMismatch                                       = -67730,       /* An algorithm mismatch was encountered. */
216                 KeyUsageIncorrect                                       = -67731,       /* The key usage is incorrect. */
217                 KeyBlobTypeIncorrect                            = -67732,       /* The key blob type is incorrect. */
218                 KeyHeaderInconsistent                           = -67733,       /* The key header is inconsistent. */
219                 UnsupportedKeyFormat                            = -67734,       /* The key header format is not supported. */
220                 UnsupportedKeySize                                      = -67735,       /* The key size is not supported. */
221                 InvalidKeyUsageMask                                     = -67736,       /* The key usage mask is not valid. */
222                 UnsupportedKeyUsageMask                         = -67737,       /* The key usage mask is not supported. */
223                 InvalidKeyAttributeMask                         = -67738,       /* The key attribute mask is not valid. */
224                 UnsupportedKeyAttributeMask                     = -67739,       /* The key attribute mask is not supported. */
225                 InvalidKeyLabel                                         = -67740,       /* The key label is not valid. */
226                 UnsupportedKeyLabel                                     = -67741,       /* The key label is not supported. */
227                 InvalidKeyFormat                                        = -67742,       /* The key format is not valid. */
228                 UnsupportedVectorOfBuffers                      = -67743,       /* The vector of buffers is not supported. */
229                 InvalidInputVector                                      = -67744,       /* The input vector is not valid. */
230                 InvalidOutputVector                                     = -67745,       /* The output vector is not valid. */
231                 InvalidContext                                          = -67746,       /* An invalid context was encountered. */
232                 InvalidAlgorithm                                        = -67747,       /* An invalid algorithm was encountered. */
233                 InvalidAttributeKey                                     = -67748,       /* A key attribute was not valid. */
234                 MissingAttributeKey                                     = -67749,       /* A key attribute was missing. */
235                 InvalidAttributeInitVector                      = -67750,       /* An init vector attribute was not valid. */
236                 MissingAttributeInitVector                      = -67751,       /* An init vector attribute was missing. */
237                 InvalidAttributeSalt                            = -67752,       /* A salt attribute was not valid. */
238                 MissingAttributeSalt                            = -67753,       /* A salt attribute was missing. */
239                 InvalidAttributePadding                         = -67754,       /* A padding attribute was not valid. */
240                 MissingAttributePadding                         = -67755,       /* A padding attribute was missing. */
241                 InvalidAttributeRandom                          = -67756,       /* A random number attribute was not valid. */
242                 MissingAttributeRandom                          = -67757,       /* A random number attribute was missing. */
243                 InvalidAttributeSeed                            = -67758,       /* A seed attribute was not valid. */
244                 MissingAttributeSeed                            = -67759,       /* A seed attribute was missing. */
245                 InvalidAttributePassphrase                      = -67760,       /* A passphrase attribute was not valid. */
246                 MissingAttributePassphrase                      = -67761,       /* A passphrase attribute was missing. */
247                 InvalidAttributeKeyLength                       = -67762,       /* A key length attribute was not valid. */
248                 MissingAttributeKeyLength                       = -67763,       /* A key length attribute was missing. */
249                 InvalidAttributeBlockSize                       = -67764,       /* A block size attribute was not valid. */
250                 MissingAttributeBlockSize                       = -67765,       /* A block size attribute was missing. */
251                 InvalidAttributeOutputSize                      = -67766,       /* An output size attribute was not valid. */
252                 MissingAttributeOutputSize                      = -67767,       /* An output size attribute was missing. */
253                 InvalidAttributeRounds                          = -67768,       /* The number of rounds attribute was not valid. */
254                 MissingAttributeRounds                          = -67769,       /* The number of rounds attribute was missing. */
255                 InvalidAlgorithmParms                           = -67770,       /* An algorithm parameters attribute was not valid. */
256                 MissingAlgorithmParms                           = -67771,       /* An algorithm parameters attribute was missing. */
257                 InvalidAttributeLabel                           = -67772,       /* A label attribute was not valid. */
258                 MissingAttributeLabel                           = -67773,       /* A label attribute was missing. */
259                 InvalidAttributeKeyType                         = -67774,       /* A key type attribute was not valid. */
260                 MissingAttributeKeyType                         = -67775,       /* A key type attribute was missing. */
261                 InvalidAttributeMode                            = -67776,       /* A mode attribute was not valid. */
262                 MissingAttributeMode                            = -67777,       /* A mode attribute was missing. */
263                 InvalidAttributeEffectiveBits           = -67778,       /* An effective bits attribute was not valid. */
264                 MissingAttributeEffectiveBits           = -67779,       /* An effective bits attribute was missing. */
265                 InvalidAttributeStartDate                       = -67780,       /* A start date attribute was not valid. */
266                 MissingAttributeStartDate                       = -67781,       /* A start date attribute was missing. */
267                 InvalidAttributeEndDate                         = -67782,       /* An end date attribute was not valid. */
268                 MissingAttributeEndDate                         = -67783,       /* An end date attribute was missing. */
269                 InvalidAttributeVersion                         = -67784,       /* A version attribute was not valid. */
270                 MissingAttributeVersion                         = -67785,       /* A version attribute was missing. */
271                 InvalidAttributePrime                           = -67786,       /* A prime attribute was not valid. */
272                 MissingAttributePrime                           = -67787,       /* A prime attribute was missing. */
273                 InvalidAttributeBase                            = -67788,       /* A base attribute was not valid. */
274                 MissingAttributeBase                            = -67789,       /* A base attribute was missing. */
275                 InvalidAttributeSubprime                        = -67790,       /* A subprime attribute was not valid. */
276                 MissingAttributeSubprime                        = -67791,       /* A subprime attribute was missing. */
277                 InvalidAttributeIterationCount          = -67792,       /* An iteration count attribute was not valid. */
278                 MissingAttributeIterationCount          = -67793,       /* An iteration count attribute was missing. */
279                 InvalidAttributeDLDBHandle                      = -67794,       /* A database handle attribute was not valid. */
280                 MissingAttributeDLDBHandle                      = -67795,       /* A database handle attribute was missing. */
281                 InvalidAttributeAccessCredentials       = -67796,       /* An access credentials attribute was not valid. */
282                 MissingAttributeAccessCredentials       = -67797,       /* An access credentials attribute was missing. */
283                 InvalidAttributePublicKeyFormat         = -67798,       /* A public key format attribute was not valid. */
284                 MissingAttributePublicKeyFormat         = -67799,       /* A public key format attribute was missing. */
285                 InvalidAttributePrivateKeyFormat        = -67800,       /* A private key format attribute was not valid. */
286                 MissingAttributePrivateKeyFormat        = -67801,       /* A private key format attribute was missing. */
287                 InvalidAttributeSymmetricKeyFormat      = -67802,       /* A symmetric key format attribute was not valid. */
288                 MissingAttributeSymmetricKeyFormat      = -67803,       /* A symmetric key format attribute was missing. */
289                 InvalidAttributeWrappedKeyFormat        = -67804,       /* A wrapped key format attribute was not valid. */
290                 MissingAttributeWrappedKeyFormat        = -67805,       /* A wrapped key format attribute was missing. */
291                 StagedOperationInProgress                       = -67806,       /* A staged operation is in progress. */
292                 StagedOperationNotStarted                       = -67807,       /* A staged operation was not started. */
293                 VerifyFailed                                            = -67808,       /* A cryptographic verification failure has occurred. */
294                 QuerySizeUnknown                                        = -67809,       /* The query size is unknown. */
295                 BlockSizeMismatch                                       = -67810,       /* A block size mismatch occurred. */
296                 PublicKeyInconsistent                           = -67811,       /* The public key was inconsistent. */
297                 DeviceVerifyFailed                                      = -67812,       /* A device verification failure has occurred. */
298                 InvalidLoginName                                        = -67813,       /* An invalid login name was detected. */
299                 AlreadyLoggedIn                                         = -67814,       /* The user is already logged in. */
300                 InvalidDigestAlgorithm                          = -67815,       /* An invalid digest algorithm was detected. */
301                 InvalidCRLGroup                                         = -67816,       /* An invalid CRL group was detected. */
302                 CertificateCannotOperate                        = -67817,       /* The certificate cannot operate. */
303                 CertificateExpired                                      = -67818,       /* An expired certificate was detected. */
304                 CertificateNotValidYet                          = -67819,       /* The certificate is not yet valid. */
305                 CertificateRevoked                                      = -67820,       /* The certificate was revoked. */
306                 CertificateSuspended                            = -67821,       /* The certificate was suspended. */
307                 InsufficientCredentials                         = -67822,       /* Insufficient credentials were detected. */
308                 InvalidAction                                           = -67823,       /* The action was not valid. */
309                 InvalidAuthority                                        = -67824,       /* The authority was not valid. */
310                 VerifyActionFailed                                      = -67825,       /* A verify action has failed. */
311                 InvalidCertAuthority                            = -67826,       /* The certificate authority was not valid. */
312                 InvalidCRLAuthority                                     = -67827,       /* The CRL authority was not valid. */
313 #if MONOMAC
314                 [Obsolete ("Use InvalidCRLAuthority")]
315                 InvaldCRLAuthority                                      = InvalidCRLAuthority,
316 #endif
317                 InvalidCRLEncoding                                      = -67828,       /* The CRL encoding was not valid. */
318                 InvalidCRLType                                          = -67829,       /* The CRL type was not valid. */
319                 InvalidCRL                                                      = -67830,       /* The CRL was not valid. */
320                 InvalidFormType                                         = -67831,       /* The form type was not valid. */
321                 InvalidID                                                       = -67832,       /* The ID was not valid. */
322                 InvalidIdentifier                                       = -67833,       /* The identifier was not valid. */
323                 InvalidIndex                                            = -67834,       /* The index was not valid. */
324                 InvalidPolicyIdentifiers                        = -67835,       /* The policy identifiers are not valid. */
325                 InvalidTimeString                                       = -67836,       /* The time specified was not valid. */
326                 InvalidReason                                           = -67837,       /* The trust policy reason was not valid. */
327                 InvalidRequestInputs                            = -67838,       /* The request inputs are not valid. */
328                 InvalidResponseVector                           = -67839,       /* The response vector was not valid. */
329                 InvalidStopOnPolicy                                     = -67840,       /* The stop-on policy was not valid. */
330                 InvalidTuple                                            = -67841,       /* The tuple was not valid. */
331                 MultipleValuesUnsupported                       = -67842,       /* Multiple values are not supported. */
332                 NotTrusted                                                      = -67843,       /* The trust policy was not trusted. */
333                 NoDefaultAuthority                                      = -67844,       /* No default authority was detected. */
334                 RejectedForm                                            = -67845,       /* The trust policy had a rejected form. */
335                 RequestLost                                                     = -67846,       /* The request was lost. */
336                 RequestRejected                                         = -67847,       /* The request was rejected. */
337                 UnsupportedAddressType                          = -67848,       /* The address type is not supported. */
338                 UnsupportedService                                      = -67849,       /* The service is not supported. */
339                 InvalidTupleGroup                                       = -67850,       /* The tuple group was not valid. */
340                 InvalidBaseACLs                                         = -67851,       /* The base ACLs are not valid. */
341                 InvalidTupleCredentials                         = -67852,       /* The tuple credentials are not valid. */
342 #if MONOMAC
343                 [Obsolete ("Use InvalidTupleCredentials")]
344                 InvalidTupleCredendtials                        = InvalidTupleCredentials,
345 #endif
346                 InvalidEncoding                                         = -67853,       /* The encoding was not valid. */
347                 InvalidValidityPeriod                           = -67854,       /* The validity period was not valid. */
348                 InvalidRequestor                                        = -67855,       /* The requestor was not valid. */
349                 RequestDescriptor                                       = -67856,       /* The request descriptor was not valid. */
350                 InvalidBundleInfo                                       = -67857,       /* The bundle information was not valid. */
351                 InvalidCRLIndex                                         = -67858,       /* The CRL index was not valid. */
352                 NoFieldValues                                           = -67859,       /* No field values were detected. */
353                 UnsupportedFieldFormat                          = -67860,       /* The field format is not supported. */
354                 UnsupportedIndexInfo                            = -67861,       /* The index information is not supported. */
355                 UnsupportedLocality                                     = -67862,       /* The locality is not supported. */
356                 UnsupportedNumAttributes                        = -67863,       /* The number of attributes is not supported. */
357                 UnsupportedNumIndexes                           = -67864,       /* The number of indexes is not supported. */
358                 UnsupportedNumRecordTypes                       = -67865,       /* The number of record types is not supported. */
359                 FieldSpecifiedMultiple                          = -67866,       /* Too many fields were specified. */
360                 IncompatibleFieldFormat                         = -67867,       /* The field format was incompatible. */
361                 InvalidParsingModule                            = -67868,       /* The parsing module was not valid. */
362                 DatabaseLocked                                          = -67869,       /* The database is locked. */
363                 DatastoreIsOpen                                         = -67870,       /* The data store is open. */
364                 MissingValue                                            = -67871,       /* A missing value was detected. */
365                 UnsupportedQueryLimits                          = -67872,       /* The query limits are not supported. */
366                 UnsupportedNumSelectionPreds            = -67873,       /* The number of selection predicates is not supported. */
367                 UnsupportedOperator                                     = -67874,       /* The operator is not supported. */
368                 InvalidDBLocation                                       = -67875,       /* The database location is not valid. */
369                 InvalidAccessRequest                            = -67876,       /* The access request is not valid. */
370                 InvalidIndexInfo                                        = -67877,       /* The index information is not valid. */
371                 InvalidNewOwner                                         = -67878,       /* The new owner is not valid. */
372                 InvalidModifyMode                                       = -67879,       /* The modify mode is not valid. */
373                 MissingRequiredExtension                        = -67880,       /* A required certificate extension is missing. */
374                 ExtendedKeyUsageNotCritical                     = -67881,       /* The extended key usage extension was not marked critical. */
375                 TimestampMissing                                        = -67882,       /* A timestamp was expected but was not found. */
376                 TimestampInvalid                                        = -67883,       /* The timestamp was not valid. */
377                 TimestampNotTrusted                                     = -67884,       /* The timestamp was not trusted. */
378                 TimestampServiceNotAvailable            = -67885,       /* The timestamp service is not available. */
379                 TimestampBadAlg                                         = -67886,       /* An unrecognized or unsupported Algorithm Identifier in timestamp. */
380                 TimestampBadRequest                                     = -67887,       /* The timestamp transaction is not permitted or supported. */
381                 TimestampBadDataFormat                          = -67888,       /* The timestamp data submitted has the wrong format. */
382                 TimestampTimeNotAvailable                       = -67889,       /* The time source for the Timestamp Authority is not available. */
383                 TimestampUnacceptedPolicy                       = -67890,       /* The requested policy is not supported by the Timestamp Authority. */
384                 TimestampUnacceptedExtension            = -67891,       /* The requested extension is not supported by the Timestamp Authority. */
385                 TimestampAddInfoNotAvailable            = -67892,       /* The additional information requested is not available. */
386                 TimestampSystemFailure                          = -67893,       /* The timestamp request cannot be handled due to system failure. */
387                 SigningTimeMissing                                      = -67894,       /* A signing time was expected but was not found. */
388                 TimestampRejection                                      = -67895,       /* A timestamp transaction was rejected. */
389                 TimestampWaiting                    = -67896,   /* A timestamp transaction is waiting. */
390                 TimestampRevocationWarning          = -67897,   /* A timestamp authority revocation warning was issued. */
391                 TimestampRevocationNotification     = -67898,   /* A timestamp authority revocation notification was issued. */
392         }
393
394         // typedef uint32_t SecTrustResultType;
395         // values are defined in Security.framework/Headers/SecTrust.h 
396         enum SecTrustResult {
397                 Invalid,
398                 Proceed,
399
400                 Confirm,
401                 Deny,
402                 Unspecified,
403                 RecoverableTrustFailure,
404                 FatalTrustFailure,
405                 ResultOtherError,
406         }
407 }
408 #endif