Improve the definition of STITCHED_CALL in e_rc4_hmac_md5.c
authorRichard Levitte <levitte@openssl.org>
Fri, 26 Aug 2016 07:59:55 +0000 (09:59 +0200)
committerRichard Levitte <levitte@openssl.org>
Fri, 26 Aug 2016 19:19:18 +0000 (21:19 +0200)
commit06a549c435d6095b33d78f136904c5fc2f7bcf24
tree072fc043b405b90b0b71e4111be21ad5ac6df09e
parenta404656a8b40d9f1172e5e330f7e2d9d87cabab8
Improve the definition of STITCHED_CALL in e_rc4_hmac_md5.c

The definition of STITCHED_CALL relies on OPENSSL_NO_ASM.  However,
when a configuration simply lacks the assembler implementation for RC4
(which is where we have implemented the stitched call), OPENSSL_NO_ASM
isn't implemented.  Better, then, to rely on specific macros that
indicated that RC4 (and MD5) are implemented in assembler.

For this to work properly, we must also make sure Configure adds the
definition of RC4_ASM among the C flags.

(partly cherry picked from commit 216e8d91033d237880cff7da0d02d46d47bae41b)

Reviewed-by: Andy Polyakov <appro@openssl.org>
Configure
crypto/evp/e_rc4_hmac_md5.c