summaryrefslogtreecommitdiff
path: root/recipes-connectivity/openssh/openssh/openssh-8.1p1-conditional-compile-des-in-cipher.patch
blob: 507026cc98e1a91104b59a73d6540f592688400b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- a/cipher.c	2019-12-03 12:46:22.282290586 -0600
+++ b/cipher.c	2019-12-03 12:45:19.273805437 -0600
@@ -158,8 +158,10 @@
 u_int
 cipher_seclen(const struct sshcipher *c)
 {
+#ifndef OPENSSL_NO_DES
 	if (strcmp("3des-cbc", c->name) == 0)
 		return 14;
+#endif
 	return cipher_keylen(c);
 }