mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 19:08:55 -04:00
clear errors in all cases before reading certificates
This commit is contained in:
parent
6ba9a55b39
commit
18ca5f23f7
@ -30,9 +30,7 @@
|
|||||||
#ifdef HAVE_SSL
|
#ifdef HAVE_SSL
|
||||||
|
|
||||||
#include <openssl/rand.h>
|
#include <openssl/rand.h>
|
||||||
#ifdef REPORT_OPENSSL_ERRORS
|
|
||||||
#include <openssl/err.h>
|
#include <openssl/err.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
// Windows may define this macro inappropriately.
|
// Windows may define this macro inappropriately.
|
||||||
#ifdef X509_NAME
|
#ifdef X509_NAME
|
||||||
@ -1190,9 +1188,7 @@ load_verify_locations(SSL_CTX *ctx, const Filename &ca_file) {
|
|||||||
|
|
||||||
// We have to be sure and clear the OpenSSL error state before we
|
// We have to be sure and clear the OpenSSL error state before we
|
||||||
// call this function, or it will get confused.
|
// call this function, or it will get confused.
|
||||||
#ifdef REPORT_OPENSSL_ERRORS
|
|
||||||
ERR_clear_error();
|
ERR_clear_error();
|
||||||
#endif
|
|
||||||
inf = PEM_X509_INFO_read_bio(mbio, NULL, NULL, NULL);
|
inf = PEM_X509_INFO_read_bio(mbio, NULL, NULL, NULL);
|
||||||
BIO_free(mbio);
|
BIO_free(mbio);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user