Accepting request 202452 from home:pcerny:factory

- fix server crashes when using AES-GCM
- removed superfluous build dependency on X

OBS-URL: https://build.opensuse.org/request/show/202452
OBS-URL: https://build.opensuse.org/package/show/network/openssh?expand=0&rev=57
This commit is contained in:
Petr Cerny 2013-10-07 08:32:48 +00:00 committed by Git OBS Bridge
parent 673551b2c9
commit 6fccab223a
5 changed files with 14 additions and 10 deletions

View File

@ -650,7 +650,7 @@ diff --git a/openssh-6.2p2/packet.c b/openssh-6.2p2/packet.c
packet_set_protocol_flags(u_int protocol_flags)
{
active_state->remote_protocol_flags = protocol_flags;
@@ -722,16 +733,33 @@ packet_send1(void)
@@ -722,16 +733,35 @@ packet_send1(void)
/*
* Note that the packet is now only buffered in output. It won't be
@ -668,6 +668,8 @@ diff --git a/openssh-6.2p2/packet.c b/openssh-6.2p2/packet.c
+ xfree(newkeys->enc.name);
+
+ mac_clear(&newkeys->mac);
+ /* MAC may happen to be empty - if the GCM mode of AES is used */
+ if (newkeys->mac.name)
+ xfree(newkeys->mac.name);
+
+ xfree(newkeys->comp.name);
@ -684,7 +686,7 @@ diff --git a/openssh-6.2p2/packet.c b/openssh-6.2p2/packet.c
Comp *comp;
CipherContext *cc;
u_int64_t *max_blocks;
@@ -747,31 +775,19 @@ set_newkeys(int mode)
@@ -747,31 +777,19 @@ set_newkeys(int mode)
} else {
cc = &active_state->receive_context;
crypt_type = CIPHER_DECRYPT;
@ -718,7 +720,7 @@ diff --git a/openssh-6.2p2/packet.c b/openssh-6.2p2/packet.c
mac = &active_state->newkeys[mode]->mac;
comp = &active_state->newkeys[mode]->comp;
if (cipher_authlen(enc->cipher) == 0 && mac_init(mac) == 0)
@@ -1967,54 +1983,93 @@ packet_get_output(void)
@@ -1967,54 +1985,93 @@ packet_get_output(void)
}
void *

View File

@ -1,5 +1,5 @@
# HG changeset patch
# Parent 3d1c0ed188101c45a132baae0b78f93a1d0e6160
# Parent 2e71c896d924778e46e68e0c9be9a8b13e428f2f
# select fingerprint hash algorithms based on the environment variable
# SSH_FP_TYPE_ENVVAR and append it to hex and randomart fingerprints

View File

@ -1,5 +1,5 @@
# HG changeset patch
# Parent 4c530768d07db136fcc679119220a02eb28b0127
# Parent a72dad36a987a441e9c92807b1d654e43ddee409
diff --git a/openssh-6.2p2/ChangeLog.gssapi b/openssh-6.2p2/ChangeLog.gssapi
new file mode 100644

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Oct 4 17:50:32 UTC 2013 - pcerny@suse.com
- fix server crashes when using AES-GCM
- removed superfluous build dependency on X
-------------------------------------------------------------------
Thu Sep 19 02:02:56 UTC 2013 - pcerny@suse.com

View File

@ -84,10 +84,6 @@ BuildRequires: systemd
%{?systemd_requires}
%endif
BuildRequires: tcpd-devel
BuildRequires: xorg-x11-devel
%if %{needs_xorg_libs}
BuildRequires: xorg-x11-libs
%endif
Requires: /bin/netstat
PreReq: pwdutils %{insserv_prereq} %{fillup_prereq} coreutils
Conflicts: nonfreessh