]> git.ipfire.org Git - thirdparty/openssl.git/blame - providers/implementations/include/prov/kdfexchange.h
Rename OPENSSL_CTX prefix to OSSL_LIB_CTX
[thirdparty/openssl.git] / providers / implementations / include / prov / kdfexchange.h
CommitLineData
ac2d58c7
MC
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#include <stdlib.h>
11#include <openssl/crypto.h>
12#include "internal/refcount.h"
13
14struct kdf_data_st {
b4250010 15 OSSL_LIB_CTX *libctx;
ac2d58c7
MC
16 CRYPTO_REF_COUNT refcnt;
17 CRYPTO_RWLOCK *lock;
18};
19
20typedef struct kdf_data_st KDF_DATA;
21
22KDF_DATA *kdf_data_new(void *provctx);
23void kdf_data_free(KDF_DATA *kdfdata);
24int kdf_data_up_ref(KDF_DATA *kdfdata);