xref: /freebsd/crypto/openssl/providers/implementations/include/prov/decoders.h (revision e7be843b4a162e68651d3911f0357ed464915629)
1 /*
2  * Copyright 2025 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 #include <openssl/core.h>
11 
12 int ossl_epki2pki_der_decode(unsigned char *der, long der_len, int selection,
13                              OSSL_CALLBACK *data_cb, void *data_cbarg,
14                              OSSL_PASSPHRASE_CALLBACK *pw_cb, void *pw_cbarg,
15                              OSSL_LIB_CTX *libctx, const char *propq);
16 
17 int ossl_spki2typespki_der_decode(unsigned char *der, long len, int selection,
18                                   OSSL_CALLBACK *data_cb, void *data_cbarg,
19                                   OSSL_PASSPHRASE_CALLBACK *pw_cb, void *pw_cbarg,
20                                   OSSL_LIB_CTX *libctx, const char *propq);
21