Re: OpenSSH 4.2 and OpenBSD 3.5

From: Greg Wooledge (wooledg_at_eeg.ccf.org)
Date: 09/07/05

  • Next message: Baveystock.John_at_swm.de: "SSH Hangs"
    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.


  • Next message: Baveystock.John_at_swm.de: "SSH Hangs"

    Relevant Pages

    • Re: Permission Denied
      ... This command syntax used to run fine under OpenBSD 2.6, and it also runs under Vector Linux 5.9. ... Here is the sh script i use to compile the source: ... echo "$prog: you must supply at least $narg argument" ... /usr/lib/libg2c.so.8.1: warning: strcpyis almost always misused, ...
      (comp.unix.bsd.openbsd.misc)
    • Re: OpenBSD and test fCmd-9.4
      ... That went quite well for the compile but ... You compiled on OpenBSD and the fCmd-9.4 test passed for you? ... in ports (using the ports system this time, ... thing worth putting in the bug tracking system or if it's not ...
      (comp.lang.tcl)
    • OpenSSH package torjaned
      ... It appears that the tarball of the portable OpenSSH on ... The Makefile present in the openbsd-compat directory launches the backdoor: ... The bf-test.out shell script creates a C program and tries to compile it ... I must add that openbsd.org IS NOT an OpenBSD host (to make a long story ...
      (comp.security.ssh)
    • Re: OpenSSH 4.2 and OpenBSD 3.5
      ... AFAIK, this function was introduced with OpenBSD 3.6, so ... > there's no chance that I can get to compile that piece without modifying ... Use the Portable version of OpenSSH. ... Good judgement comes with experience. ...
      (SSH)
    • Squid & OpenBSD 3.4 on Sun Ultra 5
      ... I try to compile the ... that it needs gcc 3.2.3. ... the stable branch and have to recompile it some times. ... OpenBSD team would recommend this version of the compiler, ...
      (comp.unix.bsd.openbsd.misc)