diff options
Diffstat (limited to 'src/lib/libcrypto/cryptlib.c')
-rw-r--r-- | src/lib/libcrypto/cryptlib.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/libcrypto/cryptlib.c b/src/lib/libcrypto/cryptlib.c index dc92ac89fe..896e3d39cf 100644 --- a/src/lib/libcrypto/cryptlib.c +++ b/src/lib/libcrypto/cryptlib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: cryptlib.c,v 1.34 2015/01/22 03:56:27 bcook Exp $ */ | 1 | /* $OpenBSD: cryptlib.c,v 1.35 2015/06/27 22:42:02 doug Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -114,7 +114,9 @@ | |||
114 | * SUN MICROSYSTEMS, INC., and contributed to the OpenSSL project. | 114 | * SUN MICROSYSTEMS, INC., and contributed to the OpenSSL project. |
115 | */ | 115 | */ |
116 | 116 | ||
117 | #include <limits.h> | ||
117 | #include <stdarg.h> | 118 | #include <stdarg.h> |
119 | #include <stdint.h> | ||
118 | #include <string.h> | 120 | #include <string.h> |
119 | #include <unistd.h> | 121 | #include <unistd.h> |
120 | 122 | ||
@@ -431,9 +433,9 @@ CRYPTO_THREADID_set_pointer(CRYPTO_THREADID *id, void *ptr) | |||
431 | { | 433 | { |
432 | memset(id, 0, sizeof(*id)); | 434 | memset(id, 0, sizeof(*id)); |
433 | id->ptr = ptr; | 435 | id->ptr = ptr; |
434 | #if LONG_MAX >= INTPTR_MAX | 436 | #if ULONG_MAX >= UINTPTR_MAX |
435 | /*s u 'ptr' can be embedded in 'val' without loss of uniqueness */ | 437 | /*s u 'ptr' can be embedded in 'val' without loss of uniqueness */ |
436 | id->val = (unsigned long)id->ptr; | 438 | id->val = (uintptr_t)id->ptr; |
437 | #else | 439 | #else |
438 | { | 440 | { |
439 | SHA256_CTX ctx; | 441 | SHA256_CTX ctx; |