• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Generated by util/mkerr.pl DO NOT EDIT
3  * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
4  *
5  * Licensed under the OpenSSL license (the "License").  You may not use
6  * this file except in compliance with the License.  You can obtain a copy
7  * in the file LICENSE in the source distribution or at
8  * https://www.openssl.org/source/license.html
9  */
10 
11 #ifndef HEADER_TSERR_H
12 # define HEADER_TSERR_H
13 
14 # ifndef HEADER_SYMHACKS_H
15 #  include <openssl/symhacks.h>
16 # endif
17 
18 # include <openssl/opensslconf.h>
19 
20 # ifndef OPENSSL_NO_TS
21 
22 #  ifdef  __cplusplus
23 extern "C"
24 #  endif
25 int ERR_load_TS_strings(void);
26 
27 /*
28  * TS function codes.
29  */
30 #  define TS_F_DEF_SERIAL_CB                               110
31 #  define TS_F_DEF_TIME_CB                                 111
32 #  define TS_F_ESS_ADD_SIGNING_CERT                        112
33 #  define TS_F_ESS_ADD_SIGNING_CERT_V2                     147
34 #  define TS_F_ESS_CERT_ID_NEW_INIT                        113
35 #  define TS_F_ESS_CERT_ID_V2_NEW_INIT                     156
36 #  define TS_F_ESS_SIGNING_CERT_NEW_INIT                   114
37 #  define TS_F_ESS_SIGNING_CERT_V2_NEW_INIT                157
38 #  define TS_F_INT_TS_RESP_VERIFY_TOKEN                    149
39 #  define TS_F_PKCS7_TO_TS_TST_INFO                        148
40 #  define TS_F_TS_ACCURACY_SET_MICROS                      115
41 #  define TS_F_TS_ACCURACY_SET_MILLIS                      116
42 #  define TS_F_TS_ACCURACY_SET_SECONDS                     117
43 #  define TS_F_TS_CHECK_IMPRINTS                           100
44 #  define TS_F_TS_CHECK_NONCES                             101
45 #  define TS_F_TS_CHECK_POLICY                             102
46 #  define TS_F_TS_CHECK_SIGNING_CERTS                      103
47 #  define TS_F_TS_CHECK_STATUS_INFO                        104
48 #  define TS_F_TS_COMPUTE_IMPRINT                          145
49 #  define TS_F_TS_CONF_INVALID                             151
50 #  define TS_F_TS_CONF_LOAD_CERT                           153
51 #  define TS_F_TS_CONF_LOAD_CERTS                          154
52 #  define TS_F_TS_CONF_LOAD_KEY                            155
53 #  define TS_F_TS_CONF_LOOKUP_FAIL                         152
54 #  define TS_F_TS_CONF_SET_DEFAULT_ENGINE                  146
55 #  define TS_F_TS_GET_STATUS_TEXT                          105
56 #  define TS_F_TS_MSG_IMPRINT_SET_ALGO                     118
57 #  define TS_F_TS_REQ_SET_MSG_IMPRINT                      119
58 #  define TS_F_TS_REQ_SET_NONCE                            120
59 #  define TS_F_TS_REQ_SET_POLICY_ID                        121
60 #  define TS_F_TS_RESP_CREATE_RESPONSE                     122
61 #  define TS_F_TS_RESP_CREATE_TST_INFO                     123
62 #  define TS_F_TS_RESP_CTX_ADD_FAILURE_INFO                124
63 #  define TS_F_TS_RESP_CTX_ADD_MD                          125
64 #  define TS_F_TS_RESP_CTX_ADD_POLICY                      126
65 #  define TS_F_TS_RESP_CTX_NEW                             127
66 #  define TS_F_TS_RESP_CTX_SET_ACCURACY                    128
67 #  define TS_F_TS_RESP_CTX_SET_CERTS                       129
68 #  define TS_F_TS_RESP_CTX_SET_DEF_POLICY                  130
69 #  define TS_F_TS_RESP_CTX_SET_SIGNER_CERT                 131
70 #  define TS_F_TS_RESP_CTX_SET_STATUS_INFO                 132
71 #  define TS_F_TS_RESP_GET_POLICY                          133
72 #  define TS_F_TS_RESP_SET_GENTIME_WITH_PRECISION          134
73 #  define TS_F_TS_RESP_SET_STATUS_INFO                     135
74 #  define TS_F_TS_RESP_SET_TST_INFO                        150
75 #  define TS_F_TS_RESP_SIGN                                136
76 #  define TS_F_TS_RESP_VERIFY_SIGNATURE                    106
77 #  define TS_F_TS_TST_INFO_SET_ACCURACY                    137
78 #  define TS_F_TS_TST_INFO_SET_MSG_IMPRINT                 138
79 #  define TS_F_TS_TST_INFO_SET_NONCE                       139
80 #  define TS_F_TS_TST_INFO_SET_POLICY_ID                   140
81 #  define TS_F_TS_TST_INFO_SET_SERIAL                      141
82 #  define TS_F_TS_TST_INFO_SET_TIME                        142
83 #  define TS_F_TS_TST_INFO_SET_TSA                         143
84 #  define TS_F_TS_VERIFY                                   108
85 #  define TS_F_TS_VERIFY_CERT                              109
86 #  define TS_F_TS_VERIFY_CTX_NEW                           144
87 
88 /*
89  * TS reason codes.
90  */
91 #  define TS_R_BAD_PKCS7_TYPE                              132
92 #  define TS_R_BAD_TYPE                                    133
93 #  define TS_R_CANNOT_LOAD_CERT                            137
94 #  define TS_R_CANNOT_LOAD_KEY                             138
95 #  define TS_R_CERTIFICATE_VERIFY_ERROR                    100
96 #  define TS_R_COULD_NOT_SET_ENGINE                        127
97 #  define TS_R_COULD_NOT_SET_TIME                          115
98 #  define TS_R_DETACHED_CONTENT                            134
99 #  define TS_R_ESS_ADD_SIGNING_CERT_ERROR                  116
100 #  define TS_R_ESS_ADD_SIGNING_CERT_V2_ERROR               139
101 #  define TS_R_ESS_SIGNING_CERTIFICATE_ERROR               101
102 #  define TS_R_INVALID_NULL_POINTER                        102
103 #  define TS_R_INVALID_SIGNER_CERTIFICATE_PURPOSE          117
104 #  define TS_R_MESSAGE_IMPRINT_MISMATCH                    103
105 #  define TS_R_NONCE_MISMATCH                              104
106 #  define TS_R_NONCE_NOT_RETURNED                          105
107 #  define TS_R_NO_CONTENT                                  106
108 #  define TS_R_NO_TIME_STAMP_TOKEN                         107
109 #  define TS_R_PKCS7_ADD_SIGNATURE_ERROR                   118
110 #  define TS_R_PKCS7_ADD_SIGNED_ATTR_ERROR                 119
111 #  define TS_R_PKCS7_TO_TS_TST_INFO_FAILED                 129
112 #  define TS_R_POLICY_MISMATCH                             108
113 #  define TS_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE      120
114 #  define TS_R_RESPONSE_SETUP_ERROR                        121
115 #  define TS_R_SIGNATURE_FAILURE                           109
116 #  define TS_R_THERE_MUST_BE_ONE_SIGNER                    110
117 #  define TS_R_TIME_SYSCALL_ERROR                          122
118 #  define TS_R_TOKEN_NOT_PRESENT                           130
119 #  define TS_R_TOKEN_PRESENT                               131
120 #  define TS_R_TSA_NAME_MISMATCH                           111
121 #  define TS_R_TSA_UNTRUSTED                               112
122 #  define TS_R_TST_INFO_SETUP_ERROR                        123
123 #  define TS_R_TS_DATASIGN                                 124
124 #  define TS_R_UNACCEPTABLE_POLICY                         125
125 #  define TS_R_UNSUPPORTED_MD_ALGORITHM                    126
126 #  define TS_R_UNSUPPORTED_VERSION                         113
127 #  define TS_R_VAR_BAD_VALUE                               135
128 #  define TS_R_VAR_LOOKUP_FAILURE                          136
129 #  define TS_R_WRONG_CONTENT_TYPE                          114
130 
131 # endif
132 #endif
133