Fix NULL pointer dereference in the ex_data code
[openssl.git] / crypto / kdf / kdf_local.h
1 /*
2  * Copyright 2018 The OpenSSL Project Authors. All Rights Reserved.
3  * Copyright (c) 2018, Oracle and/or its affiliates.  All rights reserved.
4  *
5  * Licensed under the Apache License 2.0 (the "License").  You may not use
6  * this file except in compliance with the License.  You can obtain a copy
7  * in the file LICENSE in the source distribution or at
8  * https://www.openssl.org/source/license.html
9  */
10
11 int call_ctrl(int (*ctrl)(EVP_KDF_IMPL *impl, int cmd, va_list args),
12               EVP_KDF_IMPL *impl, int cmd, ...);
13 int kdf_str2ctrl(EVP_KDF_IMPL *impl,
14                  int (*ctrl)(EVP_KDF_IMPL *impl, int cmd, va_list args),
15                  int cmd, const char *str);
16 int kdf_hex2ctrl(EVP_KDF_IMPL *impl,
17                  int (*ctrl)(EVP_KDF_IMPL *impl, int cmd, va_list args),
18                  int cmd, const char *hex);
19 int kdf_md2ctrl(EVP_KDF_IMPL *impl,
20                 int (*ctrl)(EVP_KDF_IMPL *impl, int cmd, va_list args),
21                 int cmd, const char *md_name);
22