Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
65fbea70
Commit
65fbea70
authored
Jan 09, 2003
by
Niels Möller
Browse files
(spki_acl_parse): Use spki_check_type.
(spki_process_sequence_no_signatures): Likewise. Rev: src/spki/certificate.c:1.20
parent
ccc9e16f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/spki/certificate.c
View file @
65fbea70
...
...
@@ -324,12 +324,9 @@ spki_5_tuple_by_subject(const struct spki_5_tuple *list,
int
spki_acl_parse
(
struct
spki_acl_db
*
db
,
struct
spki_iterator
*
i
)
{
/* FIXME: Change to an assertion? */
if
(
i
->
type
!=
SPKI_TYPE_ACL
)
if
(
!
spki_check_type
(
i
,
SPKI_TYPE_ACL
))
return
0
;
spki_parse_type
(
i
);
if
(
i
->
type
==
SPKI_TYPE_VERSION
)
spki_parse_version
(
i
);
...
...
@@ -521,11 +518,8 @@ spki_process_sequence_no_signatures(struct spki_acl_db *db,
{
struct
spki_5_tuple
*
chain
=
NULL
;
/* FIXME: Change to an assertion? */
if
(
i
->
type
!=
SPKI_TYPE_SEQUENCE
)
if
(
!
spki_check_type
(
i
,
SPKI_TYPE_SEQUENCE
))
return
NULL
;
spki_parse_type
(
i
);
for
(;;)
{
...
...
@@ -643,7 +637,7 @@ spki_date_from_time_t(struct spki_date *d, time_t t)
write_decimal
(
2
,
d
->
date
+
17
,
tm
->
tm_sec
);
}
/* Returns
-1
, 0 or
1
if if d < t, d == t or d > t */
/* Returns
< 0
, 0 or
> 0
if if d < t, d == t or d > t */
int
spki_date_cmp_time_t
(
struct
spki_date
*
d
,
time_t
t
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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