Skip to content

wolfssl: fix detection of AES-GCM feature - #1045

Closed
vszakats wants to merge 2 commits into
libssh2:masterfrom
vszakats:wolfssl-gcm
Closed

vszakats wants to merge 2 commits into
libssh2:masterfrom
vszakats:wolfssl-gcm

Conversation

@vszakats

@vszakats vszakats commented May 25, 2023 •

Copy link
Copy Markdown
Member

Follow-up to df513c0

Ref: #1020 (comment)

Closes #1045

Comment thread src/openssl.h Outdated

#if (OPENSSL_VERSION_NUMBER >= 0x01010100fL && !defined(OPENSSL_NO_AES)) || \
(defined(LIBSSH2_WOLFSSL) && defined(HAVE_AESGCM))
(defined(LIBSSH2_WOLFSSL) && defined(WOLFSSL_AESGCM_STREAM))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While our AES-GCM stream support should depend on having AES-GCM in general enabled, I'd recommend checking for both here to be safe, ie:
(defined(HAVE_AESGCM) && defined(WOLFSSL_AESGCM_STREAM))

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Restored the previous check and now checking for both.

@vszakats vszakats closed this in 4beb7a3 May 25, 2023
@vszakats
vszakats deleted the wolfssl-gcm branch May 25, 2023 22:31
lampmanyao pushed a commit to lampmanyao/libssh2 that referenced this pull request Jul 16, 2023
agreppin pushed a commit to agreppin/libssh2 that referenced this pull request Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants