cmake checks for ASN1_STRING_get0_data even when ENABLE_SSL is OFF

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.10.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
            A. Jesse Jiryu Davis
            Reporter:
            Gabriel Russell (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: