14 #ifndef OPENSSLWRAPPER_H 15 #define OPENSSLWRAPPER_H 26 #ifndef OPENSSL_NO_KRB5 27 #define OPENSSL_NO_KRB5 30 #include <openssl/ssl.h> 31 #include <openssl/rand.h> 32 #include <openssl/err.h> 33 #include <openssl/x509.h> 34 #include <openssl/x509v3.h> 46 class EXPCL_PANDA_EXPRESS 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 std::string &data);
58 INLINE
int load_certificates_from_der_ram(
const std::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;
75 #endif // HAVE_OPENSSL PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
The name of a file, such as a texture file or an Egg file.