1 | /*
|
---|
2 | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
|
---|
3 | *
|
---|
4 | * Licensed under the OpenSSL license (the "License"). You may not use
|
---|
5 | * this file except in compliance with the License. You can obtain a copy
|
---|
6 | * in the file LICENSE in the source distribution or at
|
---|
7 | * https://www.openssl.org/source/license.html
|
---|
8 | */
|
---|
9 |
|
---|
10 | /*
|
---|
11 | * NOTE: this file was auto generated by the mkerr.pl script: any changes
|
---|
12 | * made to it will be overwritten when the script next updates this file,
|
---|
13 | * only reason strings will be preserved.
|
---|
14 | */
|
---|
15 |
|
---|
16 | #ifndef HEADER_CAPI_ERR_H
|
---|
17 | # define HEADER_CAPI_ERR_H
|
---|
18 |
|
---|
19 | #ifdef __cplusplus
|
---|
20 | extern "C" {
|
---|
21 | #endif
|
---|
22 |
|
---|
23 | /* BEGIN ERROR CODES */
|
---|
24 | static void ERR_load_CAPI_strings(void);
|
---|
25 | static void ERR_unload_CAPI_strings(void);
|
---|
26 | static void ERR_CAPI_error(int function, int reason, char *file, int line);
|
---|
27 | # define CAPIerr(f,r) ERR_CAPI_error((f),(r),OPENSSL_FILE,OPENSSL_LINE)
|
---|
28 |
|
---|
29 | /* Error codes for the CAPI functions. */
|
---|
30 |
|
---|
31 | /* Function codes. */
|
---|
32 | # define CAPI_F_CAPI_CERT_GET_FNAME 99
|
---|
33 | # define CAPI_F_CAPI_CTRL 100
|
---|
34 | # define CAPI_F_CAPI_CTX_NEW 101
|
---|
35 | # define CAPI_F_CAPI_CTX_SET_PROVNAME 102
|
---|
36 | # define CAPI_F_CAPI_DSA_DO_SIGN 114
|
---|
37 | # define CAPI_F_CAPI_GET_KEY 103
|
---|
38 | # define CAPI_F_CAPI_GET_PKEY 115
|
---|
39 | # define CAPI_F_CAPI_GET_PROVNAME 104
|
---|
40 | # define CAPI_F_CAPI_GET_PROV_INFO 105
|
---|
41 | # define CAPI_F_CAPI_INIT 106
|
---|
42 | # define CAPI_F_CAPI_LIST_CONTAINERS 107
|
---|
43 | # define CAPI_F_CAPI_LOAD_PRIVKEY 108
|
---|
44 | # define CAPI_F_CAPI_OPEN_STORE 109
|
---|
45 | # define CAPI_F_CAPI_RSA_PRIV_DEC 110
|
---|
46 | # define CAPI_F_CAPI_RSA_PRIV_ENC 111
|
---|
47 | # define CAPI_F_CAPI_RSA_SIGN 112
|
---|
48 | # define CAPI_F_CAPI_VTRACE 118
|
---|
49 | # define CAPI_F_CERT_SELECT_DIALOG 117
|
---|
50 | # define CAPI_F_CLIENT_CERT_SELECT 116
|
---|
51 | # define CAPI_F_WIDE_TO_ASC 113
|
---|
52 |
|
---|
53 | /* Reason codes. */
|
---|
54 | # define CAPI_R_CANT_CREATE_HASH_OBJECT 99
|
---|
55 | # define CAPI_R_CANT_FIND_CAPI_CONTEXT 100
|
---|
56 | # define CAPI_R_CANT_GET_KEY 101
|
---|
57 | # define CAPI_R_CANT_SET_HASH_VALUE 102
|
---|
58 | # define CAPI_R_CRYPTACQUIRECONTEXT_ERROR 103
|
---|
59 | # define CAPI_R_CRYPTENUMPROVIDERS_ERROR 104
|
---|
60 | # define CAPI_R_DECRYPT_ERROR 105
|
---|
61 | # define CAPI_R_ENGINE_NOT_INITIALIZED 106
|
---|
62 | # define CAPI_R_ENUMCONTAINERS_ERROR 107
|
---|
63 | # define CAPI_R_ERROR_ADDING_CERT 125
|
---|
64 | # define CAPI_R_ERROR_CREATING_STORE 126
|
---|
65 | # define CAPI_R_ERROR_GETTING_FRIENDLY_NAME 108
|
---|
66 | # define CAPI_R_ERROR_GETTING_KEY_PROVIDER_INFO 109
|
---|
67 | # define CAPI_R_ERROR_OPENING_STORE 110
|
---|
68 | # define CAPI_R_ERROR_SIGNING_HASH 111
|
---|
69 | # define CAPI_R_FILE_OPEN_ERROR 128
|
---|
70 | # define CAPI_R_FUNCTION_NOT_SUPPORTED 112
|
---|
71 | # define CAPI_R_GETUSERKEY_ERROR 113
|
---|
72 | # define CAPI_R_INVALID_DIGEST_LENGTH 124
|
---|
73 | # define CAPI_R_INVALID_DSA_PUBLIC_KEY_BLOB_MAGIC_NUMBER 122
|
---|
74 | # define CAPI_R_INVALID_LOOKUP_METHOD 114
|
---|
75 | # define CAPI_R_INVALID_PUBLIC_KEY_BLOB 115
|
---|
76 | # define CAPI_R_INVALID_RSA_PUBLIC_KEY_BLOB_MAGIC_NUMBER 123
|
---|
77 | # define CAPI_R_PUBKEY_EXPORT_ERROR 116
|
---|
78 | # define CAPI_R_PUBKEY_EXPORT_LENGTH_ERROR 117
|
---|
79 | # define CAPI_R_UNKNOWN_COMMAND 118
|
---|
80 | # define CAPI_R_UNSUPPORTED_ALGORITHM_NID 119
|
---|
81 | # define CAPI_R_UNSUPPORTED_PADDING 120
|
---|
82 | # define CAPI_R_UNSUPPORTED_PUBLIC_KEY_ALGORITHM 121
|
---|
83 | # define CAPI_R_WIN32_ERROR 127
|
---|
84 |
|
---|
85 | #ifdef __cplusplus
|
---|
86 | }
|
---|
87 | #endif
|
---|
88 | #endif
|
---|