summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/engine/eng_rsax.c
diff options
context:
space:
mode:
authorbcook <>2014-08-11 13:29:43 +0000
committerbcook <>2014-08-11 13:29:43 +0000
commit061d595d7859c456aec41e57ebdd900e4087395c (patch)
treea4f8bfaf958a94c17a62073b4dac40939b15d3d8 /src/lib/libcrypto/engine/eng_rsax.c
parent1461f93ca3a5c598009914d6c1e1518f66f3c119 (diff)
downloadopenbsd-061d595d7859c456aec41e57ebdd900e4087395c.tar.gz
openbsd-061d595d7859c456aec41e57ebdd900e4087395c.tar.bz2
openbsd-061d595d7859c456aec41e57ebdd900e4087395c.zip
Guard RSA / RC4-5 ASM when NO_ASM is not defined
Most assembly blocks remain inactive if OPENSSL_NO_ASM is not defined, only enabling inline assembly, but the RSA / RC4-5 blocks (used only in amd64 systems) turn on implicitly. Guard these two as well. This simplifies enabling just inline ASM in portable, no effective change in OpenBSD.
Diffstat (limited to 'src/lib/libcrypto/engine/eng_rsax.c')
-rw-r--r--src/lib/libcrypto/engine/eng_rsax.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/libcrypto/engine/eng_rsax.c b/src/lib/libcrypto/engine/eng_rsax.c
index 358dac2088..728b89d5f3 100644
--- a/src/lib/libcrypto/engine/eng_rsax.c
+++ b/src/lib/libcrypto/engine/eng_rsax.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: eng_rsax.c,v 1.10 2014/07/12 16:03:37 miod Exp $ */ 1/* $OpenBSD: eng_rsax.c,v 1.11 2014/08/11 13:29:43 bcook Exp $ */
2/* Copyright (c) 2010-2010 Intel Corp. 2/* Copyright (c) 2010-2010 Intel Corp.
3 * Author: Vinodh.Gopal@intel.com 3 * Author: Vinodh.Gopal@intel.com
4 * Jim Guilford 4 * Jim Guilford
@@ -81,8 +81,9 @@
81/* RSAX is available **ONLY* on x86_64 CPUs */ 81/* RSAX is available **ONLY* on x86_64 CPUs */
82#undef COMPILE_RSAX 82#undef COMPILE_RSAX
83 83
84#if (defined(__x86_64) || defined(__x86_64__) || \ 84#if !defined(OPENSSL_NO_ASM) && defined(RSA_ASM) && \
85 defined(_M_AMD64) || defined (_M_X64)) && !defined(OPENSSL_NO_ASM) 85 (defined(__x86_64) || defined(__x86_64__) || \
86 defined(_M_AMD64) || defined (_M_X64))
86#define COMPILE_RSAX 87#define COMPILE_RSAX
87static ENGINE *ENGINE_rsax (void); 88static ENGINE *ENGINE_rsax (void);
88#endif 89#endif