xref: /freebsd/crypto/openssl/include/openssl/indicator.h (revision f25b8c9fb4f58cf61adb47d7570abe7caa6d385d)
1 /*
2  * Copyright 2024 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 OPENSSL_INDICATOR_H
11 #define OPENSSL_INDICATOR_H
12 #pragma once
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 #include <openssl/params.h>
19 
20 typedef int(OSSL_INDICATOR_CALLBACK)(const char *type, const char *desc,
21     const OSSL_PARAM params[]);
22 
23 void OSSL_INDICATOR_set_callback(OSSL_LIB_CTX *libctx,
24     OSSL_INDICATOR_CALLBACK *cb);
25 void OSSL_INDICATOR_get_callback(OSSL_LIB_CTX *libctx,
26     OSSL_INDICATOR_CALLBACK **cb);
27 
28 #ifdef __cplusplus
29 }
30 #endif
31 #endif /* OPENSSL_INDICATOR_H */
32