Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed Aug 15, 2024
1 parent 1f26ec5 commit 73e94eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/unix/openssl_platform_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,10 @@ static enum aws_libcrypto_version s_resolve_libcrypto_symbols(enum aws_libcrypto

static enum aws_libcrypto_version s_resolve_libcrypto_compile_version(void) {
#ifdef OPENSSL_IS_OPENSSL
/*
* Currently, this only checks for 1.0.2 vs 1.1. As a future optimization, we can also add a branch for OpenSSL 3.0.
* OpenSSL 3.0 is compatible with OpenSSL 1.1, so it works currently.
*/
if (OPENSSL_VERSION_NUMBER < 0x10100000L) {
return AWS_LIBCRYPTO_1_0_2;
} else {
Expand Down

0 comments on commit 73e94eb

Please sign in to comment.