10#ifndef LIBCRYPTO_COMPAT_H
11#define LIBCRYPTO_COMPAT_H
13#include <openssl/opensslv.h>
14#if OPENSSL_VERSION_NUMBER < 0x10100000L
16#include <openssl/rsa.h>
17#include <openssl/ecdsa.h>
18#include <openssl/x509.h>
21#define YH_INTERNAL __attribute__((visibility("hidden")))
39 X509_get0_extensions(
const X509 *x);
void YH_INTERNAL RSA_get0_factors(const RSA *r, const BIGNUM **p, const BIGNUM **q)
int YH_INTERNAL ECDSA_SIG_set0(ECDSA_SIG *sig, BIGNUM *r, BIGNUM *s)
void YH_INTERNAL ECDSA_SIG_get0(const ECDSA_SIG *sig, const BIGNUM **pr, const BIGNUM **ps)
ASN1_OCTET_STRING YH_INTERNAL * X509_EXTENSION_get_data(X509_EXTENSION *ex)
void YH_INTERNAL RSA_get0_key(const RSA *r, const BIGNUM **n, const BIGNUM **e, const BIGNUM **d)
const YH_INTERNAL STACK_OF(X509_EXTENSION) *X509_get0_extensions(const X509 *x)
ASN1_OBJECT YH_INTERNAL * X509_EXTENSION_get_object(X509_EXTENSION *ex)
void YH_INTERNAL RSA_get0_crt_params(const RSA *r, const BIGNUM **dmp1, const BIGNUM **dmq1, const BIGNUM **iqmp)
int YH_INTERNAL RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d)