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