From 2dd7e16004d24ba2c764bda8b80c5e76f3afb6d9 Mon Sep 17 00:00:00 2001 From: dangfan Date: Thu, 9 Nov 2023 23:09:40 +0800 Subject: [PATCH] return 6A88 for undefined retired certs --- applets/piv/piv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/applets/piv/piv.c b/applets/piv/piv.c index 750a7570..f4292088 100644 --- a/applets/piv/piv.c +++ b/applets/piv/piv.c @@ -1065,6 +1065,8 @@ static int piv_get_metadata(const CAPDU *capdu, RAPDU *rapdu) { memzero(&key, sizeof(key)); break; } + default: + EXCEPT(SW_REFERENCE_DATA_NOT_FOUND); } LL = pos;