err.py 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # This file is dual licensed under the terms of the Apache License, Version
  2. # 2.0, and the BSD License. See the LICENSE file in the root of this repository
  3. # for complete details.
  4. from __future__ import absolute_import, division, print_function
  5. INCLUDES = """
  6. #include <openssl/err.h>
  7. """
  8. TYPES = """
  9. static const int EVP_F_EVP_ENCRYPTFINAL_EX;
  10. static const int EVP_R_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH;
  11. static const int EVP_R_BAD_DECRYPT;
  12. static const int EVP_R_UNSUPPORTED_PRIVATE_KEY_ALGORITHM;
  13. static const int PKCS12_R_PKCS12_CIPHERFINAL_ERROR;
  14. static const int PEM_R_UNSUPPORTED_ENCRYPTION;
  15. static const int EVP_R_UNKNOWN_PBE_ALGORITHM;
  16. static const int ERR_LIB_EVP;
  17. static const int ERR_LIB_PEM;
  18. static const int ERR_LIB_ASN1;
  19. static const int ERR_LIB_PKCS12;
  20. static const int SSL_TLSEXT_ERR_OK;
  21. static const int SSL_TLSEXT_ERR_ALERT_FATAL;
  22. static const int SSL_TLSEXT_ERR_NOACK;
  23. static const int X509_R_CERT_ALREADY_IN_HASH_TABLE;
  24. """
  25. FUNCTIONS = """
  26. void ERR_error_string_n(unsigned long, char *, size_t);
  27. const char *ERR_lib_error_string(unsigned long);
  28. const char *ERR_func_error_string(unsigned long);
  29. const char *ERR_reason_error_string(unsigned long);
  30. unsigned long ERR_get_error(void);
  31. unsigned long ERR_peek_error(void);
  32. void ERR_clear_error(void);
  33. void ERR_put_error(int, int, int, const char *, int);
  34. int ERR_GET_LIB(unsigned long);
  35. int ERR_GET_FUNC(unsigned long);
  36. int ERR_GET_REASON(unsigned long);
  37. """
  38. CUSTOMIZATIONS = """
  39. """