conf_api.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
  3. *
  4. * Licensed under the OpenSSL license (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 HEADER_CONF_API_H
  10. # define HEADER_CONF_API_H
  11. # include <openssl/lhash.h>
  12. # include <openssl/conf.h>
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. /* Up until OpenSSL 0.9.5a, this was new_section */
  17. CONF_VALUE *_CONF_new_section(CONF *conf, const char *section);
  18. /* Up until OpenSSL 0.9.5a, this was get_section */
  19. CONF_VALUE *_CONF_get_section(const CONF *conf, const char *section);
  20. /* Up until OpenSSL 0.9.5a, this was CONF_get_section */
  21. STACK_OF(CONF_VALUE) *_CONF_get_section_values(const CONF *conf,
  22. const char *section);
  23. int _CONF_add_string(CONF *conf, CONF_VALUE *section, CONF_VALUE *value);
  24. char *_CONF_get_string(const CONF *conf, const char *section,
  25. const char *name);
  26. long _CONF_get_number(const CONF *conf, const char *section,
  27. const char *name);
  28. int _CONF_new_data(CONF *conf);
  29. void _CONF_free_data(CONF *conf);
  30. #ifdef __cplusplus
  31. }
  32. #endif
  33. #endif