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