openssh/openssh-nukeacss.sh

22 lines
575 B
Bash
Raw Normal View History

#!/bin/sh
#
# Remove the ACSS implementation from OpenSSH, and disable its use so that the
# rest of the package can still be built.
#
> acss.c
2005-09-06 19:55:17 +00:00
patch -sp0 << EOF
--- cipher.c.orig 2005-07-17 09:02:10.000000000 +0200
+++ cipher.c 2005-09-06 14:52:06.000000000 +0200
2011-04-01 08:54:41 +00:00
@@ -45,6 +45,9 @@
2005-09-06 19:55:17 +00:00
/* compatibility with old or broken OpenSSL versions */
#include "openbsd-compat/openssl-compat.h"
+#undef USE_CIPHER_ACSS
2011-04-01 08:54:41 +00:00
+#undef EVP_acss
+#define EVP_acss NULL
2005-09-06 19:55:17 +00:00
extern const EVP_CIPHER *evp_ssh1_bf(void);
extern const EVP_CIPHER *evp_ssh1_3des(void);
EOF
2011-09-07 13:12:54 +00:00
echo "Well done."