Stop complaining about deprecated OpenSSL functions#322
Closed
Rtoax wants to merge 1 commit intoopenssh:masterfrom
Closed
Stop complaining about deprecated OpenSSL functions#322Rtoax wants to merge 1 commit intoopenssh:masterfrom
Rtoax wants to merge 1 commit intoopenssh:masterfrom
Conversation
sshbuf-getput-crypto.c: In function ‘sshbuf_get_eckey’:
sshbuf-getput-crypto.c:97:9: warning: ‘EC_KEY_get0_group’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
97 | EC_POINT *pt = EC_POINT_new(EC_KEY_get0_group(v));
| ^~~~~~~~
In file included from sshbuf-getput-crypto.c:29:
/usr/include/openssl/ec.h:1032:39: note: declared here
1032 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key);
| ^~~~~~~~~~~~~~~~~
Ref: torvalds/linux@6bfb56e
Contributor
|
Instead of a pragma that suppresses the warning, would it make sense to go with something along the lines of: diff --git a/configure.ac b/configure.ac
index e7459ee1a..dcf108fa9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2801,7 +2801,9 @@ if test "x$openssl" = "xyes" ; then
;;
101*) ;; # 1.1.x
200*) ;; # LibreSSL
- 300*) ;; # OpenSSL 3
+ 300*)
+ CPPFLAGS="$CPPFLAGS -DOPENSSL_API_COMPAT=0x10100000L"
+ ;;
301*) ;; # OpenSSL development branch.
*)
AC_MSG_ERROR([Unknown/unsupported OpenSSL version ("$ssl_library_ver")])
|
Contributor
|
Thanks @martelletto - similar patch applied in f51423b |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ref: torvalds/linux@6bfb56e