mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-30 09:14:59 +02:00
- 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
This commit is contained in:
parent
71795160ee
commit
8bb73be04e
13
ChangeLog
13
ChangeLog
@ -1,3 +1,16 @@
|
|||||||
|
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
|
20000416
|
||||||
- Reduce diff against OpenBSD source
|
- Reduce diff against OpenBSD source
|
||||||
- All OpenSSL includes are now unconditionally referenced as
|
- All OpenSSL includes are now unconditionally referenced as
|
||||||
|
@ -47,6 +47,8 @@
|
|||||||
#include "bsd-misc.h"
|
#include "bsd-misc.h"
|
||||||
#include "entropy.h"
|
#include "entropy.h"
|
||||||
|
|
||||||
|
#include <openssl/rand.h>
|
||||||
|
|
||||||
#ifndef HAVE_ARC4RANDOM
|
#ifndef HAVE_ARC4RANDOM
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
RCSID("$Id: channels.c,v 1.25 2000/04/16 01:18:41 damien Exp $");
|
RCSID("$Id: channels.c,v 1.26 2000/04/19 06:26:13 damien Exp $");
|
||||||
|
|
||||||
#include "ssh.h"
|
#include "ssh.h"
|
||||||
#include "packet.h"
|
#include "packet.h"
|
||||||
@ -1469,9 +1469,9 @@ channel_request_remote_forwarding(u_short listen_port, const char *host_to_conne
|
|||||||
packet_put_int(listen_port);
|
packet_put_int(listen_port);
|
||||||
} else {
|
} else {
|
||||||
packet_start(SSH_CMSG_PORT_FORWARD_REQUEST);
|
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_int(listen_port);
|
||||||
|
packet_put_cstring(host_to_connect);
|
||||||
|
packet_put_int(port_to_connect);
|
||||||
packet_send();
|
packet_send();
|
||||||
packet_write_wait();
|
packet_write_wait();
|
||||||
/*
|
/*
|
||||||
|
14
scp.c
14
scp.c
@ -45,7 +45,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
RCSID("$Id: scp.c,v 1.19 2000/04/16 01:18:45 damien Exp $");
|
RCSID("$Id: scp.c,v 1.20 2000/04/19 06:26:14 damien Exp $");
|
||||||
|
|
||||||
#include "ssh.h"
|
#include "ssh.h"
|
||||||
#include "xmalloc.h"
|
#include "xmalloc.h"
|
||||||
@ -1008,7 +1008,7 @@ run_err(const char *fmt,...)
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: scp.c,v 1.19 2000/04/16 01:18:45 damien Exp $
|
* $Id: scp.c,v 1.20 2000/04/19 06:26:14 damien Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
char *
|
char *
|
||||||
@ -1211,7 +1211,12 @@ progressmeter(int flag)
|
|||||||
snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf),
|
snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf),
|
||||||
" - stalled -");
|
" - stalled -");
|
||||||
} else {
|
} else {
|
||||||
remaining = (int) (totalbytes / (statbytes / elapsed) - elapsed);
|
if (flag != 1)
|
||||||
|
remaining =
|
||||||
|
(int)(totalbytes / (statbytes / elapsed) - elapsed);
|
||||||
|
else
|
||||||
|
remaining = elapsed;
|
||||||
|
|
||||||
i = remaining / 3600;
|
i = remaining / 3600;
|
||||||
if (i)
|
if (i)
|
||||||
snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf),
|
snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf),
|
||||||
@ -1221,7 +1226,8 @@ progressmeter(int flag)
|
|||||||
" ");
|
" ");
|
||||||
i = remaining % 3600;
|
i = remaining % 3600;
|
||||||
snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf),
|
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));
|
atomicio(write, fileno(stdout), buf, strlen(buf));
|
||||||
|
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
# StrictHostKeyChecking no
|
# StrictHostKeyChecking no
|
||||||
# IdentityFile ~/.ssh/identity
|
# IdentityFile ~/.ssh/identity
|
||||||
# Port 22
|
# Port 22
|
||||||
|
# Protocol 2,1
|
||||||
# Cipher blowfish
|
# Cipher blowfish
|
||||||
# EscapeChar ~
|
# EscapeChar ~
|
||||||
|
|
||||||
|
3
sshd.c
3
sshd.c
@ -14,7 +14,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "includes.h"
|
#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 "xmalloc.h"
|
||||||
#include "rsa.h"
|
#include "rsa.h"
|
||||||
@ -1265,6 +1265,7 @@ do_ssh2_kex()
|
|||||||
packet_put_bignum2(dh->pub_key); // f
|
packet_put_bignum2(dh->pub_key); // f
|
||||||
packet_put_string((char *)signature, slen);
|
packet_put_string((char *)signature, slen);
|
||||||
packet_send();
|
packet_send();
|
||||||
|
xfree(signature);
|
||||||
packet_write_wait();
|
packet_write_wait();
|
||||||
|
|
||||||
kex_derive_keys(kex, hash, shared_secret);
|
kex_derive_keys(kex, hash, shared_secret);
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
# This is ssh server systemwide configuration file.
|
# This is ssh server systemwide configuration file.
|
||||||
|
|
||||||
Port 22
|
Port 22
|
||||||
|
#Protocol 2,1
|
||||||
ListenAddress 0.0.0.0
|
ListenAddress 0.0.0.0
|
||||||
#ListenAddress ::
|
#ListenAddress ::
|
||||||
HostKey /etc/ssh_host_key
|
HostKey /etc/ssh_host_key
|
||||||
|
Loading…
x
Reference in New Issue
Block a user