Botan 3.11.0
Crypto and TLS for C&
ffi_cert.h
Go to the documentation of this file.
1/*
2* (C) 2026 Jack Lloyd
3*
4* Botan is released under the Simplified BSD License (see license.txt)
5*/
6
7#ifndef BOTAN_FFI_CERT_H_
8#define BOTAN_FFI_CERT_H_
9
10#include <botan/internal/ffi_util.h>
11
12#if defined(BOTAN_HAS_X509_CERTIFICATES)
13 #include <botan/data_src.h>
14 #include <botan/x509_ca.h>
15 #include <botan/x509_crl.h>
16 #include <botan/x509cert.h>
17 #include <botan/x509path.h>
18#endif
19
20extern "C" {
21#if defined(BOTAN_HAS_X509_CERTIFICATES)
22
23BOTAN_FFI_DECLARE_STRUCT(botan_x509_cert_struct, Botan::X509_Certificate, 0x8F628937);
24BOTAN_FFI_DECLARE_STRUCT(botan_x509_crl_struct, Botan::X509_CRL, 0x2C628910);
25BOTAN_FFI_DECLARE_STRUCT(botan_x509_crl_entry_struct, Botan::CRL_Entry, 0x4EAA5346);
26BOTAN_FFI_DECLARE_STRUCT(botan_x509_general_name_struct, Botan::GeneralName, 0x563654FD);
27
28#endif
29}
30
31#endif
Definition x509_crl.h:29
X.509 GeneralName Type.
Definition pkix_types.h:274
#define BOTAN_FFI_DECLARE_STRUCT(NAME, TYPE, MAGIC)
Definition ffi_util.h:61