21 #ifndef FREERDP_LIB_CORE_CERT_COMMON_H
22 #define FREERDP_LIB_CORE_CERT_COMMON_H
24 #include <freerdp/crypto/ber.h>
25 #include <freerdp/crypto/crypto.h>
27 #include <freerdp/settings.h>
28 #include <freerdp/log.h>
29 #include <freerdp/api.h>
36 FREERDP_LOCAL BOOL cert_info_create(rdpCertInfo* dst,
const BIGNUM* rsa,
const BIGNUM* rsa_e);
37 FREERDP_LOCAL
void cert_info_free(rdpCertInfo* info);
39 FREERDP_LOCAL BOOL cert_info_clone(rdpCertInfo* dst,
const rdpCertInfo* src);
40 FREERDP_LOCAL BOOL cert_info_read_modulus(rdpCertInfo* info,
size_t size,
wStream* s);
41 FREERDP_LOCAL BOOL cert_info_read_exponent(rdpCertInfo* info,
size_t size,
wStream* s);
43 FREERDP_LOCAL BOOL read_bignum(BYTE** dst, UINT32* length,
const BIGNUM* num, BOOL alloc);
45 #if !defined(OPENSSL_VERSION_MAJOR) || (OPENSSL_VERSION_MAJOR < 3)
46 FREERDP_LOCAL X509* x509_from_rsa(
const RSA* rsa);