-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
Compiler when compiling with OpenSSL on mingw-w64:
mongoc/mongoc-openssl.c: In function '_mongoc_openssl_import_cert_store': mongoc/mongoc-openssl.c:128:39: warning: passing argument 2 of 'd2i_X509' from incompatible pointer type X509* x509Obj = d2i_X509 (NULL, &cert->pbCertEncoded, cert->cbCertEncoded); ^ In file included from ../windows/openssl-1.0.2h/include/openssl/objects.h:965:0, from ../windows/openssl-1.0.2h/include/openssl/evp.h:94, from ../windows/openssl-1.0.2h/include/openssl/x509.h:73, from ../windows/openssl-1.0.2h/include/openssl/ssl.h:156, from mongoc/mongoc-openssl.c:24: ../windows/openssl-1.0.2h/include/openssl/asn1.h:317:15: note: expected 'const unsigned char **' but argument is of type 'BYTE * const*' type *d2i_##name(type **a, const unsigned char **in, long len); \ ^ ../windows/openssl-1.0.2h/include/openssl/asn1.h:310:9: note: in expansion of macro 'DECLARE_ASN1_ENCODE_FUNCTIONS' DECLARE_ASN1_ENCODE_FUNCTIONS(type, name, name) ^ ../windows/openssl-1.0.2h/include/openssl/asn1.h:303:39: note: in expansion of macro 'DECLARE_ASN1_FUNCTIONS_name' # define DECLARE_ASN1_FUNCTIONS(type) DECLARE_ASN1_FUNCTIONS_name(type, type) ^ ../windows/openssl-1.0.2h/include/openssl/x509.h:823:1: note: in expansion of macro 'DECLARE_ASN1_FUNCTIONS' DECLARE_ASN1_FUNCTIONS(X509) ^