Blame SOURCES/0029-Remove-GOST-YESCRYPT-password-sotrage-scheme.patch

038107
From 120511d35095a48d60abbb7cb2367d0c30fbc757 Mon Sep 17 00:00:00 2001
038107
From: Mark Reynolds <mreynolds@redhat.com>
038107
Date: Wed, 25 Aug 2021 13:20:56 -0400
038107
Subject: [PATCH] Remove GOST-YESCRYPT password sotrage scheme
038107
038107
---
038107
 .../tests/suites/password/pwd_algo_test.py     |  1 -
038107
 ldap/ldif/template-dse-minimal.ldif.in         |  9 ---------
038107
 ldap/ldif/template-dse.ldif.in                 |  9 ---------
038107
 ldap/servers/plugins/pwdstorage/pwd_init.c     | 18 ------------------
038107
 ldap/servers/slapd/fedse.c                     | 13 -------------
038107
 5 files changed, 50 deletions(-)
038107
038107
diff --git a/dirsrvtests/tests/suites/password/pwd_algo_test.py b/dirsrvtests/tests/suites/password/pwd_algo_test.py
038107
index 66bda420e..88f8e40b7 100644
038107
--- a/dirsrvtests/tests/suites/password/pwd_algo_test.py
038107
+++ b/dirsrvtests/tests/suites/password/pwd_algo_test.py
038107
@@ -124,7 +124,6 @@ def _test_algo_for_pbkdf2(inst, algo_name):
038107
     ('CLEAR', 'CRYPT', 'CRYPT-MD5', 'CRYPT-SHA256', 'CRYPT-SHA512',
038107
      'MD5', 'SHA', 'SHA256', 'SHA384', 'SHA512', 'SMD5', 'SSHA',
038107
      'SSHA256', 'SSHA384', 'SSHA512', 'PBKDF2_SHA256', 'DEFAULT',
038107
-     'GOST_YESCRYPT',
038107
      ))
038107
 def test_pwd_algo_test(topology_st, algo):
