2
0

pkcs7err.h 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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_PKCS7ERR_H
  11. # define HEADER_PKCS7ERR_H
  12. # ifndef HEADER_SYMHACKS_H
  13. # include <openssl/symhacks.h>
  14. # endif
  15. # ifdef __cplusplus
  16. extern "C"
  17. # endif
  18. int ERR_load_PKCS7_strings(void);
  19. /*
  20. * PKCS7 function codes.
  21. */
  22. # define PKCS7_F_DO_PKCS7_SIGNED_ATTRIB 136
  23. # define PKCS7_F_PKCS7_ADD0_ATTRIB_SIGNING_TIME 135
  24. # define PKCS7_F_PKCS7_ADD_ATTRIB_SMIMECAP 118
  25. # define PKCS7_F_PKCS7_ADD_CERTIFICATE 100
  26. # define PKCS7_F_PKCS7_ADD_CRL 101
  27. # define PKCS7_F_PKCS7_ADD_RECIPIENT_INFO 102
  28. # define PKCS7_F_PKCS7_ADD_SIGNATURE 131
  29. # define PKCS7_F_PKCS7_ADD_SIGNER 103
  30. # define PKCS7_F_PKCS7_BIO_ADD_DIGEST 125
  31. # define PKCS7_F_PKCS7_COPY_EXISTING_DIGEST 138
  32. # define PKCS7_F_PKCS7_CTRL 104
  33. # define PKCS7_F_PKCS7_DATADECODE 112
  34. # define PKCS7_F_PKCS7_DATAFINAL 128
  35. # define PKCS7_F_PKCS7_DATAINIT 105
  36. # define PKCS7_F_PKCS7_DATAVERIFY 107
  37. # define PKCS7_F_PKCS7_DECRYPT 114
  38. # define PKCS7_F_PKCS7_DECRYPT_RINFO 133
  39. # define PKCS7_F_PKCS7_ENCODE_RINFO 132
  40. # define PKCS7_F_PKCS7_ENCRYPT 115
  41. # define PKCS7_F_PKCS7_FINAL 134
  42. # define PKCS7_F_PKCS7_FIND_DIGEST 127
  43. # define PKCS7_F_PKCS7_GET0_SIGNERS 124
  44. # define PKCS7_F_PKCS7_RECIP_INFO_SET 130
  45. # define PKCS7_F_PKCS7_SET_CIPHER 108
  46. # define PKCS7_F_PKCS7_SET_CONTENT 109
  47. # define PKCS7_F_PKCS7_SET_DIGEST 126
  48. # define PKCS7_F_PKCS7_SET_TYPE 110
  49. # define PKCS7_F_PKCS7_SIGN 116
  50. # define PKCS7_F_PKCS7_SIGNATUREVERIFY 113
  51. # define PKCS7_F_PKCS7_SIGNER_INFO_SET 129
  52. # define PKCS7_F_PKCS7_SIGNER_INFO_SIGN 139
  53. # define PKCS7_F_PKCS7_SIGN_ADD_SIGNER 137
  54. # define PKCS7_F_PKCS7_SIMPLE_SMIMECAP 119
  55. # define PKCS7_F_PKCS7_VERIFY 117
  56. /*
  57. * PKCS7 reason codes.
  58. */
  59. # define PKCS7_R_CERTIFICATE_VERIFY_ERROR 117
  60. # define PKCS7_R_CIPHER_HAS_NO_OBJECT_IDENTIFIER 144
  61. # define PKCS7_R_CIPHER_NOT_INITIALIZED 116
  62. # define PKCS7_R_CONTENT_AND_DATA_PRESENT 118
  63. # define PKCS7_R_CTRL_ERROR 152
  64. # define PKCS7_R_DECRYPT_ERROR 119
  65. # define PKCS7_R_DIGEST_FAILURE 101
  66. # define PKCS7_R_ENCRYPTION_CTRL_FAILURE 149
  67. # define PKCS7_R_ENCRYPTION_NOT_SUPPORTED_FOR_THIS_KEY_TYPE 150
  68. # define PKCS7_R_ERROR_ADDING_RECIPIENT 120
  69. # define PKCS7_R_ERROR_SETTING_CIPHER 121
  70. # define PKCS7_R_INVALID_NULL_POINTER 143
  71. # define PKCS7_R_INVALID_SIGNED_DATA_TYPE 155
  72. # define PKCS7_R_NO_CONTENT 122
  73. # define PKCS7_R_NO_DEFAULT_DIGEST 151
  74. # define PKCS7_R_NO_MATCHING_DIGEST_TYPE_FOUND 154
  75. # define PKCS7_R_NO_RECIPIENT_MATCHES_CERTIFICATE 115
  76. # define PKCS7_R_NO_SIGNATURES_ON_DATA 123
  77. # define PKCS7_R_NO_SIGNERS 142
  78. # define PKCS7_R_OPERATION_NOT_SUPPORTED_ON_THIS_TYPE 104
  79. # define PKCS7_R_PKCS7_ADD_SIGNATURE_ERROR 124
  80. # define PKCS7_R_PKCS7_ADD_SIGNER_ERROR 153
  81. # define PKCS7_R_PKCS7_DATASIGN 145
  82. # define PKCS7_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE 127
  83. # define PKCS7_R_SIGNATURE_FAILURE 105
  84. # define PKCS7_R_SIGNER_CERTIFICATE_NOT_FOUND 128
  85. # define PKCS7_R_SIGNING_CTRL_FAILURE 147
  86. # define PKCS7_R_SIGNING_NOT_SUPPORTED_FOR_THIS_KEY_TYPE 148
  87. # define PKCS7_R_SMIME_TEXT_ERROR 129
  88. # define PKCS7_R_UNABLE_TO_FIND_CERTIFICATE 106
  89. # define PKCS7_R_UNABLE_TO_FIND_MEM_BIO 107
  90. # define PKCS7_R_UNABLE_TO_FIND_MESSAGE_DIGEST 108
  91. # define PKCS7_R_UNKNOWN_DIGEST_TYPE 109
  92. # define PKCS7_R_UNKNOWN_OPERATION 110
  93. # define PKCS7_R_UNSUPPORTED_CIPHER_TYPE 111
  94. # define PKCS7_R_UNSUPPORTED_CONTENT_TYPE 112
  95. # define PKCS7_R_WRONG_CONTENT_TYPE 113
  96. # define PKCS7_R_WRONG_PKCS7_TYPE 114
  97. #endif