From ff4acf70059d86e0bc63a6094a719e3b8b3c06e1 Mon Sep 17 00:00:00 2001 From: Ave Date: Tue, 29 Dec 2020 20:05:50 +0300 Subject: [PATCH] emrtd: Improve comment on USA quirk workaround --- client/src/cmdhfemrtd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/cmdhfemrtd.c b/client/src/cmdhfemrtd.c index fa9c936e9..670ea804d 100644 --- a/client/src/cmdhfemrtd.c +++ b/client/src/cmdhfemrtd.c @@ -218,9 +218,9 @@ static int emrtd_get_asn1_data_length(uint8_t *datain, int datainlen, int offset if (lenfield <= 0x7f) { return lenfield; } else if (lenfield == 0x80) { - // TODO: 0x80 means indeterminate. + // TODO: 0x80 means indeterminate, and this impl is a workaround. // Giving rest of the file is a workaround, nothing more, nothing less. - // More at https://letsencrypt.org/docs/a-warm-welcome-to-asn1-and-der/ + // https://wf.lavatech.top/ave-but-random/emrtd-data-quirks#EF_SOD return datainlen; } else if (lenfield == 0x81) { return ((int) * (datain + offset + 1));