tserr.h 6.5 KB

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