projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New Configure option no-<cipher> (rsa, idea, rc5, ...).
[openssl.git]
/
crypto
/
sha
/
shatest.c
diff --git
a/crypto/sha/shatest.c
b/crypto/sha/shatest.c
index 4e201ed7ea1d4619eabe2ac1d02275224b3e58e5..6ebcbb13daf7415f98c9e34dde089928777b884a 100644
(file)
--- a/
crypto/sha/shatest.c
+++ b/
crypto/sha/shatest.c
@@
-59,6
+59,14
@@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
+
+#ifdef NO_SHA
+int main(int argc, char *argv[])
+{
+ printf("No SHA support\n");
+ return(0);
+}
+#else
#include <openssl/sha.h>
#define SHA_0 /* FIPS 180 */
#include <openssl/sha.h>
#define SHA_0 /* FIPS 180 */
@@
-145,3
+153,4
@@
static char *pt(unsigned char *md)
sprintf(&(buf[i*2]),"%02x",md[i]);
return(buf);
}
sprintf(&(buf[i*2]),"%02x",md[i]);
return(buf);
}
+#endif