Bug 1096 - ssh-keygen broken on HPUX
Summary: ssh-keygen broken on HPUX
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh-keygen (show other bugs)
Version: 4.2p1
Hardware: HPPA HP-UX
: P2 normal
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks: 1047
  Show dependency treegraph
 
Reported: 2005-09-30 01:31 AEST by Olaf Flebbe
Modified: 2006-10-07 11:42 AEST (History)
0 users

See Also:


Attachments
Patch to openbsd-compat.h (425 bytes, patch)
2005-09-30 01:33 AEST, Olaf Flebbe
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Olaf Flebbe 2005-09-30 01:31:55 AEST
Hi, 

ssh-keygen is broken on HP-UX. For instance

>ssh-keygen -t dsa -b1024
Bits has bad value 1024 (too small)

Reason: usage of openbsd replacement of _both_ strtonum and strtoll: 
The protoype of strtoll is missing from openbsd-compat.h so strtonum is miscompiled.

This should affact all platforms without both "strtonum" and "strtoll".

Patch appended.
Comment 1 Olaf Flebbe 2005-09-30 01:33:16 AEST
Created attachment 973 [details]
Patch to openbsd-compat.h
Comment 2 Darren Tucker 2005-09-30 10:01:28 AEST
I haven't seen this on my HP-UX box (using gcc, maybe the behaviour is compiler
dependant?) however the prototype is missing and your patch is obviously correct.

Applied to both -HEAD and the 4.2 branch.  Thanks.
Comment 3 Darren Tucker 2006-10-07 11:42:32 AEST
Change all RESOLVED bug to CLOSED with the exception of the ones fixed post-4.4.