projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix leak
[openssl.git]
/
crypto
/
evp
/
evp_test.c
diff --git
a/crypto/evp/evp_test.c
b/crypto/evp/evp_test.c
index b8c9235d3e3f5328ae8f668491ea7c74dda2a495..55c7cdfdccf2b75e8c82336f120b4d9b6e8138a3 100644
(file)
--- a/
crypto/evp/evp_test.c
+++ b/
crypto/evp/evp_test.c
@@
-153,8
+153,8
@@
static void test1(const EVP_CIPHER *c,const unsigned char *key,int kn,
if(kn != c->key_len)
{
if(kn != c->key_len)
{
- fprintf(stderr,"Key length doesn't match, got %d expected %
d
\n",kn,
- c->key_len);
+ fprintf(stderr,"Key length doesn't match, got %d expected %
lu
\n",kn,
+
(unsigned long)
c->key_len);
test1_exit(5);
}
EVP_CIPHER_CTX_init(&ctx);
test1_exit(5);
}
EVP_CIPHER_CTX_init(&ctx);
@@
-220,18
+220,18
@@
static void test1(const EVP_CIPHER *c,const unsigned char *key,int kn,
test1_exit(7);
}
test1_exit(7);
}
- if(outl+outl2 !=
c
n)
+ if(outl+outl2 !=
p
n)
{
fprintf(stderr,"Plaintext length mismatch got %d expected %d\n",
{
fprintf(stderr,"Plaintext length mismatch got %d expected %d\n",
- outl+outl2,
c
n);
+ outl+outl2,
p
n);
test1_exit(8);
}
test1_exit(8);
}
- if(memcmp(out,plaintext,
c
n))
+ if(memcmp(out,plaintext,
p
n))
{
fprintf(stderr,"Plaintext mismatch\n");
{
fprintf(stderr,"Plaintext mismatch\n");
- hexdump(stderr,"Got",out,
c
n);
- hexdump(stderr,"Expected",plaintext,
c
n);
+ hexdump(stderr,"Got",out,
p
n);
+ hexdump(stderr,"Expected",plaintext,
p
n);
test1_exit(9);
}
}
test1_exit(9);
}
}
@@
-435,6
+435,7
@@
int main(int argc,char **argv)
EXIT(3);
}
}
EXIT(3);
}
}
+ fclose(f);
#ifndef OPENSSL_NO_ENGINE
ENGINE_cleanup();
#ifndef OPENSSL_NO_ENGINE
ENGINE_cleanup();