diff options
author | Simon Josefsson <simon@josefsson.org> | 2009-10-14 17:22:11 +0200 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2009-10-14 17:22:11 +0200 |
commit | c54fcfeacb02927159e170b66401782d8cf706f9 (patch) | |
tree | 8db3b544d41012d44d34e171f6622a019e46883b /tests | |
parent | 32c2729e127fef1ac1d4c8c7351aedac9fdddf0e (diff) | |
download | gnutls-c54fcfeacb02927159e170b66401782d8cf706f9.tar.gz |
Fix MAC password.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pkcs12_encode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/pkcs12_encode.c b/tests/pkcs12_encode.c index 93ad3960ca..ff72f43053 100644 --- a/tests/pkcs12_encode.c +++ b/tests/pkcs12_encode.c @@ -136,13 +136,12 @@ main (void) if (ret < 0) error (EXIT_FAILURE, 0, "bag_set_key_id: %d", ret); - ret = gnutls_pkcs12_bag_encrypt (bag, "password", + ret = gnutls_pkcs12_bag_encrypt (bag, "pass", i == 0 ? GNUTLS_PKCS8_USE_PKCS12_3DES : GNUTLS_PKCS_USE_PKCS12_RC2_40); if (ret < 0) error (EXIT_FAILURE, 0, "bag_encrypt: %d", ret); - /* Set PKCS#12 structure. */ ret = gnutls_pkcs12_set_bag (pkcs12, bag); if (ret < 0) error (EXIT_FAILURE, 0, "set_bag: %d", ret); @@ -150,7 +149,8 @@ main (void) gnutls_pkcs12_bag_deinit (bag); } - ret = gnutls_pkcs12_generate_mac (pkcs12, "mac pass"); + /* MAC the structure, export and print. */ + ret = gnutls_pkcs12_generate_mac (pkcs12, "pass"); if (ret < 0) error (EXIT_FAILURE, 0, "generate_mac: %d", ret); |