diff options
author | Stef Walter <stefw@collabora.co.uk> | 2011-06-24 16:36:50 +0200 |
---|---|---|
committer | Stef Walter <stefw@collabora.co.uk> | 2011-07-06 12:49:26 +0200 |
commit | 1ff1a4895b2d5ff5fe559b96034fb1c3855d4b45 (patch) | |
tree | 6341bfd294f6d0790749827377c577fad9044496 /tests | |
parent | fd7dee836d0b14efc48bf59955c8a12a72561043 (diff) |
Add documentation for PIN callbacks.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pin-test.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/pin-test.c b/tests/pin-test.c index 086f892..6431857 100644 --- a/tests/pin-test.c +++ b/tests/pin-test.c @@ -94,7 +94,7 @@ test_pin_read (CuTest *tc) &data, destroy_data); uri = p11_kit_uri_new (); - pin = p11_kit_pin_retrieve ("/the/pinfile", uri, "The token", + pin = p11_kit_pin_request ("/the/pinfile", uri, "The token", P11_KIT_PIN_FLAGS_USER_LOGIN); p11_kit_uri_free (uri); @@ -117,7 +117,7 @@ test_pin_read_no_match (CuTest *tc) P11KitPin *pin; uri = p11_kit_uri_new (); - pin = p11_kit_pin_retrieve ("/the/pinfile", uri, "The token", + pin = p11_kit_pin_request ("/the/pinfile", uri, "The token", P11_KIT_PIN_FLAGS_USER_LOGIN); p11_kit_uri_free (uri); @@ -142,7 +142,7 @@ test_pin_register_duplicate (CuTest *tc) p11_kit_pin_register_callback ("/the/pinfile", callback_other, value, NULL); - pin = p11_kit_pin_retrieve ("/the/pinfile", uri, "The token", + pin = p11_kit_pin_request ("/the/pinfile", uri, "The token", P11_KIT_PIN_FLAGS_USER_LOGIN); CuAssertPtrNotNull (tc, pin); @@ -154,7 +154,7 @@ test_pin_register_duplicate (CuTest *tc) p11_kit_pin_unregister_callback ("/the/pinfile", callback_other, value); - pin = p11_kit_pin_retrieve ("/the/pinfile", uri, "The token", + pin = p11_kit_pin_request ("/the/pinfile", uri, "The token", P11_KIT_PIN_FLAGS_USER_LOGIN); CuAssertPtrNotNull (tc, pin); @@ -166,7 +166,7 @@ test_pin_register_duplicate (CuTest *tc) p11_kit_pin_unregister_callback ("/the/pinfile", callback_one, &data); - pin = p11_kit_pin_retrieve ("/the/pinfile", uri, "The token", + pin = p11_kit_pin_request ("/the/pinfile", uri, "The token", P11_KIT_PIN_FLAGS_USER_LOGIN); CuAssertPtrEquals (tc, NULL, pin); @@ -189,7 +189,7 @@ test_pin_register_fallback (CuTest *tc) p11_kit_pin_register_callback (P11_KIT_PIN_FALLBACK, callback_one, &data, destroy_data); - pin = p11_kit_pin_retrieve ("/the/pinfile", uri, "The token", + pin = p11_kit_pin_request ("/the/pinfile", uri, "The token", P11_KIT_PIN_FLAGS_USER_LOGIN); CuAssertPtrNotNull (tc, pin); @@ -201,7 +201,7 @@ test_pin_register_fallback (CuTest *tc) p11_kit_pin_register_callback ("/the/pinfile", callback_other, value, NULL); - pin = p11_kit_pin_retrieve ("/the/pinfile", uri, "The token", + pin = p11_kit_pin_request ("/the/pinfile", uri, "The token", P11_KIT_PIN_FLAGS_USER_LOGIN); CuAssertPtrNotNull (tc, pin); @@ -232,7 +232,7 @@ test_pin_file (CuTest *tc) p11_kit_pin_register_callback (P11_KIT_PIN_FALLBACK, p11_kit_pin_file_callback, NULL, NULL); - pin = p11_kit_pin_retrieve (SRCDIR "/files/test-pinfile", uri, "The token", + pin = p11_kit_pin_request (SRCDIR "/files/test-pinfile", uri, "The token", P11_KIT_PIN_FLAGS_USER_LOGIN); CuAssertPtrNotNull (tc, pin); @@ -241,7 +241,7 @@ test_pin_file (CuTest *tc) CuAssertTrue (tc, memcmp (ptr, "yogabbagabba", length) == 0); p11_kit_pin_unref (pin); - pin = p11_kit_pin_retrieve (SRCDIR "/files/nonexistant", uri, "The token", + pin = p11_kit_pin_request (SRCDIR "/files/nonexistant", uri, "The token", P11_KIT_PIN_FLAGS_USER_LOGIN); CuAssertPtrEquals (tc, NULL, pin); |