FreeRDP
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
cert_common.h
1
21#ifndef FREERDP_LIB_CORE_CERT_COMMON_H
22#define FREERDP_LIB_CORE_CERT_COMMON_H
23
24#include <freerdp/crypto/ber.h>
25#include <freerdp/crypto/crypto.h>
26
27#include <freerdp/settings.h>
28#include <freerdp/log.h>
29#include <freerdp/api.h>
30
31#ifdef __cplusplus
32extern "C"
33{
34#endif
35
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);
38
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);
42
43 FREERDP_LOCAL BOOL read_bignum(BYTE** dst, UINT32* length, const BIGNUM* num, BOOL alloc);
44
45#if !defined(OPENSSL_VERSION_MAJOR) || (OPENSSL_VERSION_MAJOR < 3)
46 FREERDP_LOCAL X509* x509_from_rsa(const RSA* rsa);
47#endif
48
49#ifdef __cplusplus
50}
51#endif
52
53#endif /* FREERDP_LIB_CORE_CERT_COMMON_H */