This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
[PATCH crypt 5/8] Disable blowfish cipher
- From: Yaakov Selkowitz <yselkowi at redhat dot com>
- To: cygwin-apps at cygwin dot com
- Date: Thu, 3 Aug 2017 21:52:55 -0500
- Subject: [PATCH crypt 5/8] Disable blowfish cipher
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx03.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx03.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=yselkowi at redhat dot com
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com CBDE483F42
- References: <20170804025258.19248-1-yselkowi@redhat.com>
This didn't work properly when tested, and is not found in glibc.
---
crypt_r.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/crypt_r.c b/crypt_r.c
index 75ba60b..f30d41d 100644
--- a/crypt_r.c
+++ b/crypt_r.c
@@ -18,8 +18,10 @@ char *__crypt_r(const char *key, const char *salt, struct crypt_data *data)
if (salt[0] == '$' && salt[1] && salt[2]) {
if (salt[1] == '1' && salt[2] == '$')
return __crypt_md5(key, salt, output);
+#if 0 /* doesn't work, not found in glibc */
if (salt[1] == '2' && salt[3] == '$')
return __crypt_blowfish(key, salt, output);
+#endif
if (salt[1] == '5' && salt[2] == '$')
return __crypt_sha256(key, salt, output);
if (salt[1] == '6' && salt[2] == '$')
--
2.13.2