SecBase.odin 27 KB

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