7#ifndef BOTAN_FFI_TLS_IMPL_H_
8#define BOTAN_FFI_TLS_IMPL_H_
10#include <botan/ffi_tls.h>
12#include <botan/certstor.h>
13#include <botan/credentials_manager.h>
14#include <botan/pk_keys.h>
15#include <botan/tls_policy.h>
16#include <botan/tls_session_manager.h>
17#include <botan/x509cert.h>
18#include <botan/internal/ffi_util.h>
41 void add_store(std::shared_ptr<Botan::Certificate_Store> store);
44 void add_cert_chain(std::vector<Botan::X509_Certificate> chain, std::shared_ptr<Botan::Private_Key> key);
47 const std::string& context)
override;
50 const std::vector<std::string>& cert_key_types,
51 const std::vector<Botan::AlgorithmIdentifier>& cert_signature_schemes,
52 const std::vector<Botan::X509_DN>& acceptable_CAs,
53 const std::string& type,
54 const std::string& context)
override;
59 const std::string& type,
60 const std::string& context)
override;
64 std::vector<Botan::X509_Certificate> certs;
65 std::shared_ptr<Botan::Private_Key> key;
69 std::vector<std::shared_ptr<Botan::Certificate_Store>> m_extra_stores;
70 std::vector<Chain> m_chains;
virtual std::shared_ptr< Private_Key > private_key_for(const X509_Certificate &cert, const std::string &type, const std::string &context)
std::shared_ptr< Botan::Private_Key > private_key_for(const Botan::X509_Certificate &cert, const std::string &type, const std::string &context) override
std::vector< Botan::Certificate_Store * > trusted_certificate_authorities(const std::string &type, const std::string &context) override
void add_crl(const Botan::X509_CRL &crl)
std::vector< Botan::X509_Certificate > find_cert_chain(const std::vector< std::string > &cert_key_types, const std::vector< Botan::AlgorithmIdentifier > &cert_signature_schemes, const std::vector< Botan::X509_DN > &acceptable_CAs, const std::string &type, const std::string &context) override
void add_store(std::shared_ptr< Botan::Certificate_Store > store)
void add_cert_chain(std::vector< Botan::X509_Certificate > chain, std::shared_ptr< Botan::Private_Key > key)
chain is leaf first and not empty; key belongs to the leaf
void add_trusted_cert(const Botan::X509_Certificate &cert)
#define BOTAN_FFI_DECLARE_SHARED_STRUCT(NAME, TYPE, MAGIC)