summaryrefslogtreecommitdiff
path: root/lib/examples
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2012-12-17 16:11:14 +0100
committerLinus Nordberg <linus@nordberg.se>2012-12-17 16:11:14 +0100
commit09d1cff2418a900b587b2113f508984f2417cc11 (patch)
tree95dce8da09eccdeb8e70f10adcb285d7047b3120 /lib/examples
parent5b117878698519e798f928cef18eafc9dad4c15a (diff)
Add formal argument 'secret' to two public functions.
The functions are rs_packet_create_authn_request() and rs_request_create_authn(). Attributes of type PW_USER_PASSWORD are supposed to be MD5 obfuscated (see vp2data_any()). NOTE: This is a non-backward compatible API change.
Diffstat (limited to 'lib/examples')
-rw-r--r--lib/examples/client-blocking.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/examples/client-blocking.c b/lib/examples/client-blocking.c
index 1b77de3..773a26c 100644
--- a/lib/examples/client-blocking.c
+++ b/lib/examples/client-blocking.c
@@ -59,14 +59,14 @@ blocking_client (const char *config_fn, const char *configuration,
if (use_request_object_flag)
{
- if (rs_request_create_authn (conn, &request, USER_NAME, USER_PW))
+ if (rs_request_create_authn (conn, &request, USER_NAME, USER_PW, SECRET))
goto cleanup;
if (rs_request_send (request, &resp))
goto cleanup;
}
else
{
- if (rs_packet_create_authn_request (conn, &req, USER_NAME, USER_PW))
+ if (rs_packet_create_authn_request (conn, &req, USER_NAME, USER_PW, SECRET))
goto cleanup;
if (rs_packet_send (req, NULL))
goto cleanup;