Prune low-level ASN.1 parse errors from error queue in decoder_process()
[openssl.git] / providers / decoders.inc
1 /*
2  * Copyright 2020 The OpenSSL Project Authors. All Rights Reserved.
3  *
4  * Licensed under the Apache License 2.0 (the "License").  You may not use
5  * this file except in compliance with the License.  You can obtain a copy
6  * in the file LICENSE in the source distribution or at
7  * https://www.openssl.org/source/license.html
8  */
9
10 #ifndef DECODER
11 # error Macro DECODER undefined
12 #endif
13
14 #ifndef OPENSSL_NO_DH
15     DECODER("DH", "yes", "der", der_to_dh_decoder_functions),
16     DECODER("DHX", "yes", "der", der_to_dhx_decoder_functions),
17 #endif
18 #ifndef OPENSSL_NO_DSA
19     DECODER("DSA", "yes", "der", der_to_dsa_decoder_functions),
20     DECODER("DSA", "yes", "mblob", msblob_to_dsa_decoder_functions),
21 # ifndef OPENSSL_NO_RC4
22     DECODER("DSA", "yes", "pvk", pvk_to_dsa_decoder_functions),
23 # endif
24 #endif
25 #ifndef OPENSSL_NO_EC
26     DECODER("EC", "yes", "der", der_to_ec_decoder_functions),
27     DECODER("ED25519", "yes", "der", der_to_ed25519_decoder_functions),
28     DECODER("ED448", "yes", "der", der_to_ed448_decoder_functions),
29     DECODER("X25519", "yes", "der", der_to_x25519_decoder_functions),
30     DECODER("X448", "yes", "der", der_to_x448_decoder_functions),
31 #endif
32     DECODER("RSA", "yes", "der", der_to_rsa_decoder_functions),
33     DECODER("RSA-PSS", "yes", "der", der_to_rsapss_decoder_functions),
34 #ifndef OPENSSL_NO_DSA
35     DECODER("RSA", "yes", "mblob", msblob_to_rsa_decoder_functions),
36 # ifndef OPENSSL_NO_RC4
37     DECODER("RSA", "yes", "pvk", pvk_to_rsa_decoder_functions),
38 # endif
39 #endif
40
41     DECODER("DER", "yes", "pem", pem_to_der_decoder_functions),
42