pemerr.h 4.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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_PEMERR_H
  11. # define HEADER_PEMERR_H
  12. # ifdef __cplusplus
  13. extern "C"
  14. # endif
  15. int ERR_load_PEM_strings(void);
  16. /*
  17. * PEM function codes.
  18. */
  19. # define PEM_F_B2I_DSS 127
  20. # define PEM_F_B2I_PVK_BIO 128
  21. # define PEM_F_B2I_RSA 129
  22. # define PEM_F_CHECK_BITLEN_DSA 130
  23. # define PEM_F_CHECK_BITLEN_RSA 131
  24. # define PEM_F_D2I_PKCS8PRIVATEKEY_BIO 120
  25. # define PEM_F_D2I_PKCS8PRIVATEKEY_FP 121
  26. # define PEM_F_DO_B2I 132
  27. # define PEM_F_DO_B2I_BIO 133
  28. # define PEM_F_DO_BLOB_HEADER 134
  29. # define PEM_F_DO_PK8PKEY 126
  30. # define PEM_F_DO_PK8PKEY_FP 125
  31. # define PEM_F_DO_PVK_BODY 135
  32. # define PEM_F_DO_PVK_HEADER 136
  33. # define PEM_F_GET_HEADER_AND_DATA 143
  34. # define PEM_F_GET_NAME 144
  35. # define PEM_F_I2B_PVK 137
  36. # define PEM_F_I2B_PVK_BIO 138
  37. # define PEM_F_LOAD_IV 101
  38. # define PEM_F_PEM_ASN1_READ 102
  39. # define PEM_F_PEM_ASN1_READ_BIO 103
  40. # define PEM_F_PEM_ASN1_WRITE 104
  41. # define PEM_F_PEM_ASN1_WRITE_BIO 105
  42. # define PEM_F_PEM_DEF_CALLBACK 100
  43. # define PEM_F_PEM_DO_HEADER 106
  44. # define PEM_F_PEM_GET_EVP_CIPHER_INFO 107
  45. # define PEM_F_PEM_READ 108
  46. # define PEM_F_PEM_READ_BIO 109
  47. # define PEM_F_PEM_READ_BIO_DHPARAMS 141
  48. # define PEM_F_PEM_READ_BIO_EX 145
  49. # define PEM_F_PEM_READ_BIO_PARAMETERS 140
  50. # define PEM_F_PEM_READ_BIO_PRIVATEKEY 123
  51. # define PEM_F_PEM_READ_DHPARAMS 142
  52. # define PEM_F_PEM_READ_PRIVATEKEY 124
  53. # define PEM_F_PEM_SIGNFINAL 112
  54. # define PEM_F_PEM_WRITE 113
  55. # define PEM_F_PEM_WRITE_BIO 114
  56. # define PEM_F_PEM_WRITE_PRIVATEKEY 139
  57. # define PEM_F_PEM_X509_INFO_READ 115
  58. # define PEM_F_PEM_X509_INFO_READ_BIO 116
  59. # define PEM_F_PEM_X509_INFO_WRITE_BIO 117
  60. /*
  61. * PEM reason codes.
  62. */
  63. # define PEM_R_BAD_BASE64_DECODE 100
  64. # define PEM_R_BAD_DECRYPT 101
  65. # define PEM_R_BAD_END_LINE 102
  66. # define PEM_R_BAD_IV_CHARS 103
  67. # define PEM_R_BAD_MAGIC_NUMBER 116
  68. # define PEM_R_BAD_PASSWORD_READ 104
  69. # define PEM_R_BAD_VERSION_NUMBER 117
  70. # define PEM_R_BIO_WRITE_FAILURE 118
  71. # define PEM_R_CIPHER_IS_NULL 127
  72. # define PEM_R_ERROR_CONVERTING_PRIVATE_KEY 115
  73. # define PEM_R_EXPECTING_PRIVATE_KEY_BLOB 119
  74. # define PEM_R_EXPECTING_PUBLIC_KEY_BLOB 120
  75. # define PEM_R_HEADER_TOO_LONG 128
  76. # define PEM_R_INCONSISTENT_HEADER 121
  77. # define PEM_R_KEYBLOB_HEADER_PARSE_ERROR 122
  78. # define PEM_R_KEYBLOB_TOO_SHORT 123
  79. # define PEM_R_MISSING_DEK_IV 129
  80. # define PEM_R_NOT_DEK_INFO 105
  81. # define PEM_R_NOT_ENCRYPTED 106
  82. # define PEM_R_NOT_PROC_TYPE 107
  83. # define PEM_R_NO_START_LINE 108
  84. # define PEM_R_PROBLEMS_GETTING_PASSWORD 109
  85. # define PEM_R_PVK_DATA_TOO_SHORT 124
  86. # define PEM_R_PVK_TOO_SHORT 125
  87. # define PEM_R_READ_KEY 111
  88. # define PEM_R_SHORT_HEADER 112
  89. # define PEM_R_UNEXPECTED_DEK_IV 130
  90. # define PEM_R_UNSUPPORTED_CIPHER 113
  91. # define PEM_R_UNSUPPORTED_ENCRYPTION 114
  92. # define PEM_R_UNSUPPORTED_KEY_COMPONENTS 126
  93. #endif