Bug 1096

Summary: ssh-keygen broken on HPUX
Product: Portable OpenSSH Reporter: Olaf Flebbe <o.flebbe>
Component: ssh-keygenAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED FIXED    
Severity: normal    
Priority: P2    
Version: 4.2p1   
Hardware: HPPA   
OS: HP-UX   
Bug Depends on:    
Bug Blocks: 1047    
Attachments:
Description Flags
Patch to openbsd-compat.h none

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.