[CDRIVER-1561] OpenSSL Compiler warning Created: 26/Sep/16  Updated: 27/Sep/16  Resolved: 27/Sep/16

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.5.0

Type: Bug Priority: Major - P3
Reporter: Jeroen Ooms [X] Assignee: Hannes Magnusson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

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)
 ^



 Comments   
Comment by Githook User [ 27/Sep/16 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: CDRIVER-1561 Fix compiler warning on mingw-w64
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/b2d6bbbb44c80dfb2caebce5dd38dbd50c0777b0

Comment by Hannes Magnusson [ 26/Sep/16 ]

Do you know what version of OpenSSL this is?

Update.
Sorry, read the path now

Generated at Wed Feb 07 21:12:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.