use uint32_t, it is a c++ stdtype and should work on all plattforms.

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2369 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
aj 2005-06-28 20:33:32 +00:00
parent e5ee45ace1
commit d3ab255406
1 changed files with 4 additions and 11 deletions

View File

@ -22,14 +22,7 @@
#include <config.h>
#endif
#ifdef HAVE_OPENSSL
#if defined(_WIN32)
typedef unsigned long __u32;
#elif defined(__APPLE__)
#include <stdint.h>
typedef uint32_t __u32;
#else
#include <asm/types.h>
#include <netinet/in.h>
#endif
#include <openssl/bn.h>
#include <openssl/crypto.h>
@ -637,8 +630,8 @@ static int read_ssh_key(void)
if (pubkey->algorithm == SC_ALGORITHM_RSA) {
char buf[2048];
char *uu;
__u32 len;
__u32 n;
uint32_t len;
uint32_t n;
buf[0]=0;
buf[1]=0;
@ -689,8 +682,8 @@ static int read_ssh_key(void)
if (pubkey->algorithm == SC_ALGORITHM_DSA) {
char buf[2048];
char *uu;
__u32 len;
__u32 n;
uint32_t len;
uint32_t n;
buf[0]=0;
buf[1]=0;