2 * Copyright 2020 The OpenSSL Project Authors. All Rights Reserved.
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
11 #include "prov/provider_ctx.h"
13 PROV_CTX *PROV_CTX_new(void)
15 return OPENSSL_zalloc(sizeof(PROV_CTX));
18 void PROV_CTX_free(PROV_CTX *ctx)
23 void PROV_CTX_set0_library_context(PROV_CTX *ctx, OPENSSL_CTX *libctx)
29 void PROV_CTX_set0_provider(PROV_CTX *ctx, const OSSL_PROVIDER *provider)
32 ctx->provider = provider;
36 OPENSSL_CTX *PROV_CTX_get0_library_context(PROV_CTX *ctx)
43 const OSSL_PROVIDER *PROV_CTX_get0_provider(PROV_CTX *ctx)