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

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