Botan 3.14.1
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/x509_ca.h>
14 #include <botan/x509_crl.h>
15 #include <botan/x509cert.h>
16 #include <botan/x509path.h>
17#endif
18
19extern "C" {
20#if defined(BOTAN_HAS_X509_CERTIFICATES)
21
22BOTAN_FFI_DECLARE_UNIQUE_STRUCT(botan_x509_cert_struct, Botan::X509_Certificate, 0x8F628937);
23BOTAN_FFI_DECLARE_UNIQUE_STRUCT(botan_x509_crl_struct, Botan::X509_CRL, 0x2C628910);
24BOTAN_FFI_DECLARE_UNIQUE_STRUCT(botan_x509_crl_entry_struct, Botan::CRL_Entry, 0x4EAA5346);
25BOTAN_FFI_DECLARE_UNIQUE_STRUCT(botan_x509_general_name_struct, Botan::GeneralName, 0x563654FD);
26
27#endif
28}
29
30#endif
Definition x509_crl.h:32
X.509 GeneralName Type.
Definition pkix_types.h:541
#define BOTAN_FFI_DECLARE_UNIQUE_STRUCT(NAME, TYPE, MAGIC)
Definition ffi_util.h:164