projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PR: 2632
[oweals/openssl.git]
/
crypto
/
sha
/
sha512t.c
diff --git
a/crypto/sha/sha512t.c
b/crypto/sha/sha512t.c
index 96a71efb8e79bc96a267229fe0a58d296e7093ce..210041d435c6d06f5bce7a9c8493f8e732e80e31 100644
(file)
--- a/
crypto/sha/sha512t.c
+++ b/
crypto/sha/sha512t.c
@@
-9,6
+9,15
@@
#include <openssl/sha.h>
#include <openssl/evp.h>
#include <openssl/sha.h>
#include <openssl/evp.h>
+#include <openssl/crypto.h>
+
+#if defined(OPENSSL_NO_SHA) || defined(OPENSSL_NO_SHA512)
+int main(int argc, char *argv[])
+{
+ printf("No SHA512 support\n");
+ return(0);
+}
+#else
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,
@@
-64,17
+73,18
@@
unsigned char app_d3[SHA384_DIGEST_LENGTH] = {
0x07,0xb8,0xb3,0xdc,0x38,0xec,0xc4,0xeb,
0xae,0x97,0xdd,0xd8,0x7f,0x3d,0x89,0x85 };
0x07,0xb8,0xb3,0xdc,0x38,0xec,0xc4,0xeb,
0xae,0x97,0xdd,0xd8,0x7f,0x3d,0x89,0x85 };
-int main ()
+int main (
int argc,char **argv
)
{ unsigned char md[SHA512_DIGEST_LENGTH];
int i;
EVP_MD_CTX evp;
#ifdef OPENSSL_IA32_SSE2
{ unsigned char md[SHA512_DIGEST_LENGTH];
int i;
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
@@
-171,3
+181,4
@@
int main ()
return 0;
}
return 0;
}
+#endif