|
OpenVPN
|
OpenSSL compatibility stub. More...
#include "buffer.h"#include <openssl/rsa.h>#include <openssl/ssl.h>#include <openssl/x509.h>#include <openssl/err.h>

Go to the source code of this file.
Macros | |
| #define | PRI_OPENSSL_STACK "d" |
| #define | EVP_MD_get0_name EVP_MD_name |
| #define | EVP_CIPHER_get0_name EVP_CIPHER_name |
| #define | EVP_CIPHER_CTX_get_mode EVP_CIPHER_CTX_mode |
| #define | SSL_CTX_new_ex(libctx, propq, method) |
| Reduce SSL_CTX_new_ex() to SSL_CTX_new() for OpenSSL < 3. | |
| #define | EVP_CIPH_FLAG_ENC_THEN_MAC 0x10000000 |
| #define | ASN1_STRING_get_length (size_t)ASN1_STRING_length |
Typedefs | |
| typedef unsigned long | openssl_err_t |
| typedef int | openssl_stack_size_t |
| typedef uint64_t | openssl_opt_t |
| typedef long | openssl_groups_len_t |
| typedef void | OSSL_LIB_CTX |
| typedef void | OSSL_PROVIDER |
Functions | |
| static int | EVP_PKEY_get_group_name (EVP_PKEY *pkey, char *gname, size_t gname_sz, size_t *gname_len) |
| static const EVP_CIPHER * | EVP_CIPHER_fetch (const void *ctx, const char *algorithm, const char *properties) |
| static const EVP_MD * | EVP_MD_fetch (const void *ctx, const char *algorithm, const char *properties) |
| static void | EVP_CIPHER_free (const EVP_CIPHER *cipher) |
| static void | EVP_MD_free (const EVP_MD *md) |
| static openssl_err_t | ERR_get_error_all (const char **file, int *line, const char **func, const char **data, int *flags) |
| static int | SSL_get0_peer_signature_name (SSL *ssl, const char **sigalg) |
OpenSSL compatibility stub.
This file provide compatibility stubs for the OpenSSL libraries prior to the current major version. Newer versions may introduce changes in the library interface, including replacing functions or enforcing various objects and structures as fully opaque.
Definition in file openssl_compat.h.
| #define ASN1_STRING_get_length (size_t)ASN1_STRING_length |
Definition at line 217 of file openssl_compat.h.
Referenced by extract_x509_extension().
| #define EVP_CIPH_FLAG_ENC_THEN_MAC 0x10000000 |
Definition at line 212 of file openssl_compat.h.
Referenced by cipher_kt_mode_cbc().
| #define EVP_CIPHER_CTX_get_mode EVP_CIPHER_CTX_mode |
Definition at line 126 of file openssl_compat.h.
Referenced by cipher_ctx_mode_ofb_cfb().
| #define EVP_CIPHER_get0_name EVP_CIPHER_name |
Definition at line 125 of file openssl_compat.h.
Referenced by cipher_name_cmp(), collect_ciphers(), and show_available_ciphers().
| #define EVP_MD_get0_name EVP_MD_name |
Definition at line 124 of file openssl_compat.h.
Referenced by md_kt_name(), and print_digest().
| #define PRI_OPENSSL_STACK "d" |
Definition at line 58 of file openssl_compat.h.
Referenced by tls_ctx_load_ca().
| #define SSL_CTX_new_ex | ( | libctx, | |
| propq, | |||
| method ) |
Reduce SSL_CTX_new_ex() to SSL_CTX_new() for OpenSSL < 3.
Definition at line 129 of file openssl_compat.h.
Referenced by test_tls_ctx_use_pkcs11(), and tls_ctx_new().
| typedef unsigned long openssl_err_t |
Definition at line 56 of file openssl_compat.h.
| typedef long openssl_groups_len_t |
Definition at line 69 of file openssl_compat.h.
| typedef uint64_t openssl_opt_t |
Definition at line 61 of file openssl_compat.h.
| typedef int openssl_stack_size_t |
Definition at line 57 of file openssl_compat.h.
| typedef void OSSL_LIB_CTX |
Definition at line 132 of file openssl_compat.h.
| typedef void OSSL_PROVIDER |
Definition at line 133 of file openssl_compat.h.
|
inlinestatic |
Definition at line 166 of file openssl_compat.h.
Referenced by crypto_print_openssl_errors().
|
inlinestatic |
Definition at line 138 of file openssl_compat.h.
References ASSERT.
Referenced by cipher_get(), and cipher_kt_block_size().
|
inlinestatic |
Definition at line 154 of file openssl_compat.h.
Referenced by cipher_ctx_init(), cipher_kt_block_size(), cipher_kt_insecure(), cipher_kt_iv_size(), cipher_kt_key_size(), cipher_kt_mode_aead(), cipher_kt_mode_cbc(), cipher_kt_mode_ofb_cfb(), cipher_kt_name(), and cipher_valid_reason().
|
inlinestatic |
Definition at line 146 of file openssl_compat.h.
References ASSERT.
Referenced by md_get(), and md_valid().
|
inlinestatic |
Definition at line 160 of file openssl_compat.h.
Referenced by md_ctx_init(), md_kt_name(), md_kt_size(), and md_valid().
|
inlinestatic |
Definition at line 95 of file openssl_compat.h.
References strlcpy().
Referenced by print_pkey_details().
|
inlinestatic |
Definition at line 179 of file openssl_compat.h.
Referenced by print_peer_signature().