X-Git-Url: https://git.openssl.org/gitweb/?a=blobdiff_plain;f=crypto%2Fsha%2Fsha512t.c;h=7385469beef60072b7a4194bfa01d5b6c6306ff6;hb=2b247cf81fbc320a313f952e2ea39cf63aa21010;hp=96a71efb8e79bc96a267229fe0a58d296e7093ce;hpb=746fc2526ffc17d57a5fb87568d01400cbcf62fd;p=openssl.git diff --git a/crypto/sha/sha512t.c b/crypto/sha/sha512t.c index 96a71efb8e..7385469bee 100644 --- a/crypto/sha/sha512t.c +++ b/crypto/sha/sha512t.c @@ -9,6 +9,7 @@ #include #include +#include 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 - { 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"))) - OPENSSL_ia32cap = strtol (env,NULL,0); + OPENSSL_ia32cap = strtoul (env,NULL,0); } #endif