[CDRIVER-2630] cmake checks for ASN1_STRING_get0_data even when ENABLE_SSL is OFF Created: 27/Apr/18  Updated: 28/Oct/23  Resolved: 04/May/18

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

Type: Bug Priority: Major - P3
Reporter: Gabriel Russell (Inactive) Assignee: A. Jesse Jiryu Davis
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

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



 Comments   
Comment by Githook User [ 04/May/18 ]

Author:

{'email': 'jesse@mongodb.com', 'name': 'A. Jesse Jiryu Davis', 'username': 'ajdavis'}

Message: CDRIVER-2630 build fails on system w/o openssl

Only check for OpenSSL's ASN1_STRING_get0_data if we've already checked that
OpenSSL is available.
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/dbee33e9f57a1b4fb95ad359fe644c23b569aa50

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