indicator.h 818 B

1234567891011121314151617181920212223242526272829303132
  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. #ifndef OPENSSL_INDICATOR_H
  10. #define OPENSSL_INDICATOR_H
  11. #pragma once
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. #include <openssl/params.h>
  16. typedef int(OSSL_INDICATOR_CALLBACK)(const char *type, const char *desc,
  17. const OSSL_PARAM params[]);
  18. void OSSL_INDICATOR_set_callback(OSSL_LIB_CTX *libctx,
  19. OSSL_INDICATOR_CALLBACK *cb);
  20. void OSSL_INDICATOR_get_callback(OSSL_LIB_CTX *libctx,
  21. OSSL_INDICATOR_CALLBACK **cb);
  22. #ifdef __cplusplus
  23. }
  24. #endif
  25. #endif /* OPENSSL_INDICATOR_H */