[3216] in Kerberos-V5-bugs
krb5-libs/961: lib/crypto/sha1/shs.c fails on WIN32
daemon@ATHENA.MIT.EDU (Douglas Engert)
Tue May 29 17:44:06 2001
Resent-From: gnats@rt-11.mit.edu (GNATS Management)
Resent-To: krb5-unassigned@rt-11.mit.edu
Resent-Reply-To: krb5-bugs@MIT.EDU, b17783@achilles.ctd.anl.gov
Message-Id: <200105292143.QAA07448@orleans.ctd.anl.gov>
Date: Tue, 29 May 2001 16:43:27 -0500 (CDT)
From: Douglas Engert <b17783@achilles.ctd.anl.gov>
Reply-To: b17783@achilles.ctd.anl.gov
To: krb5-bugs@mit.edu
>Number: 961
>Category: krb5-libs
>Synopsis: lib/crypto/sha1/shs.c fails on WIN32
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: krb5-unassigned
>State: open
>Class: sw-bug
>Submitter-Id: unknown
>Arrival-Date: Tue May 29 17:44:00 EDT 2001
>Last-Modified:
>Originator: Douglas Engert
>Organization:
Douglas E. Engert <DEEngert@anl.gov>
Argonne National Laboratory
9700 South Cass Avenue
Argonne, Illinois 60439
(630) 252-5444
>Release: krb5-1.2.2
>Environment:
Win2000, using VC++ 6.0
Architecture: i386
>Description:
The lib/crypto/sha1/shs.h needs a typedef for LONG
Without this the t_shs.exe fails.
>How-To-Repeat:
Build the krb5-1.2.2 for Win32 from the unix source,
then build t_shs.exe program and run
>Fix:
Adding : typedef unsigned int LONG; before the k5-int.h
fixes the probelm, and the t_shs.exe runs, as will as
GSS utilities and 3des keys.
There may be a better fix, as there is code at line 13 or so
which should deal with WIN32, but this appears to be to late.
*** ,shs.h Wed Feb 28 16:07:34 2001
--- shs.h Tue May 29 10:11:24 2001
***************
*** 1,5 ****
--- 1,9 ----
#ifndef _SHS_DEFINED
+ #if defined(_WIN32)
+ typedef unsigned int LONG;
+ #endif
+
#include <k5-int.h>
#define _SHS_DEFINED
>Audit-Trail:
>Unformatted: