Skip to content

Commit 3396212

Browse files
authored
Merge pull request #332 from jwendell/relax-openssl-check-134
Relax the OpenSSL runtime version check
2 parents f186af6 + c8bfe90 commit 3396212

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bssl-compat/prefixer/prefixer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,8 +520,8 @@ void MyFrontendAction::EndSourceFileAction() {
520520
<< " int minor = (version & 0x0FF00000) >> 20;" << std::endl
521521
<< " int patch = (version & 0x00000FF0) >> 4;" << std::endl
522522
<< std::endl
523-
<< " if ((major != ossl_OPENSSL_VERSION_MAJOR) || (minor != ossl_OPENSSL_VERSION_MINOR)) {" << std::endl
524-
<< " fprintf(stderr, \"Expecting to load OpenSSL version %d.%d.x but got %d.%d.%d\\n\"," << std::endl
523+
<< " if ((major != ossl_OPENSSL_VERSION_MAJOR) || (minor < ossl_OPENSSL_VERSION_MINOR)) {" << std::endl
524+
<< " fprintf(stderr, \"Expecting to load OpenSSL version at least %d.%d.x but got %d.%d.%d\\n\"," << std::endl
525525
<< " ossl_OPENSSL_VERSION_MAJOR," << std::endl
526526
<< " ossl_OPENSSL_VERSION_MINOR," << std::endl
527527
<< " major, minor, patch);" << std::endl

0 commit comments

Comments
 (0)