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
0143fc30
Commit
0143fc30
authored
Jul 04, 2007
by
Pekka Pessi
Browse files
test_auth_digest.c: using _su_time hook
darcs-hash:20070704094624-65a35-1c87186eb1e9ae278fa26a371011d7ebb6c75d95.gz
parent
ae623728
Changes
1
Hide whitespace changes
Inline
Side-by-side
libsofia-sip-ua/iptsec/test_auth_digest.c
View file @
0143fc30
...
...
@@ -92,11 +92,9 @@ char const name[] = "test_auth_digest";
unsigned
offset
;
void
su
_time
(
su_time_t
*
tv
)
void
offset
_time
(
su_time_t
*
tv
)
{
tv
->
tv_sec
=
time
(
NULL
)
+
offset
+
/* Seconds from 1.1.1900 to 1.1.1970 */
2208988800UL
;
tv
->
tv_usec
=
555555
;
tv
->
tv_sec
+=
offset
;
}
int
test_digest
()
...
...
@@ -1210,6 +1208,9 @@ int main(int argc, char *argv[])
{
int
retval
=
0
;
int
i
;
extern
void
(
*
_su_time
)(
su_time_t
*
tv
);
_su_time
=
offset_time
;
argv0
=
argv
[
0
];
...
...
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