]>
Commit | Line | Data |
---|---|---|
92ae11e3 SS |
1 | From bb53631c770d287dfc9b130754ce3f9320c8b3d4 Mon Sep 17 00:00:00 2001 |
2 | From: Lukas Slebodnik <lslebodn@redhat.com> | |
3 | Date: Wed, 19 Oct 2016 16:55:37 +0200 | |
4 | Subject: [PATCH 04/39] crypto-tests: Rename encrypt decrypt test case | |
5 | ||
6 | libsss_crypto provide 2 pairs of encrypt + decrypt functions. | |
7 | sss_password_encrypt + sss_password_decrypt and more generic | |
8 | sss_encrypt + sss_decrypt. | |
9 | ||
10 | The name of one test case was a little bit confusing. | |
11 | It evokes that different pair of functions were tested. | |
12 | ||
13 | Reviewed-by: Christian Heimes <cheimes@redhat.com> | |
14 | (cherry picked from commit 96d239e83e671b82525cec760cf0bcaa5ee1c249) | |
15 | (cherry picked from commit 579daa9099acf848e1062a48a7cd3a5e923da349) | |
16 | --- | |
17 | src/tests/crypto-tests.c | 4 ++-- | |
18 | 1 file changed, 2 insertions(+), 2 deletions(-) | |
19 | ||
20 | diff --git a/src/tests/crypto-tests.c b/src/tests/crypto-tests.c | |
21 | index a4074e474..c7f0edbb3 100644 | |
22 | --- a/src/tests/crypto-tests.c | |
23 | +++ b/src/tests/crypto-tests.c | |
24 | @@ -48,7 +48,7 @@ START_TEST(test_nss_init) | |
25 | END_TEST | |
26 | #endif | |
27 | ||
28 | -START_TEST(test_encrypt_decrypt) | |
29 | +START_TEST(test_sss_password_encrypt_decrypt) | |
30 | { | |
31 | const char *password[] = { "test123", /* general */ | |
32 | "12345678901234567", /* just above blocksize */ | |
33 | @@ -211,7 +211,7 @@ Suite *crypto_suite(void) | |
34 | #ifdef HAVE_NSS | |
35 | tcase_add_test(tc, test_nss_init); | |
36 | #endif | |
37 | - tcase_add_test(tc, test_encrypt_decrypt); | |
38 | + tcase_add_test(tc, test_sss_password_encrypt_decrypt); | |
39 | tcase_add_test(tc, test_hmac_sha1); | |
40 | tcase_add_test(tc, test_base64_encode); | |
41 | tcase_add_test(tc, test_base64_decode); | |
42 | -- | |
43 | 2.11.0 | |
44 |