+20000419
+ - OpenBSD CVS updates
+ [channels.c]
+ - fix pr 1196, listen_port and port_to_connect interchanged
+ [scp.c]
+ - after completion, replace the progress bar ETA counter with a final
+ elapsed time; my idea, aaron wrote the patch
+ [ssh_config sshd_config]
+ - show 'Protocol' as an example, ok markus@
+ [sshd.c]
+ - missing xfree()
+ - Add missing header to bsd-misc.c
+
20000416
- Reduce diff against OpenBSD source
- All OpenSSL includes are now unconditionally referenced as
#include "bsd-misc.h"
#include "entropy.h"
+#include <openssl/rand.h>
+
#ifndef HAVE_ARC4RANDOM
typedef struct
packet_put_int(listen_port);
} else {
packet_start(SSH_CMSG_PORT_FORWARD_REQUEST);
- packet_put_int(port_to_connect);
- packet_put_cstring(host_to_connect);
packet_put_int(listen_port);
+ packet_put_cstring(host_to_connect);
+ packet_put_int(port_to_connect);
packet_send();
packet_write_wait();
/*
snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf),
" - stalled -");
} else {
- remaining = (int) (totalbytes / (statbytes / elapsed) - elapsed);
+ if (flag != 1)
+ remaining =
+ (int)(totalbytes / (statbytes / elapsed) - elapsed);
+ else
+ remaining = elapsed;
+
i = remaining / 3600;
if (i)
snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf),
" ");
i = remaining % 3600;
snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf),
- "%02d:%02d ETA", i / 60, i % 60);
+ "%02d:%02d%s", i / 60, i % 60,
+ (flag != 1) ? " ETA" : " ");
}
atomicio(write, fileno(stdout), buf, strlen(buf));
# StrictHostKeyChecking no
# IdentityFile ~/.ssh/identity
# Port 22
+# Protocol 2,1
# Cipher blowfish
# EscapeChar ~
*/
#include "includes.h"
-RCSID("$OpenBSD: sshd.c,v 1.105 2000/04/14 10:30:33 markus Exp $");
+RCSID("$OpenBSD: sshd.c,v 1.106 2000/04/17 12:31:47 markus Exp $");
#include "xmalloc.h"
#include "rsa.h"
packet_put_bignum2(dh->pub_key); // f
packet_put_string((char *)signature, slen);
packet_send();
+ xfree(signature);
packet_write_wait();
kex_derive_keys(kex, hash, shared_secret);
# This is ssh server systemwide configuration file.
Port 22
+#Protocol 2,1
ListenAddress 0.0.0.0
#ListenAddress ::
HostKey /etc/ssh_host_key