libssl_compat.h (309007) | libssl_compat.h (316068) |
---|---|
1/* 2 * libssl_compat.h -- OpenSSL v1.1 compatibility shims 3 * 4 * --------------------------------------------------------------------- 5 * 6 * Written by Juergen Perlinger <perlinger@ntp.org> for the NTP project 7 * 8 * Based on an idea by Kurt Roeckx <kurt@roeckx.be> --- 10 unchanged lines hidden (view full) --- 19 20#ifndef NTP_LIBSSL_COMPAT_H 21#define NTP_LIBSSL_COMPAT_H 22 23#include "openssl/evp.h" 24#include "openssl/dsa.h" 25#include "openssl/rsa.h" 26 | 1/* 2 * libssl_compat.h -- OpenSSL v1.1 compatibility shims 3 * 4 * --------------------------------------------------------------------- 5 * 6 * Written by Juergen Perlinger <perlinger@ntp.org> for the NTP project 7 * 8 * Based on an idea by Kurt Roeckx <kurt@roeckx.be> --- 10 unchanged lines hidden (view full) --- 19 20#ifndef NTP_LIBSSL_COMPAT_H 21#define NTP_LIBSSL_COMPAT_H 22 23#include "openssl/evp.h" 24#include "openssl/dsa.h" 25#include "openssl/rsa.h" 26 |
27#ifndef OPENSSL_VERSION_NUMBER 28#define OPENSSL_VERSION_NUMBER SSLEAY_VERSION_NUMBER 29#endif 30 31#ifndef OPENSSL_VERSION_TEXT 32#define OPENSSL_VERSION_TEXT SSLEAY_VERSION_TEXT 33#endif 34 35#ifndef OPENSSL_VERSION 36#define OPENSSL_VERSION SSLEAY_VERSION 37#endif 38 |
|
27/* ----------------------------------------------------------------- */ 28#if OPENSSL_VERSION_NUMBER < 0x10100000L 29/* ----------------------------------------------------------------- */ 30 31# include <openssl/objects.h> 32# include <openssl/x509.h> 33 34/* shim the new-style API on an old-style OpenSSL */ --- 53 unchanged lines hidden (view full) --- 88#define DSA_SIG_set0 sslshim_DSA_SIG_set0 89#define DSA_get0_pqg sslshim_DSA_get0_pqg 90#define DSA_set0_pqg sslshim_DSA_set0_pqg 91#define DSA_get0_key sslshim_DSA_get0_key 92#define DSA_set0_key sslshim_DSA_set0_key 93 94#define X509_get_signature_nid sslshim_X509_get_signature_nid 95 | 39/* ----------------------------------------------------------------- */ 40#if OPENSSL_VERSION_NUMBER < 0x10100000L 41/* ----------------------------------------------------------------- */ 42 43# include <openssl/objects.h> 44# include <openssl/x509.h> 45 46/* shim the new-style API on an old-style OpenSSL */ --- 53 unchanged lines hidden (view full) --- 100#define DSA_SIG_set0 sslshim_DSA_SIG_set0 101#define DSA_get0_pqg sslshim_DSA_get0_pqg 102#define DSA_set0_pqg sslshim_DSA_set0_pqg 103#define DSA_get0_key sslshim_DSA_get0_key 104#define DSA_set0_key sslshim_DSA_set0_key 105 106#define X509_get_signature_nid sslshim_X509_get_signature_nid 107 |
108#define OpenSSL_version_num SSLeay 109#define OpenSSL_version SSLeay_version 110#define X509_get0_notBefore X509_get_notBefore 111#define X509_getm_notBefore X509_get_notBefore 112#define X509_get0_notAfter X509_get_notAfter 113#define X509_getm_notAfter X509_get_notAfter 114 |
|
96/* ----------------------------------------------------------------- */ 97#endif /* OPENSSL_VERSION_NUMBER < v1.1.0 */ 98/* ----------------------------------------------------------------- */ 99 100#endif /* NTP_LIBSSL_COMPAT_H */ | 115/* ----------------------------------------------------------------- */ 116#endif /* OPENSSL_VERSION_NUMBER < v1.1.0 */ 117/* ----------------------------------------------------------------- */ 118 119#endif /* NTP_LIBSSL_COMPAT_H */ |