diff options
author | bcook <> | 2014-08-11 13:29:43 +0000 |
---|---|---|
committer | bcook <> | 2014-08-11 13:29:43 +0000 |
commit | 061d595d7859c456aec41e57ebdd900e4087395c (patch) | |
tree | a4f8bfaf958a94c17a62073b4dac40939b15d3d8 /src/lib/libcrypto/crypto | |
parent | 1461f93ca3a5c598009914d6c1e1518f66f3c119 (diff) | |
download | openbsd-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/crypto')
-rw-r--r-- | src/lib/libcrypto/crypto/arch/amd64/Makefile.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libcrypto/crypto/arch/amd64/Makefile.inc b/src/lib/libcrypto/crypto/arch/amd64/Makefile.inc index 24f16d0a81..fe7e17df0e 100644 --- a/src/lib/libcrypto/crypto/arch/amd64/Makefile.inc +++ b/src/lib/libcrypto/crypto/arch/amd64/Makefile.inc | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile.inc,v 1.2 2014/05/06 19:55:06 miod Exp $ | 1 | # $OpenBSD: Makefile.inc,v 1.3 2014/08/11 13:29:43 bcook Exp $ |
2 | 2 | ||
3 | # amd64-specific libcrypto build rules | 3 | # amd64-specific libcrypto build rules |
4 | 4 | ||
@@ -15,6 +15,7 @@ SSLASM+= aes aesni-sha1-x86_64 | |||
15 | SRCS+= bf_enc.c | 15 | SRCS+= bf_enc.c |
16 | # bn | 16 | # bn |
17 | CFLAGS+= -DOPENSSL_IA32_SSE2 | 17 | CFLAGS+= -DOPENSSL_IA32_SSE2 |
18 | CFLAGS+= -DRSA_ASM | ||
18 | SSLASM+= bn modexp512-x86_64 | 19 | SSLASM+= bn modexp512-x86_64 |
19 | CFLAGS+= -DOPENSSL_BN_ASM_MONT | 20 | CFLAGS+= -DOPENSSL_BN_ASM_MONT |
20 | SSLASM+= bn x86_64-mont | 21 | SSLASM+= bn x86_64-mont |
@@ -31,6 +32,7 @@ SSLASM+= md5 md5-x86_64 | |||
31 | CFLAGS+= -DGHASH_ASM | 32 | CFLAGS+= -DGHASH_ASM |
32 | SSLASM+= modes ghash-x86_64 | 33 | SSLASM+= modes ghash-x86_64 |
33 | # rc4 | 34 | # rc4 |
35 | CFLAGS+= -DRC4_MD5_ASM | ||
34 | SSLASM+= rc4 rc4-x86_64 | 36 | SSLASM+= rc4 rc4-x86_64 |
35 | SSLASM+= rc4 rc4-md5-x86_64 | 37 | SSLASM+= rc4 rc4-md5-x86_64 |
36 | # ripemd | 38 | # ripemd |