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

cmake checks for ASN1_STRING_get0_data even when ENABLE_SSL is OFF

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.10.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      https://github.com/mongodb/mongo-c-driver/blob/8ff2b68b57bb57a8bc66a368c14c88d77356d8f3/CMakeLists.txt#L273

      include (CheckLibraryExists)
      CHECK_LIBRARY_EXISTS (ssl ASN1_STRING_get0_data "openssl/asn1.h" MONGOC_HAVE_ASN1_STRING_GET0_DATA)
      if (NOT MONGOC_HAVE_ASN1_STRING_GET0_DATA)
         set (MONGOC_HAVE_ASN1_STRING_GET0_DATA 0)
      endif ()
      

      We shouldn't look for ASN1_STRING_get0_data if ENABLE_SSL is OFF

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            gabriel.russell@mongodb.com Gabriel Russell (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: