Whamcloud - gitweb
LU-15896 gss: ignore OpenSSLv3 deprecated API 85/47485/2
authorSebastien Buisson <sbuisson@ddn.com>
Mon, 30 May 2022 14:11:50 +0000 (16:11 +0200)
committerOleg Drokin <green@whamcloud.com>
Sat, 18 Jun 2022 15:33:39 +0000 (15:33 +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.

Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I413a2af1299123b29ed2043188da0348ce9d0a5e
Reviewed-on: https://review.whamcloud.com/47485
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Tested-by: Jian Yu <yujian@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@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>