aws-samples / aws-cloudhsm-pkcs11-examples

Sample applications demonstrating how to use the CloudHSM PKCS#11 library
Other
55 stars 39 forks source link

fixed CMake OpenSSL variables to properly identify ssl and crypto libs #40

Closed bnjsmt closed 4 years ago

bnjsmt commented 4 years ago

Issue #, if available: Applicable OPENSSL_ vars weren't being properly used after OpenSSL detection concluded. INCLUDES were referenced, LIBRARY(-IES) were not.

This was passable under normal circumstances in which only the system-provided OpenSSL was used during builds. However, non-standard OpenSSL (built and installed anywhere but to system) could be found via the CMake script, but incorrect libraries would be linked.

Description of changes: Substituted the hardcoded library names with OPENSSL__LIBRARY vars.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.