summaryrefslogtreecommitdiff
path: root/usr.sbin/rpki-client/mft.c
diff options
context:
space:
mode:
authorJob Snijders <job@cvs.openbsd.org>2022-05-09 17:02:35 +0000
committerJob Snijders <job@cvs.openbsd.org>2022-05-09 17:02:35 +0000
commitf514202260d936fe427fa60a803b2f30406110a2 (patch)
tree8b1a238f9fe585f36c8ab969c31a795336f30f7b /usr.sbin/rpki-client/mft.c
parent77a93d74b640065f545dc5370f6044262f031208 (diff)
Add preliminary support for decoding RSC objects in filemode
This implements decoding support for draft-ietf-sidrops-rpki-rsc-06 There are three major outstanding issues: * The wire image might still change to conform to the more widely deployed 3779 API in libressl/openssl. IETF discussion ongoing. * Whether the resources listed in the ResourceBlock are contained within the EE's RFC 3779 extension is not hooked up yet. * There is a fair bit of duplicity between rsc.c and cert.c, look for XXX OK tb@
Diffstat (limited to 'usr.sbin/rpki-client/mft.c')
-rw-r--r--usr.sbin/rpki-client/mft.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/rpki-client/mft.c b/usr.sbin/rpki-client/mft.c
index 565a441b0bb..ca94f1005e5 100644
--- a/usr.sbin/rpki-client/mft.c
+++ b/usr.sbin/rpki-client/mft.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mft.c,v 1.60 2022/04/20 10:46:20 job Exp $ */
+/* $OpenBSD: mft.c,v 1.61 2022/05/09 17:02:34 job Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -120,6 +120,8 @@ rtype_from_file_extension(const char *fn)
return RTYPE_GBR;
if (strcasecmp(fn + sz - 4, ".asa") == 0)
return RTYPE_ASPA;
+ if (strcasecmp(fn + sz - 4, ".sig") == 0)
+ return RTYPE_RSC;
return RTYPE_INVALID;
}