mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
60e9c53853
- Fix 'make test' - HPN: - NONECIPHER is no longer default. This is not default in base and should not be default here as it introduces security holes. - HPN: I've audited the patch and included it in the port directory for transparency. I identified several bugs and submitted them to the new upstream: https://github.com/rapier1/openssh-portable/pull/2 - HPN: The entire patch is now ifdef'd to ensure various bits are properly removed depending on the OPTIONS selected. - AES_THREADED is removed. It has questionable benefit on modern HW and is not stable. - The "enhanced logging" was removed from the patch as it is too intrusive and difficult to maintain in the port. - The progress meter "peak throughput" patch was removed. - Fixed HPN version showing in client/server version string when HPN was disabled in the config. - KERB_GSSAPI is currently BROKEN as it does not apply. - Update X509 to 8.3 Changelog: http://www.openssh.com/txt/release-6.8
37 lines
1.2 KiB
Plaintext
37 lines
1.2 KiB
Plaintext
r184122 | des | 2008-10-21 06:58:26 -0500 (Tue, 21 Oct 2008) | 11 lines
|
|
Changed paths:
|
|
M /head/crypto/openssh/loginrec.c
|
|
M /head/crypto/openssh/sshd.c
|
|
|
|
At some point, construct_utmp() was changed to use realhostname() to fill
|
|
in the struct utmp due to concerns about the length of the hostname buffer.
|
|
However, this breaks the UseDNS option. There is a simpler and better
|
|
solution: initialize utmp_len to the correct value (UT_HOSTSIZE instead of
|
|
MAXHOSTNAMELEN) and let get_remote_name_or_ip() worry about the size of the
|
|
buffer.
|
|
|
|
PR: bin/97499
|
|
Submitted by: Bruce Cran <bruce@cran.org.uk>
|
|
|
|
Index: sshd.c
|
|
===================================================================
|
|
--- sshd.c.orig 2015-04-04 11:40:24.175508000 -0500
|
|
+++ sshd.c 2015-04-04 11:40:38.082324000 -0500
|
|
@@ -72,6 +72,7 @@
|
|
#include <string.h>
|
|
#include <unistd.h>
|
|
#include <limits.h>
|
|
+#include <utmp.h>
|
|
|
|
#ifdef WITH_OPENSSL
|
|
#include <openssl/dh.h>
|
|
@@ -229,7 +230,7 @@ u_char *session_id2 = NULL;
|
|
u_int session_id2_len = 0;
|
|
|
|
/* record remote hostname or ip */
|
|
-u_int utmp_len = HOST_NAME_MAX+1;
|
|
+u_int utmp_len = UT_HOSTSIZE;
|
|
|
|
/* options.max_startup sized array of fd ints */
|
|
int *startup_pipes = NULL;
|