summaryrefslogtreecommitdiffstats
path: root/test/rmdtest.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/rmdtest.c')
-rw-r--r--test/rmdtest.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/rmdtest.c b/test/rmdtest.c
index 7f1e72e78d..b6deaaa1f5 100644
--- a/test/rmdtest.c
+++ b/test/rmdtest.c
@@ -63,8 +63,11 @@ int main(int argc, char *argv[])
# ifdef CHARSET_EBCDIC
ebcdic2ascii(test[i], test[i], strlen(test[i]));
# endif
- EVP_Digest(test[i], strlen(test[i]), md, NULL, EVP_ripemd160(),
- NULL);
+ if (!EVP_Digest(test[i], strlen(test[i]), md, NULL, EVP_ripemd160(),
+ NULL)) {
+ printf("EVP Digest error.\n");
+ EXIT(1);
+ }
p = pt(md);
if (strcmp(p, (char *)*R) != 0) {
printf("error calculating RIPEMD160 on '%s'\n", test[i]);