summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp/evp_test.c
diff options
context:
space:
mode:
authordjm <>2009-04-06 06:30:08 +0000
committerdjm <>2009-04-06 06:30:08 +0000
commit5d1f64994b96668ba794f5211364ed54dd7ee08d (patch)
tree6e736297805c79ec70ef2ba631b5dbb38c60ef68 /src/lib/libcrypto/evp/evp_test.c
parent76dd4d55fdccad54d20608e7caf577b9d67b216f (diff)
downloadopenbsd-5d1f64994b96668ba794f5211364ed54dd7ee08d.tar.gz
openbsd-5d1f64994b96668ba794f5211364ed54dd7ee08d.tar.bz2
openbsd-5d1f64994b96668ba794f5211364ed54dd7ee08d.zip
import of OpenSSL 0.9.8k
Diffstat (limited to 'src/lib/libcrypto/evp/evp_test.c')
-rw-r--r--src/lib/libcrypto/evp/evp_test.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libcrypto/evp/evp_test.c b/src/lib/libcrypto/evp/evp_test.c
index bb6f02c2e9..436be20bf1 100644
--- a/src/lib/libcrypto/evp/evp_test.c
+++ b/src/lib/libcrypto/evp/evp_test.c
@@ -220,18 +220,18 @@ static void test1(const EVP_CIPHER *c,const unsigned char *key,int kn,
220 test1_exit(7); 220 test1_exit(7);
221 } 221 }
222 222
223 if(outl+outl2 != cn) 223 if(outl+outl2 != pn)
224 { 224 {
225 fprintf(stderr,"Plaintext length mismatch got %d expected %d\n", 225 fprintf(stderr,"Plaintext length mismatch got %d expected %d\n",
226 outl+outl2,cn); 226 outl+outl2,pn);
227 test1_exit(8); 227 test1_exit(8);
228 } 228 }
229 229
230 if(memcmp(out,plaintext,cn)) 230 if(memcmp(out,plaintext,pn))
231 { 231 {
232 fprintf(stderr,"Plaintext mismatch\n"); 232 fprintf(stderr,"Plaintext mismatch\n");
233 hexdump(stderr,"Got",out,cn); 233 hexdump(stderr,"Got",out,pn);
234 hexdump(stderr,"Expected",plaintext,cn); 234 hexdump(stderr,"Expected",plaintext,pn);
235 test1_exit(9); 235 test1_exit(9);
236 } 236 }
237 } 237 }