| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
INCLUDES = """ |
| 7 |
#if CRYPTOGRAPHY_OPENSSL_300_OR_GREATER |
| 8 |
#include <openssl/provider.h> |
| 9 |
#include <openssl/proverr.h> |
| 10 |
#endif |
| 11 |
""" |
| 12 |
|
| 13 |
TYPES = """ |
| 14 |
static const long Cryptography_HAS_PROVIDERS; |
| 15 |
|
| 16 |
typedef ... OSSL_PROVIDER; |
| 17 |
typedef ... OSSL_LIB_CTX; |
| 18 |
|
| 19 |
static const long PROV_R_BAD_DECRYPT; |
| 20 |
static const long PROV_R_XTS_DUPLICATED_KEYS; |
| 21 |
static const long PROV_R_WRONG_FINAL_BLOCK_LENGTH; |
| 22 |
""" |
| 23 |
|
| 24 |
FUNCTIONS = """ |
| 25 |
""" |
| 26 |
|
| 27 |
CUSTOMIZATIONS = """ |
| 28 |
#if CRYPTOGRAPHY_OPENSSL_300_OR_GREATER |
| 29 |
static const long Cryptography_HAS_PROVIDERS = 1; |
| 30 |
#else |
| 31 |
static const long Cryptography_HAS_PROVIDERS = 0; |
| 32 |
typedef void OSSL_PROVIDER; |
| 33 |
typedef void OSSL_LIB_CTX; |
| 34 |
static const long PROV_R_BAD_DECRYPT = 0; |
| 35 |
static const long PROV_R_XTS_DUPLICATED_KEYS = 0; |
| 36 |
static const long PROV_R_WRONG_FINAL_BLOCK_LENGTH = 0; |
| 37 |
#endif |
| 38 |
""" |