summaryrefslogtreecommitdiff
path: root/package/openssh/patches/patch-mac_c
blob: df8eac30107aaf04b180200bf98cdc780281efe0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
diff -Nur openssh-6.2p1.orig/mac.c openssh-6.2p1/mac.c
--- openssh-6.2p1.orig/mac.c	2012-12-12 01:00:37.000000000 +0100
+++ openssh-6.2p1/mac.c	2013-08-20 08:56:49.123256567 +0200
@@ -68,8 +68,10 @@ struct {
 #endif
 	{ "hmac-md5",				SSH_EVP, EVP_md5, 0, 0, 0, 0 },
 	{ "hmac-md5-96",			SSH_EVP, EVP_md5, 96, 0, 0, 0 },
+#ifndef OPENSSL_NO_RIPEMD
 	{ "hmac-ripemd160",			SSH_EVP, EVP_ripemd160, 0, 0, 0, 0 },
 	{ "hmac-ripemd160@openssh.com",		SSH_EVP, EVP_ripemd160, 0, 0, 0, 0 },
+#endif
 	{ "umac-64@openssh.com",		SSH_UMAC, NULL, 0, 128, 64, 0 },
 	{ "umac-128@openssh.com",		SSH_UMAC128, NULL, 0, 128, 128, 0 },
 
@@ -82,7 +84,9 @@ struct {
 #endif
 	{ "hmac-md5-etm@openssh.com",		SSH_EVP, EVP_md5, 0, 0, 0, 1 },
 	{ "hmac-md5-96-etm@openssh.com",	SSH_EVP, EVP_md5, 96, 0, 0, 1 },
+#ifndef OPENSSL_NO_RIPEMD
 	{ "hmac-ripemd160-etm@openssh.com",	SSH_EVP, EVP_ripemd160, 0, 0, 0, 1 },
+#endif
 	{ "umac-64-etm@openssh.com",		SSH_UMAC, NULL, 0, 128, 64, 1 },
 	{ "umac-128-etm@openssh.com",		SSH_UMAC128, NULL, 0, 128, 128, 1 },