Whamcloud - gitweb
LU-15896 gss: ignore OpenSSLv3 deprecated API
authorSebastien Buisson <sbuisson@ddn.com>
Mon, 30 May 2022 14:11:50 +0000 (16:11 +0200)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 1 Jun 2022 16:35:35 +0000 (16:35 +0000)
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.

Lustre-change: https://review.whamcloud.com/47485
Lustre-commit: TBD (from 05d5b73ebb253c0e3ed5a7954b751ebbdb2d61bf)

Test-Parameters: trivial testlist=sanity-sec
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I413a2af1299123b29ed2043188da0348ce9d0a5e
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/47496
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/utils/gss/lgss_sk_utils.c
lustre/utils/gss/sk_utils.c
lustre/utils/gss/sk_utils.h

index bbef525..5974c33 100644 (file)
@@ -27,6 +27,8 @@
 
 #include <limits.h>
 #include <string.h>
+/* We need to use some deprecated APIs */
+#define OPENSSL_SUPPRESS_DEPRECATED
 #include <openssl/dh.h>
 #include <openssl/engine.h>
 #include <openssl/err.h>
index fb37758..3061b22 100755 (executable)
@@ -33,6 +33,8 @@
 #include <string.h>
 #include <stdbool.h>
 #include <unistd.h>
+/* We need to use some deprecated APIs */
+#define OPENSSL_SUPPRESS_DEPRECATED
 #include <openssl/dh.h>
 #include <openssl/engine.h>
 #include <openssl/err.h>
index 0f96176..e4832e4 100644 (file)
@@ -33,6 +33,8 @@
 #include <keyutils.h>
 #endif
 #include <linux/lustre/lustre_idl.h>
+/* We need to use some deprecated APIs */
+#define OPENSSL_SUPPRESS_DEPRECATED
 #include <openssl/dh.h>
 #include <openssl/evp.h>
 #include <openssl/hmac.h>