diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libssl/src/ssl/ssl_ciph.c | 6 | ||||
-rw-r--r-- | src/lib/libssl/ssl_ciph.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libssl/src/ssl/ssl_ciph.c b/src/lib/libssl/src/ssl/ssl_ciph.c index 42fdaad338..46f1697fec 100644 --- a/src/lib/libssl/src/ssl/ssl_ciph.c +++ b/src/lib/libssl/src/ssl/ssl_ciph.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_ciph.c,v 1.82 2015/09/13 09:10:01 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_ciph.c,v 1.83 2015/09/13 12:34:02 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -1361,8 +1361,8 @@ ssl_cipher_process_rulestr(const char *rule_str, CIPHER_ORDER **head_p, | |||
1361 | static inline int | 1361 | static inline int |
1362 | ssl_aes_is_accelerated(void) | 1362 | ssl_aes_is_accelerated(void) |
1363 | { | 1363 | { |
1364 | #if defined(__x86_64__) | 1364 | #if defined(__i386__) || defined(__x86_64__) |
1365 | return ((OPENSSL_ia32cap_loc()[0] & (1UL << 57)) != 0); | 1365 | return ((OPENSSL_cpu_caps() & (1ULL << 57)) != 0); |
1366 | #else | 1366 | #else |
1367 | return (0); | 1367 | return (0); |
1368 | #endif | 1368 | #endif |
diff --git a/src/lib/libssl/ssl_ciph.c b/src/lib/libssl/ssl_ciph.c index 42fdaad338..46f1697fec 100644 --- a/src/lib/libssl/ssl_ciph.c +++ b/src/lib/libssl/ssl_ciph.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_ciph.c,v 1.82 2015/09/13 09:10:01 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_ciph.c,v 1.83 2015/09/13 12:34:02 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -1361,8 +1361,8 @@ ssl_cipher_process_rulestr(const char *rule_str, CIPHER_ORDER **head_p, | |||
1361 | static inline int | 1361 | static inline int |
1362 | ssl_aes_is_accelerated(void) | 1362 | ssl_aes_is_accelerated(void) |
1363 | { | 1363 | { |
1364 | #if defined(__x86_64__) | 1364 | #if defined(__i386__) || defined(__x86_64__) |
1365 | return ((OPENSSL_ia32cap_loc()[0] & (1UL << 57)) != 0); | 1365 | return ((OPENSSL_cpu_caps() & (1ULL << 57)) != 0); |
1366 | #else | 1366 | #else |
1367 | return (0); | 1367 | return (0); |
1368 | #endif | 1368 | #endif |