Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
sofia-sip
Commits
214a3650
Commit
214a3650
authored
Jan 14, 2011
by
Pekka Pessi
Browse files
iptsec: test HA1+Digest pseudoscheme
parent
deae81b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
libsofia-sip-ua/iptsec/test_auth_digest.c
libsofia-sip-ua/iptsec/test_auth_digest.c
+20
-0
No files found.
libsofia-sip-ua/iptsec/test_auth_digest.c
View file @
214a3650
...
...
@@ -895,6 +895,26 @@ int test_digest_client(void)
reinit_as
(
as
);
auth_mod_check_client
(
am
,
as
,
sip
->
sip_authorization
,
ach
);
TEST
(
as
->
as_status
,
0
);
aucs
=
NULL
;
/* Test HA1+Digest */
reinit_as
(
as
);
auth_mod_check_client
(
am
,
as
,
NULL
,
ach
);
TEST
(
as
->
as_status
,
401
);
TEST
(
auc_challenge
(
&
aucs
,
home
,
(
msg_auth_t
*
)
as
->
as_response
,
sip_authorization_class
),
1
);
TEST
(
auc_all_credentials
(
&
aucs
,
"HA1+Digest"
,
"
\"
ims3.so.noklab.net
\"
"
,
"user1"
,
"HA1+c0890ff7a4fadc50c45f392ec4312965"
),
1
);
msg_header_remove
(
m2
,
(
void
*
)
sip
,
(
void
*
)
sip
->
sip_authorization
);
TEST
(
auc_authorization
(
&
aucs
,
m2
,
(
msg_pub_t
*
)
sip
,
rq
->
rq_method_name
,
(
url_t
*
)
"sip:surf3@ims3.so.noklab.net"
,
sip
->
sip_payload
),
1
);
TEST_1
(
sip
->
sip_authorization
);
reinit_as
(
as
);
auth_mod_check_client
(
am
,
as
,
sip
->
sip_authorization
,
ach
);
TEST
(
as
->
as_status
,
0
);
auth_mod_destroy
(
am
);
aucs
=
NULL
;
TEST_1
(
am
=
auth_mod_create
(
NULL
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment