Return an error if no recipient type matches.
[openssl.git] / crypto / md2 / md2test.c
index 13cbec4ab08c0fccae0ddcb977caf2f640cf0096..db5f5bc6d20e6adda0b496f2320f747b9956b498 100644 (file)
@@ -110,7 +110,7 @@ int main(int argc, char *argv[])
        i=1;
        while (*P != NULL)
                {
-               EVP_Digest((unsigned char *)*P,(unsigned long)strlen(*P),md,NULL,EVP_md2(), NULL);
+               EVP_Digest((unsigned char *)*P,strlen(*P),md,NULL,EVP_md2(), NULL);
                p=pt(md);
                if (strcmp(p,*R) != 0)
                        {
@@ -128,6 +128,7 @@ int main(int argc, char *argv[])
     if (err) printf("ERROR: %d\n", err);
 #endif
        EXIT(err);
+       return err;
        }
 
 static char *pt(unsigned char *md)