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
belle-sip
Commits
63f6aa0a
Commit
63f6aa0a
authored
May 16, 2017
by
jehan
Browse files
add tester for nc param in Authentication-Info
parent
41052839
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
tester/belle_sip_headers_tester.c
tester/belle_sip_headers_tester.c
+5
-0
No files found.
tester/belle_sip_headers_tester.c
View file @
63f6aa0a
...
...
@@ -1193,6 +1193,11 @@ static void test_authentication_info_header(void) {
belle_sip_object_unref(BELLE_SIP_OBJECT(L_authentication_info))
;
belle_sip_free(l_raw_header)
;
L_authentication_info
=
belle_sip_header_authentication_info_parse("Authentication-Info:nextnonce=\"WRSE5VkUg7kOjnP5sBZZzsxrsOQ8Eyp6ZNttXIA=\",
qop=\"auth\"
,
rspauth=\"5e8518291c1320989df6966405e0b3d1\",
cnonce=\"05bc00e63a7794182f9425da9266d00d\",
nc=00000001")
;
BC_ASSERT_EQUAL(belle_sip_header_authentication_info_get_nonce_count(L_authentication_info),1,
int,
"%i")
;
belle_sip_object_unref(BELLE_SIP_OBJECT(L_authentication_info))
;
BC_ASSERT_PTR_NULL(belle_sip_header_authentication_info_parse("nimportequoi"))
;
}
...
...
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