diff options
| author | Miloslav Trmač <mitr@redhat.com> | 2010-12-02 16:02:56 +0100 |
|---|---|---|
| committer | Miloslav Trmač <mitr@redhat.com> | 2010-12-02 16:02:56 +0100 |
| commit | 87e5a1d6a40de880a85eefb4fb6479ff4238860d (patch) | |
| tree | d4a4ca1c84b68a50f954778ebf6ec234810a16ac /tests | |
| parent | a2dd3a2b9045b5a787e0981bef2f378ab148ac1f (diff) | |
Use NSS for random number generation
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/symm_ciphers.c | 4 | ||||
| -rw-r--r-- | tests/symm_keys.c | 5 | ||||
| -rw-r--r-- | tests/symm_signatures.c | 4 |
3 files changed, 13 insertions, 0 deletions
diff --git a/tests/symm_ciphers.c b/tests/symm_ciphers.c index 892cfed..bdc29d3 100644 --- a/tests/symm_ciphers.c +++ b/tests/symm_ciphers.c @@ -403,5 +403,9 @@ main (void) res = ncr_symm_cipher_free (sess); assert (res == CKR_OK); + /* Close the implicit reference, primarily to shut up valgrind. */ + res = ncr_close (); + assert (res == CKR_OK); + return EXIT_SUCCESS; } diff --git a/tests/symm_keys.c b/tests/symm_keys.c index 3f5aed0..5c64070 100644 --- a/tests/symm_keys.c +++ b/tests/symm_keys.c @@ -135,5 +135,10 @@ main (void) res = ncr_symm_key_destroy (key); assert (res == CKR_OK); + + /* Close the implicit reference, primarily to shut up valgrind. */ + res = ncr_close (); + assert (res == CKR_OK); + return EXIT_SUCCESS; } diff --git a/tests/symm_signatures.c b/tests/symm_signatures.c index fa672fd..69eb8eb 100644 --- a/tests/symm_signatures.c +++ b/tests/symm_signatures.c @@ -361,5 +361,9 @@ main (void) assert (res == CKR_OK); } + /* Close the implicit reference, primarily to shut up valgrind. */ + res = ncr_close (); + assert (res == CKR_OK); + return EXIT_SUCCESS; } |
