From 9666a5b5d4ccab233f0a9dd2e040f5d35499e909 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Thu, 10 May 2007 22:01:54 +0000 Subject: [PATCH] test the difference between "" and NULL password. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20662 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hcrypto/test_pkcs12.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/hcrypto/test_pkcs12.c b/lib/hcrypto/test_pkcs12.c index f4a05ce37..9c22ccd2f 100644 --- a/lib/hcrypto/test_pkcs12.c +++ b/lib/hcrypto/test_pkcs12.c @@ -69,6 +69,15 @@ struct tests p12_pbe_tests[] = { EVP_sha1, "\xd7\x2d\xd4\xcf\x7e\xe1\x89\xc5\xb5\xe5\x31\xa7\x63\x2c\xf0\x4b" }, + { PKCS12_KEY_ID, + "", + "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", + 16, + 100, + 16, + EVP_sha1, + "\x00\x54\x91\xaf\xc0\x6a\x76\xc3\xf9\xb6\xf2\x28\x1a\x15\xd9\xfe" + }, { PKCS12_KEY_ID, "foobar", "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00",