Blame SOURCES/0026-Hardcode-gost-crypt-passsword-storage-scheme.patch

e4a41f
From 616dc9964a4675dea2ab2c2efb9bd31c3903e29d Mon Sep 17 00:00:00 2001
e4a41f
From: Mark Reynolds <mreynolds@redhat.com>
e4a41f
Date: Mon, 26 Jul 2021 15:22:08 -0400
e4a41f
Subject: [PATCH] Hardcode gost crypt passsword storage scheme
e4a41f
e4a41f
---
e4a41f
 .../plugins/pwdstorage/gost_yescrypt.c        | 22 -------------------
e4a41f
 1 file changed, 22 deletions(-)
e4a41f
e4a41f
diff --git a/ldap/servers/plugins/pwdstorage/gost_yescrypt.c b/ldap/servers/plugins/pwdstorage/gost_yescrypt.c
e4a41f
index 67b39395e..7b0d1653c 100644
e4a41f
--- a/ldap/servers/plugins/pwdstorage/gost_yescrypt.c
e4a41f
+++ b/ldap/servers/plugins/pwdstorage/gost_yescrypt.c
e4a41f
@@ -11,7 +11,6 @@
e4a41f
 
e4a41f
 #include <crypt.h>
e4a41f
 
e4a41f
-#ifdef XCRYPT_VERSION_STR
e4a41f
 #include <errno.h>
e4a41f
 int
e4a41f
 gost_yescrypt_pw_cmp(const char *userpwd, const char *dbpwd)
e4a41f
@@ -64,24 +63,3 @@ gost_yescrypt_pw_enc(const char *pwd)
e4a41f
     return enc;
e4a41f
 }
e4a41f
 
e4a41f
-#else
e4a41f
-
e4a41f
-/*
e4a41f
- * We do not have xcrypt, so always fail all checks.
e4a41f
- */
e4a41f
-int
e4a41f
-gost_yescrypt_pw_cmp(const char *userpwd __attribute__((unused)), const char *dbpwd __attribute__((unused)))
e4a41f
-{
e4a41f
-    slapi_log_err(SLAPI_LOG_ERR, GOST_YESCRYPT_SCHEME_NAME,
e4a41f
-                  "Unable to use gost_yescrypt_pw_cmp, xcrypt is not available.\n");
e4a41f
-    return 1;
e4a41f
-}
e4a41f
-
e4a41f
-char *
e4a41f
-gost_yescrypt_pw_enc(const char *pwd __attribute__((unused)))
e4a41f
-{
e4a41f
-    slapi_log_err(SLAPI_LOG_ERR, GOST_YESCRYPT_SCHEME_NAME,
e4a41f
-                  "Unable to use gost_yescrypt_pw_enc, xcrypt is not available.\n");
e4a41f
-    return NULL;
e4a41f
-}
e4a41f
-#endif
e4a41f
-- 
e4a41f
2.31.1
e4a41f