Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
openssl-compat.h
Go to the documentation of this file.
1/*
2 * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
3 *
4 * Licensed under the OpenSSL license (the "License"). You may not use
5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
7 * https://www.openssl.org/source/license.html
8 */
9
10#ifndef LIBCRYPTO_COMPAT_H
11#define LIBCRYPTO_COMPAT_H
12
13#include <openssl/opensslv.h>
14#if OPENSSL_VERSION_NUMBER < 0x10100000L
15
16#include <openssl/rsa.h>
17#include <openssl/ecdsa.h>
18#include <openssl/x509.h>
19
20#ifndef __WIN32
21#define YH_INTERNAL __attribute__((visibility("hidden")))
22#else
23#define YH_INTERNAL
24#endif
25
26int YH_INTERNAL RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d);
27void YH_INTERNAL RSA_get0_key(const RSA *r, const BIGNUM **n, const BIGNUM **e,
28 const BIGNUM **d);
29void YH_INTERNAL RSA_get0_factors(const RSA *r, const BIGNUM **p,
30 const BIGNUM **q);
31void YH_INTERNAL RSA_get0_crt_params(const RSA *r, const BIGNUM **dmp1,
32 const BIGNUM **dmq1, const BIGNUM **iqmp);
33
34void YH_INTERNAL ECDSA_SIG_get0(const ECDSA_SIG *sig, const BIGNUM **pr,
35 const BIGNUM **ps);
36int YH_INTERNAL ECDSA_SIG_set0(ECDSA_SIG *sig, BIGNUM *r, BIGNUM *s);
37
38const YH_INTERNAL STACK_OF(X509_EXTENSION) *
39 X509_get0_extensions(const X509 *x);
40
41ASN1_OBJECT YH_INTERNAL *X509_EXTENSION_get_object(X509_EXTENSION *ex);
42ASN1_OCTET_STRING YH_INTERNAL *X509_EXTENSION_get_data(X509_EXTENSION *ex);
43
44#endif /* OPENSSL_VERSION_NUMBER */
45#endif /* LIBCRYPTO_COMPAT_H */
const mie::Vuint & p
Definition bn.cpp:27
const mie::Vuint & r
Definition bn.cpp:28
bignum_st BIGNUM
Definition bigint.hpp:7
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)
#define YH_INTERNAL
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)
char * s