tserr.h 6.6 KB

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