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

OpenSSL Compiler warning

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5.0
    • Component/s: None
    • Labels:
      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

            Assignee:
            bjori Hannes Magnusson
            Reporter:
            Jeroenooms Jeroen Ooms [X] (Inactive)
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: