Revert "Add formal argument 'secret' to two public functions."
[libradsec.git] / lib / examples / client-blocking.c
index c4d5f84..cce00bf 100644 (file)
@@ -1,4 +1,4 @@
-/* RADIUS/RadSec client doing blocking i/o.  */
+/* RADIUS/RadSec client using libradsec in blocking mode. */
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -55,14 +55,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, SECRET))
+      if (rs_request_create_authn (conn, &request, USER_NAME, USER_PW))
        goto cleanup;
       if (rs_request_send (request, &resp))
        goto cleanup;
     }
   else
     {
-      if (rs_packet_create_authn_request (conn, &req, USER_NAME, USER_PW, SECRET))
+      if (rs_packet_create_authn_request (conn, &req, USER_NAME, USER_PW))
        goto cleanup;
       if (rs_packet_send (req, NULL))
        goto cleanup;