STORE: Simplify error filtering in der2obj_decode()
authorRichard Levitte <levitte@openssl.org>
Fri, 23 Apr 2021 13:47:59 +0000 (15:47 +0200)
committerRichard Levitte <levitte@openssl.org>
Fri, 23 Apr 2021 18:22:49 +0000 (20:22 +0200)
commit3d80b5e611f112fd004a4320cb5ecce93c73b7d4
tree90e7207839cf32184246bc0631b658e70f661254
parent521a0bf6a11c4cdaef331934e93581d06ce834e1
STORE: Simplify error filtering in der2obj_decode()

We do here like in all other decoder implementations, drop all errors
that were caused by a failing asn1_d2i_read_bio(), as it's most likely
to mean that the input isn't DER, and another decoder implementation,
if there is any left, should have a go.

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/15008)
providers/implementations/storemgmt/file_store_der2obj.c