• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
5from __future__ import absolute_import, division, print_function
6
7INCLUDES = """
8#include <openssl/err.h>
9"""
10
11TYPES = """
12static const int EVP_F_EVP_ENCRYPTFINAL_EX;
13static const int EVP_R_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH;
14static const int EVP_R_BAD_DECRYPT;
15static const int EVP_R_UNSUPPORTED_PRIVATE_KEY_ALGORITHM;
16static const int PKCS12_R_PKCS12_CIPHERFINAL_ERROR;
17static const int PEM_R_UNSUPPORTED_ENCRYPTION;
18static const int EVP_R_UNKNOWN_PBE_ALGORITHM;
19
20static const int ERR_LIB_EVP;
21static const int ERR_LIB_PEM;
22static const int ERR_LIB_ASN1;
23static const int ERR_LIB_PKCS12;
24
25static const int SSL_TLSEXT_ERR_OK;
26static const int SSL_TLSEXT_ERR_ALERT_FATAL;
27static const int SSL_TLSEXT_ERR_NOACK;
28
29static const int X509_R_CERT_ALREADY_IN_HASH_TABLE;
30"""
31
32FUNCTIONS = """
33void ERR_error_string_n(unsigned long, char *, size_t);
34const char *ERR_lib_error_string(unsigned long);
35const char *ERR_func_error_string(unsigned long);
36const char *ERR_reason_error_string(unsigned long);
37unsigned long ERR_get_error(void);
38unsigned long ERR_peek_error(void);
39void ERR_clear_error(void);
40void ERR_put_error(int, int, int, const char *, int);
41
42int ERR_GET_LIB(unsigned long);
43int ERR_GET_FUNC(unsigned long);
44int ERR_GET_REASON(unsigned long);
45
46"""
47
48CUSTOMIZATIONS = """
49"""
50