diff options
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/libcrypto/cryptlib.c | 14 | ||||
| -rw-r--r-- | src/lib/libcrypto/crypto.h | 5 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/cryptlib.c | 14 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/crypto.h | 5 |
4 files changed, 4 insertions, 34 deletions
diff --git a/src/lib/libcrypto/cryptlib.c b/src/lib/libcrypto/cryptlib.c index fff59f2dfd..0f2c5970bc 100644 --- a/src/lib/libcrypto/cryptlib.c +++ b/src/lib/libcrypto/cryptlib.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: cryptlib.c,v 1.36 2015/09/13 10:02:49 miod Exp $ */ | 1 | /* $OpenBSD: cryptlib.c,v 1.37 2015/09/13 16:56:11 miod 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 | * |
| @@ -628,18 +628,6 @@ CRYPTO_get_lock_name(int type) | |||
| 628 | defined(__x86_64) || defined(__x86_64__) || defined(_M_AMD64) || defined(_M_X64) | 628 | defined(__x86_64) || defined(__x86_64__) || defined(_M_AMD64) || defined(_M_X64) |
| 629 | 629 | ||
| 630 | unsigned int OPENSSL_ia32cap_P[2]; | 630 | unsigned int OPENSSL_ia32cap_P[2]; |
| 631 | unsigned long * | ||
| 632 | OPENSSL_ia32cap_loc(void) | ||
| 633 | { | ||
| 634 | if (sizeof(long) == 4) | ||
| 635 | /* | ||
| 636 | * If 32-bit application pulls address of OPENSSL_ia32cap_P[0] | ||
| 637 | * clear second element to maintain the illusion that vector | ||
| 638 | * is 32-bit. | ||
| 639 | */ | ||
| 640 | OPENSSL_ia32cap_P[1] = 0; | ||
| 641 | return (unsigned long *)OPENSSL_ia32cap_P; | ||
| 642 | } | ||
| 643 | 631 | ||
| 644 | uint64_t | 632 | uint64_t |
| 645 | OPENSSL_cpu_caps(void) | 633 | OPENSSL_cpu_caps(void) |
diff --git a/src/lib/libcrypto/crypto.h b/src/lib/libcrypto/crypto.h index f53b858d19..f9dde6e98e 100644 --- a/src/lib/libcrypto/crypto.h +++ b/src/lib/libcrypto/crypto.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: crypto.h,v 1.38 2015/09/13 10:02:49 miod Exp $ */ | 1 | /* $OpenBSD: crypto.h,v 1.39 2015/09/13 16:56:11 miod 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 | * |
| @@ -494,9 +494,6 @@ void CRYPTO_mem_leaks_cb(CRYPTO_MEM_LEAK_CB *cb); | |||
| 494 | void OpenSSLDie(const char *file, int line, const char *assertion); | 494 | void OpenSSLDie(const char *file, int line, const char *assertion); |
| 495 | #define OPENSSL_assert(e) (void)((e) ? 0 : (OpenSSLDie(__FILE__, __LINE__, #e),1)) | 495 | #define OPENSSL_assert(e) (void)((e) ? 0 : (OpenSSLDie(__FILE__, __LINE__, #e),1)) |
| 496 | 496 | ||
| 497 | unsigned long *OPENSSL_ia32cap_loc(void); | ||
| 498 | #define OPENSSL_ia32cap (*(OPENSSL_ia32cap_loc())) | ||
| 499 | |||
| 500 | uint64_t OPENSSL_cpu_caps(void); | 497 | uint64_t OPENSSL_cpu_caps(void); |
| 501 | 498 | ||
| 502 | int OPENSSL_isservice(void); | 499 | int OPENSSL_isservice(void); |
diff --git a/src/lib/libssl/src/crypto/cryptlib.c b/src/lib/libssl/src/crypto/cryptlib.c index fff59f2dfd..0f2c5970bc 100644 --- a/src/lib/libssl/src/crypto/cryptlib.c +++ b/src/lib/libssl/src/crypto/cryptlib.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: cryptlib.c,v 1.36 2015/09/13 10:02:49 miod Exp $ */ | 1 | /* $OpenBSD: cryptlib.c,v 1.37 2015/09/13 16:56:11 miod 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 | * |
| @@ -628,18 +628,6 @@ CRYPTO_get_lock_name(int type) | |||
| 628 | defined(__x86_64) || defined(__x86_64__) || defined(_M_AMD64) || defined(_M_X64) | 628 | defined(__x86_64) || defined(__x86_64__) || defined(_M_AMD64) || defined(_M_X64) |
| 629 | 629 | ||
| 630 | unsigned int OPENSSL_ia32cap_P[2]; | 630 | unsigned int OPENSSL_ia32cap_P[2]; |
| 631 | unsigned long * | ||
| 632 | OPENSSL_ia32cap_loc(void) | ||
| 633 | { | ||
| 634 | if (sizeof(long) == 4) | ||
| 635 | /* | ||
| 636 | * If 32-bit application pulls address of OPENSSL_ia32cap_P[0] | ||
| 637 | * clear second element to maintain the illusion that vector | ||
| 638 | * is 32-bit. | ||
| 639 | */ | ||
| 640 | OPENSSL_ia32cap_P[1] = 0; | ||
| 641 | return (unsigned long *)OPENSSL_ia32cap_P; | ||
| 642 | } | ||
| 643 | 631 | ||
| 644 | uint64_t | 632 | uint64_t |
| 645 | OPENSSL_cpu_caps(void) | 633 | OPENSSL_cpu_caps(void) |
diff --git a/src/lib/libssl/src/crypto/crypto.h b/src/lib/libssl/src/crypto/crypto.h index f53b858d19..f9dde6e98e 100644 --- a/src/lib/libssl/src/crypto/crypto.h +++ b/src/lib/libssl/src/crypto/crypto.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: crypto.h,v 1.38 2015/09/13 10:02:49 miod Exp $ */ | 1 | /* $OpenBSD: crypto.h,v 1.39 2015/09/13 16:56:11 miod 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 | * |
| @@ -494,9 +494,6 @@ void CRYPTO_mem_leaks_cb(CRYPTO_MEM_LEAK_CB *cb); | |||
| 494 | void OpenSSLDie(const char *file, int line, const char *assertion); | 494 | void OpenSSLDie(const char *file, int line, const char *assertion); |
| 495 | #define OPENSSL_assert(e) (void)((e) ? 0 : (OpenSSLDie(__FILE__, __LINE__, #e),1)) | 495 | #define OPENSSL_assert(e) (void)((e) ? 0 : (OpenSSLDie(__FILE__, __LINE__, #e),1)) |
| 496 | 496 | ||
| 497 | unsigned long *OPENSSL_ia32cap_loc(void); | ||
| 498 | #define OPENSSL_ia32cap (*(OPENSSL_ia32cap_loc())) | ||
| 499 | |||
| 500 | uint64_t OPENSSL_cpu_caps(void); | 497 | uint64_t OPENSSL_cpu_caps(void); |
| 501 | 498 | ||
| 502 | int OPENSSL_isservice(void); | 499 | int OPENSSL_isservice(void); |
