]>
git.ipfire.org Git - thirdparty/openssl.git/blob - providers/common/provider_ctx.c
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"
14 PROV_CTX
*ossl_prov_ctx_new(void)
16 return OPENSSL_zalloc(sizeof(PROV_CTX
));
19 void ossl_prov_ctx_free(PROV_CTX
*ctx
)
24 void ossl_prov_ctx_set0_libctx(PROV_CTX
*ctx
, OSSL_LIB_CTX
*libctx
)
30 void ossl_prov_ctx_set0_handle(PROV_CTX
*ctx
, const OSSL_CORE_HANDLE
*handle
)
36 void ossl_prov_ctx_set0_core_bio_method(PROV_CTX
*ctx
, BIO_METHOD
*corebiometh
)
39 ctx
->corebiometh
= corebiometh
;
42 OSSL_LIB_CTX
*ossl_prov_ctx_get0_libctx(PROV_CTX
*ctx
)
49 const OSSL_CORE_HANDLE
*ossl_prov_ctx_get0_handle(PROV_CTX
*ctx
)
56 BIO_METHOD
*ossl_prov_ctx_get0_core_bio_method(PROV_CTX
*ctx
)
60 return ctx
->corebiometh
;