diff options
author | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
---|---|---|
committer | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
commit | 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch) | |
tree | b9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/openssh/patches |
Initial import
Diffstat (limited to 'package/openssh/patches')
-rw-r--r-- | package/openssh/patches/patch-cipher_c | 35 | ||||
-rw-r--r-- | package/openssh/patches/patch-configure | 12 | ||||
-rw-r--r-- | package/openssh/patches/patch-mac_c | 14 | ||||
-rw-r--r-- | package/openssh/patches/patch-myproposal_h | 45 | ||||
-rw-r--r-- | package/openssh/patches/patch-openbsd-compat_port-tun_c | 12 |
5 files changed, 118 insertions, 0 deletions
diff --git a/package/openssh/patches/patch-cipher_c b/package/openssh/patches/patch-cipher_c new file mode 100644 index 000000000..9edbd4167 --- /dev/null +++ b/package/openssh/patches/patch-cipher_c @@ -0,0 +1,35 @@ +$Id: update-patches 24 2008-08-31 14:56:13Z wbx $ +--- openssh-5.2p1.orig/cipher.c 2009-01-28 06:38:41.000000000 +0100 ++++ openssh-5.2p1/cipher.c 2009-05-01 13:39:23.000000000 +0200 +@@ -69,21 +69,30 @@ struct Cipher { + { "none", SSH_CIPHER_NONE, 8, 0, 0, 0, EVP_enc_null }, + { "des", SSH_CIPHER_DES, 8, 8, 0, 1, EVP_des_cbc }, + { "3des", SSH_CIPHER_3DES, 8, 16, 0, 1, evp_ssh1_3des }, ++#ifndef OPENSSL_NO_BF + { "blowfish", SSH_CIPHER_BLOWFISH, 8, 32, 0, 1, evp_ssh1_bf }, +- ++#endif + { "3des-cbc", SSH_CIPHER_SSH2, 8, 24, 0, 1, EVP_des_ede3_cbc }, ++#ifndef OPENSSL_NO_BF + { "blowfish-cbc", SSH_CIPHER_SSH2, 8, 16, 0, 1, EVP_bf_cbc }, ++#endif ++#ifndef OPENSSL_NO_CAST + { "cast128-cbc", SSH_CIPHER_SSH2, 8, 16, 0, 1, EVP_cast5_cbc }, ++#endif + { "arcfour", SSH_CIPHER_SSH2, 8, 16, 0, 0, EVP_rc4 }, + { "arcfour128", SSH_CIPHER_SSH2, 8, 16, 1536, 0, EVP_rc4 }, + { "arcfour256", SSH_CIPHER_SSH2, 8, 32, 1536, 0, EVP_rc4 }, + { "aes128-cbc", SSH_CIPHER_SSH2, 16, 16, 0, 1, EVP_aes_128_cbc }, ++#ifndef OPENSSL_NO_AES192 + { "aes192-cbc", SSH_CIPHER_SSH2, 16, 24, 0, 1, EVP_aes_192_cbc }, ++#endif + { "aes256-cbc", SSH_CIPHER_SSH2, 16, 32, 0, 1, EVP_aes_256_cbc }, + { "rijndael-cbc@lysator.liu.se", + SSH_CIPHER_SSH2, 16, 32, 0, 1, EVP_aes_256_cbc }, + { "aes128-ctr", SSH_CIPHER_SSH2, 16, 16, 0, 0, evp_aes_128_ctr }, ++#ifndef OPENSSL_NO_AES192 + { "aes192-ctr", SSH_CIPHER_SSH2, 16, 24, 0, 0, evp_aes_128_ctr }, ++#endif + { "aes256-ctr", SSH_CIPHER_SSH2, 16, 32, 0, 0, evp_aes_128_ctr }, + #ifdef USE_CIPHER_ACSS + { "acss@openssh.org", SSH_CIPHER_SSH2, 16, 5, 0, 0, EVP_acss }, diff --git a/package/openssh/patches/patch-configure b/package/openssh/patches/patch-configure new file mode 100644 index 000000000..aa0b7af45 --- /dev/null +++ b/package/openssh/patches/patch-configure @@ -0,0 +1,12 @@ +$Id: update-patches 24 2008-08-31 14:56:13Z wbx $ +--- openssh-5.2p1.orig/configure 2009-02-23 01:18:14.000000000 +0100 ++++ openssh-5.2p1/configure 2009-05-01 12:34:00.000000000 +0200 +@@ -26712,7 +26712,7 @@ echo "${ECHO_T}yes" >&6; } + #define HEIMDAL 1 + _ACEOF + +- K5LIBS="-lkrb5 -ldes" ++ K5LIBS="-lkrb5" + K5LIBS="$K5LIBS -lcom_err -lasn1" + { echo "$as_me:$LINENO: checking for net_write in -lroken" >&5 + echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6; } diff --git a/package/openssh/patches/patch-mac_c b/package/openssh/patches/patch-mac_c new file mode 100644 index 000000000..28e27e186 --- /dev/null +++ b/package/openssh/patches/patch-mac_c @@ -0,0 +1,14 @@ +$Id: update-patches 24 2008-08-31 14:56:13Z wbx $ +--- openssh-5.2p1.orig/mac.c 2008-06-13 02:58:50.000000000 +0200 ++++ openssh-5.2p1/mac.c 2009-05-01 13:34:59.000000000 +0200 +@@ -59,8 +59,10 @@ struct { + { "hmac-sha1-96", SSH_EVP, EVP_sha1, 96, -1, -1 }, + { "hmac-md5", SSH_EVP, EVP_md5, 0, -1, -1 }, + { "hmac-md5-96", SSH_EVP, EVP_md5, 96, -1, -1 }, ++#ifndef OPENSSL_NO_RIPEMD + { "hmac-ripemd160", SSH_EVP, EVP_ripemd160, 0, -1, -1 }, + { "hmac-ripemd160@openssh.com", SSH_EVP, EVP_ripemd160, 0, -1, -1 }, ++#endif + { "umac-64@openssh.com", SSH_UMAC, NULL, 0, 128, 64 }, + { NULL, 0, NULL, 0, -1, -1 } + }; diff --git a/package/openssh/patches/patch-myproposal_h b/package/openssh/patches/patch-myproposal_h new file mode 100644 index 000000000..38345863e --- /dev/null +++ b/package/openssh/patches/patch-myproposal_h @@ -0,0 +1,45 @@ +$Id: update-patches 24 2008-08-31 14:56:13Z wbx $ +--- openssh-5.2p1.orig/myproposal.h 2009-01-28 06:33:31.000000000 +0100 ++++ openssh-5.2p1/myproposal.h 2009-05-01 14:00:47.000000000 +0200 +@@ -42,15 +42,35 @@ + + #define KEX_DEFAULT_PK_ALG "ssh-rsa,ssh-dss" + ++ ++#ifndef OPENSSL_NO_AES192 ++#define KEX_ENCRYPT_AES192 ",aes192-ctr,aes192-cbc" ++#else ++#define KEX_ENCRYPT_AES192 ++#endif ++#ifndef OPENSSL_NO_BF ++#define KEX_ENCRYPT_BF ",blowfish-cbc" ++#else ++#define KEX_ENCRYPT_BF ++#endif ++#ifndef OPENSSL_NO_CAST ++#define KEX_ENCRYPT_CAST ",cast128-cbc" ++#define KEX_MAC_CAST ",hmac-ripemd160,hmac-ripemd160@openssh.com" ++#else ++#define KEX_ENCRYPT_CAST ++#define KEX_MAC_CAST ++#endif ++ + #define KEX_DEFAULT_ENCRYPT \ +- "aes128-ctr,aes192-ctr,aes256-ctr," \ ++ "aes128-ctr,aes256-ctr," \ + "arcfour256,arcfour128," \ +- "aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc," \ +- "aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se" ++ "aes128-cbc,3des-cbc," \ ++ "aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se" \ ++ KEX_ENCRYPT_AES192 KEX_ENCRYPT_BF KEX_ENCRYPT_CAST + #define KEX_DEFAULT_MAC \ +- "hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160," \ +- "hmac-ripemd160@openssh.com," \ +- "hmac-sha1-96,hmac-md5-96" ++ "hmac-md5,hmac-sha1,umac-64@openssh.com," \ ++ "hmac-sha1-96,hmac-md5-96" \ ++ KEX_MAC_CAST + #define KEX_DEFAULT_COMP "none,zlib@openssh.com,zlib" + #define KEX_DEFAULT_LANG "" + diff --git a/package/openssh/patches/patch-openbsd-compat_port-tun_c b/package/openssh/patches/patch-openbsd-compat_port-tun_c new file mode 100644 index 000000000..bc6e0b1b3 --- /dev/null +++ b/package/openssh/patches/patch-openbsd-compat_port-tun_c @@ -0,0 +1,12 @@ +$Id: update-patches 24 2008-08-31 14:56:13Z wbx $ +--- openssh-5.1p1.orig/openbsd-compat/port-tun.c 2008-05-19 07:28:36.000000000 +0200 ++++ openssh-5.1p1/openbsd-compat/port-tun.c 2008-10-14 10:20:42.000000000 +0200 +@@ -213,7 +213,7 @@ sys_tun_infilter(struct Channel *c, char + if (len <= 0 || len > (int)(sizeof(rbuf) - sizeof(*af))) + return (-1); + ptr = (char *)&rbuf[0]; +- bcopy(buf, ptr + sizeof(u_int32_t), len); ++ memcpy(ptr + sizeof(u_int32_t), buf, len); + len += sizeof(u_int32_t); + af = (u_int32_t *)ptr; + |