pemerr.h 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * Generated by util/mkerr.pl DO NOT EDIT
  3. * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
  4. *
  5. * Licensed under the Apache License 2.0 (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 OPENSSL_PEMERR_H
  11. # define OPENSSL_PEMERR_H
  12. # pragma once
  13. # include <openssl/opensslconf.h>
  14. # include <openssl/symhacks.h>
  15. # include <openssl/cryptoerr_legacy.h>
  16. /*
  17. * PEM reason codes.
  18. */
  19. # define PEM_R_BAD_BASE64_DECODE 100
  20. # define PEM_R_BAD_DECRYPT 101
  21. # define PEM_R_BAD_END_LINE 102
  22. # define PEM_R_BAD_IV_CHARS 103
  23. # define PEM_R_BAD_MAGIC_NUMBER 116
  24. # define PEM_R_BAD_PASSWORD_READ 104
  25. # define PEM_R_BAD_VERSION_NUMBER 117
  26. # define PEM_R_BIO_WRITE_FAILURE 118
  27. # define PEM_R_CIPHER_IS_NULL 127
  28. # define PEM_R_ERROR_CONVERTING_PRIVATE_KEY 115
  29. # define PEM_R_EXPECTING_DSS_KEY_BLOB 131
  30. # define PEM_R_EXPECTING_PRIVATE_KEY_BLOB 119
  31. # define PEM_R_EXPECTING_PUBLIC_KEY_BLOB 120
  32. # define PEM_R_EXPECTING_RSA_KEY_BLOB 132
  33. # define PEM_R_HEADER_TOO_LONG 128
  34. # define PEM_R_INCONSISTENT_HEADER 121
  35. # define PEM_R_KEYBLOB_HEADER_PARSE_ERROR 122
  36. # define PEM_R_KEYBLOB_TOO_SHORT 123
  37. # define PEM_R_MISSING_DEK_IV 129
  38. # define PEM_R_NOT_DEK_INFO 105
  39. # define PEM_R_NOT_ENCRYPTED 106
  40. # define PEM_R_NOT_PROC_TYPE 107
  41. # define PEM_R_NO_START_LINE 108
  42. # define PEM_R_PROBLEMS_GETTING_PASSWORD 109
  43. # define PEM_R_PVK_DATA_TOO_SHORT 124
  44. # define PEM_R_PVK_TOO_SHORT 125
  45. # define PEM_R_READ_KEY 111
  46. # define PEM_R_SHORT_HEADER 112
  47. # define PEM_R_UNEXPECTED_DEK_IV 130
  48. # define PEM_R_UNSUPPORTED_CIPHER 113
  49. # define PEM_R_UNSUPPORTED_ENCRYPTION 114
  50. # define PEM_R_UNSUPPORTED_KEY_COMPONENTS 126
  51. # define PEM_R_UNSUPPORTED_PUBLIC_KEY_TYPE 110
  52. #endif