summaryrefslogtreecommitdiff
path: root/usr.sbin/rpki-client/extern.h
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2022-01-18 16:36:50 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2022-01-18 16:36:50 +0000
commit16eb5589ee06fb1f70da1aa466b8b560a12d7a8c (patch)
tree8ebc5ca2304080268af2ce70b723b8d5f13a1784 /usr.sbin/rpki-client/extern.h
parent6a35a5b99d96ea759e4408a025af1976c48f90f1 (diff)
Change cert_parse() and ta_parse() to no longer take a x509 handle as
argument. The x509 cert is also inside struct cert and easy to access. Also switch auth_insert() to a void function since it can't fail. OK tb@
Diffstat (limited to 'usr.sbin/rpki-client/extern.h')
-rw-r--r--usr.sbin/rpki-client/extern.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.sbin/rpki-client/extern.h b/usr.sbin/rpki-client/extern.h
index 42bb0fc3af7..b3bcd4050ac 100644
--- a/usr.sbin/rpki-client/extern.h
+++ b/usr.sbin/rpki-client/extern.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: extern.h,v 1.107 2022/01/18 16:24:55 claudio Exp $ */
+/* $OpenBSD: extern.h,v 1.108 2022/01/18 16:36:49 claudio Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -279,7 +279,7 @@ RB_HEAD(auth_tree, auth);
RB_PROTOTYPE(auth_tree, auth, entry, authcmp);
struct auth *auth_find(struct auth_tree *, const char *);
-int auth_insert(struct auth_tree *, struct cert *, struct auth *);
+void auth_insert(struct auth_tree *, struct cert *, struct auth *);
/*
* Resource types specified by the RPKI profiles.
@@ -407,9 +407,8 @@ struct tal *tal_read(struct ibuf *);
void cert_buffer(struct ibuf *, const struct cert *);
void cert_free(struct cert *);
-struct cert *cert_parse(X509 **, const char *, const unsigned char *,
- size_t);
-struct cert *ta_parse(X509 **, const char *, const unsigned char *, size_t,
+struct cert *cert_parse(const char *, const unsigned char *, size_t);
+struct cert *ta_parse(const char *, const unsigned char *, size_t,
const unsigned char *, size_t);
struct cert *cert_read(struct ibuf *);
void cert_insert_brks(struct brk_tree *, struct cert *);