Skip to content

Commit

Permalink
- (djm) [ssh.c sshd.c version.h] Don't divulge portable version in p…
Browse files Browse the repository at this point in the history
…rotocol

   banner. Suggested by deraadt@, ok mouring@, dtucker@
  • Loading branch information
djmdjm committed Sep 12, 2004
1 parent b0aae33 commit 2aa6d3c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
4 changes: 3 additions & 1 deletion ChangeLog
Expand Up @@ -3,6 +3,8 @@
No change in resultant binary
- (djm) [loginrec.c] __func__ifiy
- (djm) [loginrec.c] xmalloc
- (djm) [ssh.c sshd.c version.h] Don't divulge portable version in protocol
banner. Suggested by deraadt@, ok mouring@, dtucker@

20040911
- (djm) [ssh-agent.c] unifdef some cygwin code; ok dtucker@
Expand Down Expand Up @@ -1740,4 +1742,4 @@
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu

$Id: ChangeLog,v 1.3550 2004/09/12 05:26:00 djm Exp $
$Id: ChangeLog,v 1.3551 2004/09/12 06:53:04 djm Exp $
2 changes: 1 addition & 1 deletion ssh.c
Expand Up @@ -319,7 +319,7 @@ main(int ac, char **av)
/* fallthrough */
case 'V':
fprintf(stderr, "%s, %s\n",
SSH_VERSION, SSLeay_version(SSLEAY_VERSION));
SSH_RELEASE, SSLeay_version(SSLEAY_VERSION));
if (opt == 'V')
exit(0);
break;
Expand Down
4 changes: 2 additions & 2 deletions sshd.c
Expand Up @@ -774,7 +774,7 @@ static void
usage(void)
{
fprintf(stderr, "%s, %s\n",
SSH_VERSION, SSLeay_version(SSLEAY_VERSION));
SSH_RELEASE, SSLeay_version(SSLEAY_VERSION));
fprintf(stderr,
"usage: sshd [-46Ddeiqt] [-b bits] [-f config_file] [-g login_grace_time]\n"
" [-h host_key_file] [-k key_gen_time] [-o option] [-p port] [-u len]\n"
Expand Down Expand Up @@ -1081,7 +1081,7 @@ main(int ac, char **av)
exit(1);
}

debug("sshd version %.100s", SSH_VERSION);
debug("sshd version %.100s", SSH_RELEASE);

/* load private host keys */
sensitive_data.host_keys = xmalloc(options.num_host_key_files *
Expand Down
5 changes: 4 additions & 1 deletion version.h
@@ -1,3 +1,6 @@
/* $OpenBSD: version.h,v 1.42 2004/08/16 08:17:01 markus Exp $ */

#define SSH_VERSION "OpenSSH_3.9p1"
#define SSH_VERSION "OpenSSH_3.9"

#define SSH_PORTABLE "p1"
#define SSH_RELEASE SSH_VERSION SSH_PORTABLE

0 comments on commit 2aa6d3c

Please sign in to comment.