projects
/
libradsec.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c682577
)
Follow API change in tests.
author
Linus Nordberg
<linus@nordberg.se>
Mon, 6 May 2013 10:01:00 +0000
(12:01 +0200)
committer
Linus Nordberg
<linus@nordberg.se>
Wed, 8 May 2013 15:04:15 +0000
(17:04 +0200)
lib/tests/test-udp.c
patch
|
blob
|
history
diff --git
a/lib/tests/test-udp.c
b/lib/tests/test-udp.c
index
7c2e73c
..
7ad340a
100644
(file)
--- a/
lib/tests/test-udp.c
+++ b/
lib/tests/test-udp.c
@@
-16,7
+16,7
@@
authenticate (struct rs_connection *conn, const char *user, const char *pw)
struct rs_packet *msg, *resp;
CU_ASSERT (rs_request_create (conn, &req) == 0);
struct rs_packet *msg, *resp;
CU_ASSERT (rs_request_create (conn, &req) == 0);
- CU_ASSERT (!rs_packet_create_authn_request (conn, &msg, user, pw
, "sikrit"
));
+ CU_ASSERT (!rs_packet_create_authn_request (conn, &msg, user, pw));
rs_request_add_reqpkt (req, msg);
CU_ASSERT (rs_request_send (req, &resp) == 0);
//printf ("%s\n", rs_err_msg (rs_err_conn_pop (conn), 1));
rs_request_add_reqpkt (req, msg);
CU_ASSERT (rs_request_send (req, &resp) == 0);
//printf ("%s\n", rs_err_msg (rs_err_conn_pop (conn), 1));
@@
-30,10
+30,8
@@
send_more_than_one_msg_in_one_packet (struct rs_connection *conn)
{
struct rs_packet *msg0, *msg1;
{
struct rs_packet *msg0, *msg1;
- CU_ASSERT (rs_packet_create_authn_request (conn, &msg0, NULL, NULL, "sikrit")
- == 0);
- CU_ASSERT (rs_packet_create_authn_request (conn, &msg1, NULL, NULL, "sikrit")
- == 0);
+ CU_ASSERT (rs_packet_create_authn_request (conn, &msg0, NULL, NULL) == 0);
+ CU_ASSERT (rs_packet_create_authn_request (conn, &msg1, NULL, NULL) == 0);
CU_ASSERT (rs_packet_send (msg0, NULL) == 0);
CU_ASSERT (rs_packet_send (msg1, NULL) == 0);
}
CU_ASSERT (rs_packet_send (msg0, NULL) == 0);
CU_ASSERT (rs_packet_send (msg1, NULL) == 0);
}