From ee60c14360839ab9955ff968d082dfdc269c05bf Mon Sep 17 00:00:00 2001 From: Sebastien Buisson Date: Mon, 30 May 2022 16:11:50 +0200 Subject: [PATCH] LU-15896 gss: ignore OpenSSLv3 deprecated API Lustre GSS code makes use of some OpenSSL API that has been deprecated in v3, namely all the functions in the DH_* family. Those would need to be replaced with their EVP_PKEY_* counterparts but in the meantime we just use the OPENSSL_SUPPRESS_DEPRECATED define to continue using the deprecated API. Signed-off-by: Sebastien Buisson Change-Id: I413a2af1299123b29ed2043188da0348ce9d0a5e Reviewed-on: https://review.whamcloud.com/47485 Tested-by: jenkins Reviewed-by: Andreas Dilger Reviewed-by: Jian Yu Tested-by: Jian Yu Tested-by: Maloo Reviewed-by: James Simmons Reviewed-by: Oleg Drokin --- lustre/utils/gss/lgss_sk_utils.c | 2 ++ lustre/utils/gss/sk_utils.c | 2 ++ lustre/utils/gss/sk_utils.h | 2 ++ 3 files changed, 6 insertions(+) diff --git a/lustre/utils/gss/lgss_sk_utils.c b/lustre/utils/gss/lgss_sk_utils.c index bbef525..5974c33 100644 --- a/lustre/utils/gss/lgss_sk_utils.c +++ b/lustre/utils/gss/lgss_sk_utils.c @@ -27,6 +27,8 @@ #include #include +/* We need to use some deprecated APIs */ +#define OPENSSL_SUPPRESS_DEPRECATED #include #include #include diff --git a/lustre/utils/gss/sk_utils.c b/lustre/utils/gss/sk_utils.c index fb37758..3061b22 100755 --- a/lustre/utils/gss/sk_utils.c +++ b/lustre/utils/gss/sk_utils.c @@ -33,6 +33,8 @@ #include #include #include +/* We need to use some deprecated APIs */ +#define OPENSSL_SUPPRESS_DEPRECATED #include #include #include diff --git a/lustre/utils/gss/sk_utils.h b/lustre/utils/gss/sk_utils.h index 0f96176..e4832e4 100644 --- a/lustre/utils/gss/sk_utils.h +++ b/lustre/utils/gss/sk_utils.h @@ -33,6 +33,8 @@ #include #endif #include +/* We need to use some deprecated APIs */ +#define OPENSSL_SUPPRESS_DEPRECATED #include #include #include -- 1.8.3.1