038107
     """Assert that all of our password algorithms correctly PASS and FAIL varying
038107
diff --git a/ldap/ldif/template-dse-minimal.ldif.in b/ldap/ldif/template-dse-minimal.ldif.in
038107
index 2eccae9b2..1a05f4a67 100644
038107
--- a/ldap/ldif/template-dse-minimal.ldif.in
038107
+++ b/ldap/ldif/template-dse-minimal.ldif.in
038107
@@ -194,15 +194,6 @@ nsslapd-pluginarg1: nsds5ReplicaCredentials
038107
 nsslapd-pluginid: aes-storage-scheme
038107
 nsslapd-pluginprecedence: 1
038107
 
038107
-dn: cn=GOST_YESCRYPT,cn=Password Storage Schemes,cn=plugins,cn=config
038107
-objectclass: top
038107
-objectclass: nsSlapdPlugin
038107
-cn: GOST_YESCRYPT
038107
-nsslapd-pluginpath: libpwdstorage-plugin
038107
-nsslapd-plugininitfunc: gost_yescrypt_pwd_storage_scheme_init
038107
-nsslapd-plugintype: pwdstoragescheme
038107
-nsslapd-pluginenabled: on
038107
-
038107
 dn: cn=Syntax Validation Task,cn=plugins,cn=config
038107
 objectclass: top
038107
 objectclass: nsSlapdPlugin
038107
diff --git a/ldap/ldif/template-dse.ldif.in b/ldap/ldif/template-dse.ldif.in
038107
index 7e7480cba..f30531bec 100644
038107
--- a/ldap/ldif/template-dse.ldif.in
038107
+++ b/ldap/ldif/template-dse.ldif.in
038107
@@ -242,15 +242,6 @@ nsslapd-pluginarg2: nsds5ReplicaBootstrapCredentials
038107
 nsslapd-pluginid: aes-storage-scheme
038107
 nsslapd-pluginprecedence: 1
038107
 
038107
-dn: cn=GOST_YESCRYPT,cn=Password Storage Schemes,cn=plugins,cn=config
038107
-objectclass: top
038107
-objectclass: nsSlapdPlugin
038107
-cn: GOST_YESCRYPT
038107
-nsslapd-pluginpath: libpwdstorage-plugin
038107
-nsslapd-plugininitfunc: gost_yescrypt_pwd_storage_scheme_init
038107
-nsslapd-plugintype: pwdstoragescheme
038107
-nsslapd-pluginenabled: on
038107
-
038107
 dn: cn=Syntax Validation Task,cn=plugins,cn=config
038107
 objectclass: top
038107
 objectclass: nsSlapdPlugin
038107
diff --git a/ldap/servers/plugins/pwdstorage/pwd_init.c b/ldap/servers/plugins/pwdstorage/pwd_init.c
038107
index 606e63404..59cfc4684 100644
038107
--- a/ldap/servers/plugins/pwdstorage/pwd_init.c
038107
+++ b/ldap/servers/plugins/pwdstorage/pwd_init.c
038107
@@ -52,8 +52,6 @@ static Slapi_PluginDesc smd5_pdesc = {"smd5-password-storage-scheme", VENDOR, DS
038107
 
038107
 static Slapi_PluginDesc pbkdf2_sha256_pdesc = {"pbkdf2-sha256-password-storage-scheme", VENDOR, DS_PACKAGE_VERSION, "Salted PBKDF2 SHA256 hash algorithm (PBKDF2_SHA256)"};
038107
 
038107
-static Slapi_PluginDesc gost_yescrypt_pdesc = {"gost-yescrypt-password-storage-scheme", VENDOR, DS_PACKAGE_VERSION, "Yescrypt KDF algorithm (Streebog256)"};
038107
-
038107
 static char *plugin_name = "NSPwdStoragePlugin";
038107
 
038107
 int
038107
@@ -431,19 +429,3 @@ pbkdf2_sha256_pwd_storage_scheme_init(Slapi_PBlock *pb)
038107
     return rc;
038107
 }
038107
 
038107
-int
038107
-gost_yescrypt_pwd_storage_scheme_init(Slapi_PBlock *pb)
038107
-{
038107
-    int rc;
038107
-
038107
-    slapi_log_err(SLAPI_LOG_PLUGIN, plugin_name, "=> gost_yescrypt_pwd_storage_scheme_init\n");
038107
-
038107
-    rc = slapi_pblock_set(pb, SLAPI_PLUGIN_VERSION, (void *)SLAPI_PLUGIN_VERSION_01);
038107
-    rc |= slapi_pblock_set(pb, SLAPI_PLUGIN_DESCRIPTION, (void *)&gost_yescrypt_pdesc);
038107
-    rc |= slapi_pblock_set(pb, SLAPI_PLUGIN_PWD_STORAGE_SCHEME_ENC_FN, (void *)gost_yescrypt_pw_enc);
038107
-    rc |= slapi_pblock_set(pb, SLAPI_PLUGIN_PWD_STORAGE_SCHEME_CMP_FN, (void *)gost_yescrypt_pw_cmp);
038107
-    rc |= slapi_pblock_set(pb, SLAPI_PLUGIN_PWD_STORAGE_SCHEME_NAME, GOST_YESCRYPT_SCHEME_NAME);
038107
-
038107
-    slapi_log_err(SLAPI_LOG_PLUGIN, plugin_name, "<= gost_yescrypt_pwd_storage_scheme_init %d\n", rc);
038107
-    return rc;
038107
-}
038107
diff --git a/ldap/servers/slapd/fedse.c b/ldap/servers/slapd/fedse.c
038107
index 44159c991..24b7ed11c 100644
038107
--- a/ldap/servers/slapd/fedse.c
038107
+++ b/ldap/servers/slapd/fedse.c
038107
@@ -203,19 +203,6 @@ static const char *internal_entries[] =
038107
         "nsslapd-pluginVersion: none\n"
038107
         "nsslapd-pluginVendor: 389 Project\n"
038107
         "nsslapd-pluginDescription: CRYPT-SHA512\n",
038107
-
038107
-        "dn: cn=GOST_YESCRYPT,cn=Password Storage Schemes,cn=plugins,cn=config\n"
038107
-        "objectclass: top\n"
038107
-        "objectclass: nsSlapdPlugin\n"
038107
-        "cn: GOST_YESCRYPT\n"
038107
-        "nsslapd-pluginpath: libpwdstorage-plugin\n"
038107
-        "nsslapd-plugininitfunc: gost_yescrypt_pwd_storage_scheme_init\n"
038107
-        "nsslapd-plugintype: pwdstoragescheme\n"
038107
-        "nsslapd-pluginenabled: on\n"
038107
-        "nsslapd-pluginId: GOST_YESCRYPT\n"
038107
-        "nsslapd-pluginVersion: none\n"
038107
-        "nsslapd-pluginVendor: 389 Project\n"
038107
-        "nsslapd-pluginDescription: GOST_YESCRYPT\n",
038107
 };
038107
 
038107
 static int NUM_INTERNAL_ENTRIES = sizeof(internal_entries) / sizeof(internal_entries[0]);
038107
-- 
038107
2.31.1
038107