Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-1561

OpenSSL Compiler warning

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.5.0
    • None
    • None
    • None

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

      Attachments

        Activity

          People

            bjori Hannes Magnusson
            Jeroenooms Jeroen Ooms [X]
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: