diff options
Diffstat (limited to 'test/md5test.c')
-rw-r--r-- | test/md5test.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/md5test.c b/test/md5test.c index f39b907dcf..ec6c692407 100644 --- a/test/md5test.c +++ b/test/md5test.c @@ -56,7 +56,11 @@ int main(int argc, char *argv[]) R = ret; i = 1; while (*P != NULL) { - EVP_Digest(&(P[0][0]), strlen((char *)*P), md, NULL, EVP_md5(), NULL); + if (!EVP_Digest(&(P[0][0]), strlen((char *)*P), md, NULL, EVP_md5(), + NULL)) { + printf("EVP Digest error.\n"); + EXIT(1); + } p = pt(md); if (strcmp(p, (char *)*R) != 0) { printf("error calculating MD5 on '%s'\n", *P); |