15 #ifndef OPENSSLWRAPPER_H 16 #define OPENSSLWRAPPER_H 18 #include "pandabase.h" 27 #define OPENSSL_NO_KRB5 28 #include "openssl/ssl.h" 29 #include "openssl/rand.h" 30 #include "openssl/err.h" 31 #include "openssl/x509.h" 32 #include "openssl/x509v3.h" 46 class EXPCL_PANDAEXPRESS OpenSSLWrapper {
52 void clear_certificates();
53 int load_certificates(
const Filename &filename);
54 int load_certificates_from_pem_ram(
const char *data,
size_t data_size);
55 int load_certificates_from_der_ram(
const char *data,
size_t data_size);
57 INLINE
int load_certificates_from_pem_ram(
const string &data);
58 INLINE
int load_certificates_from_der_ram(
const string &data);
60 X509_STORE *get_x509_store();
62 void notify_ssl_errors();
63 void notify_debug_ssl_errors();
65 static OpenSSLWrapper *get_global_ptr();
68 X509_STORE *_x509_store;
70 static OpenSSLWrapper *_global_ptr;
73 #include "openSSLWrapper.I" 75 #endif // HAVE_OPENSSL The name of a file, such as a texture file or an Egg file.