VirtualBox

source: vbox/trunk/src/libs/openssl-3.3.2/include/crypto/decoder.h

Last change on this file was 108206, checked in by vboxsync, 3 months ago

openssl-3.3.2: Exported all files to OSE and removed .scm-settings ​bugref:10757

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 KB
Line 
1/*
2 * Copyright 2020-2023 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 OSSL_CRYPTO_DECODER_H
11# define OSSL_CRYPTO_DECODER_H
12# ifndef RT_WITHOUT_PRAGMA_ONCE /* VBOX */
13# pragma once
14# endif /* VBOX */
15
16# include <openssl/decoder.h>
17
18/*
19 * These are specially made for the 'file:' provider-native loader, which
20 * uses this to install a DER to anything decoder, which doesn't do much
21 * except read a DER blob and pass it on as a provider object abstraction
22 * (provider-object(7)).
23 */
24void *ossl_decoder_from_algorithm(int id, const OSSL_ALGORITHM *algodef,
25 OSSL_PROVIDER *prov);
26
27OSSL_DECODER_INSTANCE *
28ossl_decoder_instance_new(OSSL_DECODER *decoder, void *decoderctx);
29void ossl_decoder_instance_free(OSSL_DECODER_INSTANCE *decoder_inst);
30OSSL_DECODER_INSTANCE *ossl_decoder_instance_dup(const OSSL_DECODER_INSTANCE *src);
31int ossl_decoder_ctx_add_decoder_inst(OSSL_DECODER_CTX *ctx,
32 OSSL_DECODER_INSTANCE *di);
33
34int ossl_decoder_get_number(const OSSL_DECODER *encoder);
35int ossl_decoder_store_cache_flush(OSSL_LIB_CTX *libctx);
36int ossl_decoder_store_remove_all_provided(const OSSL_PROVIDER *prov);
37
38void *ossl_decoder_cache_new(OSSL_LIB_CTX *ctx);
39void ossl_decoder_cache_free(void *vcache);
40int ossl_decoder_cache_flush(OSSL_LIB_CTX *libctx);
41
42#endif
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette