Re: OpenSSH 4.2 and OpenBSD 3.5
From: Greg Wooledge (wooledg_at_eeg.ccf.org)
Date: 09/07/05
- Previous message: guyverdh_at_mchsi.com: "Re: SSHD and SSH Call-out via Port Knocking"
- In reply to: Martín: "OpenSSH 4.2 and OpenBSD 3.5"
- Next in thread: Darren Tucker: "Re: OpenSSH 4.2 and OpenBSD 3.5"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 7 Sep 2005 08:08:06 -0400 To: secureshell@securityfocus.com
On Tue, Sep 06, 2005 at 01:55:39PM -0300, Martín wrote:
> I'm trying to compile the new version of OpenSSH in OpenBSD 3.5, but
> when I get to "ssh-keygen", it complains about the "strtonum()"
> function. AFAIK, this function was introduced with OpenBSD 3.6, so
> there's no chance that I can get to compile that piece without modifying
> the source code.
Why not just upgrade to OpenBSD 3.7?
Failing that, the "right" answer would be for you to grab the strtonum()
function from a 3.6 or 3.7 source tree, drop it into the OpenSSH source
directory, and update the Makefile so that your build links it in.
The strtonum(3) man page suggests atoi(3) and strtol(3) as alternatives,
so a third-best solution would be to change that part of the code to use
one of those alternatives. But I'd better quote this section verbatim:
STANDARDS
strtonum() is an OpenBSD extension. The existing alternatives, such as
atoi(3) and strtol(3), are either impossible or difficult to use safely.
HISTORY
The strtonum() function first appeared in OpenBSD 3.6.
- Previous message: guyverdh_at_mchsi.com: "Re: SSHD and SSH Call-out via Port Knocking"
- In reply to: Martín: "OpenSSH 4.2 and OpenBSD 3.5"
- Next in thread: Darren Tucker: "Re: OpenSSH 4.2 and OpenBSD 3.5"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|