From: tb Date: Mon, 8 Jul 2024 16:11:47 +0000 (+0000) Subject: x509_pubkey_get_ski() should support non-rsa keys X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=0047c88a18398ba755566e1f26e8aa40a59617a1;p=openbsd x509_pubkey_get_ski() should support non-rsa keys for now add an XXX reminder. Pointed out by job a while back --- diff --git a/usr.sbin/rpki-client/x509.c b/usr.sbin/rpki-client/x509.c index 049dd78ea9e..d63cb56b8ec 100644 --- a/usr.sbin/rpki-client/x509.c +++ b/usr.sbin/rpki-client/x509.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509.c,v 1.99 2024/06/10 12:44:06 tb Exp $ */ +/* $OpenBSD: x509.c,v 1.100 2024/07/08 16:11:47 tb Exp $ */ /* * Copyright (c) 2022 Theo Buehler * Copyright (c) 2021 Claudio Jeker @@ -482,6 +482,7 @@ x509_pubkey_get_ski(X509_PUBKEY *pubkey, const char *fn) return NULL; } + /* XXX - should allow other keys as well. */ if ((nid = OBJ_obj2nid(obj)) != NID_rsaEncryption) { warnx("%s: RFC 7935: wrong signature algorithm %s, want %s", fn, nid2str(nid), LN_rsaEncryption);