projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
OPENSSL_ia32cap final touches. Note that OPENSSL_ia32cap is no longer a
[openssl.git]
/
crypto
/
sha
/
sha512t.c
diff --git
a/crypto/sha/sha512t.c
b/crypto/sha/sha512t.c
index 96a71efb8e79bc96a267229fe0a58d296e7093ce..7385469beef60072b7a4194bfa01d5b6c6306ff6 100644
(file)
--- a/
crypto/sha/sha512t.c
+++ b/
crypto/sha/sha512t.c
@@
-9,6
+9,7
@@
#include <openssl/sha.h>
#include <openssl/evp.h>
#include <openssl/sha.h>
#include <openssl/evp.h>
+#include <openssl/crypto.h>
unsigned char app_c1[SHA512_DIGEST_LENGTH] = {
0xdd,0xaf,0x35,0xa1,0x93,0x61,0x7a,0xba,
unsigned char app_c1[SHA512_DIGEST_LENGTH] = {
0xdd,0xaf,0x35,0xa1,0x93,0x61,0x7a,0xba,
@@
-70,11
+71,12
@@
int main ()
EVP_MD_CTX evp;
#ifdef OPENSSL_IA32_SSE2
EVP_MD_CTX evp;
#ifdef OPENSSL_IA32_SSE2
- { extern int OPENSSL_ia32cap;
- char *env;
+ /* Alternative to this is to call OpenSSL_add_all_algorithms...
+ * The below code is retained exclusively for debugging purposes. */
+ { char *env;
if ((env=getenv("OPENSSL_ia32cap")))
if ((env=getenv("OPENSSL_ia32cap")))
- OPENSSL_ia32cap = strtol (env,NULL,0);
+ OPENSSL_ia32cap = strto
u
l (env,NULL,0);
}
#endif
}
#endif