]> git.ipfire.org Git - thirdparty/pdns.git/blob - pdns/dnsdistdist/libssl.hh
dnsdist: Add regression tests for OCSP stapling over DoH and DoT
[thirdparty/pdns.git] / pdns / dnsdistdist / libssl.hh
1 #pragma once
2
3 #include <map>
4 #include <memory>
5 #include <string>
6 #include <vector>
7
8 #include "config.h"
9
10 #ifdef HAVE_LIBSSL
11 #include <openssl/ssl.h>
12
13 void registerOpenSSLUser();
14 void unregisterOpenSSLUser();
15
16 int libssl_ocsp_stapling_callback(SSL* ssl, const std::map<int, std::string>& ocspMap);
17
18 std::map<int, std::string> libssl_load_ocsp_responses(const std::vector<std::string>& ocspFiles, std::vector<int> keyTypes);
19 int libssl_get_last_key_type(std::unique_ptr<SSL_CTX, void(*)(SSL_CTX*)>& ctx);
20
21 #ifdef HAVE_OCSP_BASIC_SIGN
22 bool libssl_generate_ocsp_response(const std::string& certFile, const std::string& caCert, const std::string& caKey, const std::string& outFile, int ndays, int nmin);
23 #endif
24
25 #endif /* HAVE_LIBSSL */