Ticket #19 (closed defect: fixed)
NB! Read about ReportingBugs before filing a ticket!
pkcs15-tool.c won't compile with MSVC (SVN version)
| Reported by: | richard.musil@… | Owned by: | devel |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | tools | Version: | devel |
| Severity: | minor | Keywords: | MSVC .NET 2003 |
| Cc: | Blocked By: | ||
| Blocking: |
Description
In version 0.9.6 it was OK. In rev. [2351] aj introduced includes (asm/types.h and netinet/in.h) which do not exist on Windows (at least natively). I suggest following workaround and also possibly removing this includes at all. Seems to be to much dependency for too little :).
--- pkcs15-tool.c (revision 2357) +++ pkcs15-tool.c (working copy) @@ -22,8 +22,13 @@ #include <config.h> #endif #ifdef HAVE_OPENSSL -#include <asm/types.h> -#include <netinet/in.h> + #ifdef _MSC_VER + typedef unsigned char u8; + typedef unsigned int __u32; + #else + #include <asm/types.h> + #include <netinet/in.h> + #endif #include <openssl/bn.h> #include <openssl/crypto.h> #endif @@ -31,7 +36,6 @@ #include <opensc/pkcs15.h> #include "util.h" - const char *app_name = "pkcs15-tool"; int opt_reader = -1, opt_wait = 0;
Attachments
Change History
Changed 7 years ago by richard.musil@…
-
attachment
pkcs15-tool.c.diff
added
Note: See
TracTickets for help on using
tickets.

patch to pkcs15-tool.c