NCONF_new_ex.pod 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. =pod
  2. =head1 NAME
  3. NCONF_new_ex, NCONF_new, NCONF_free, NCONF_default, NCONF_load
  4. - functionality to Load and parse configuration files manually
  5. =head1 SYNOPSIS
  6. #include <openssl/conf.h>
  7. CONF *NCONF_new_ex(OSSL_LIB_CTX *libctx, CONF_METHOD *meth);
  8. CONF *NCONF_new(CONF_METHOD *meth);
  9. void NCONF_free(CONF *conf);
  10. CONF_METHOD *NCONF_default(void);
  11. int NCONF_load(CONF *conf, const char *file, long *eline);
  12. =head1 DESCRIPTION
  13. NCONF_new_ex() creates a new CONF object in heap memory and assigns to
  14. it a context I<libctx> that can be used during loading. If the method table
  15. I<meth> is set to NULL then the default value of NCONF_default() is used.
  16. NCONF_new() is similar to NCONF_new_ex() but sets the I<libctx> to NULL.
  17. NCONF_free() frees the data associated with I<conf> and then frees the I<conf>
  18. object.
  19. NCONF_load() parses the file named I<filename> and adds the values found to
  20. I<conf>. If an error occurs I<file> and I<eline> list the file and line that
  21. the load failed on if they are not NULL.
  22. NCONF_default() gets the default method table for processing a configuration file.
  23. =head1 RETURN VALUES
  24. NCONF_load() returns 1 on success or 0 on error.
  25. NCONF_new_ex() and NCONF_new() return a newly created I<CONF> object
  26. or NULL if an error occurs.
  27. =head1 SEE ALSO
  28. L<CONF_modules_load_file(3)>,
  29. =head1 HISTORY
  30. NCONF_new_ex() was added in OpenSSL 3.0.
  31. =head1 COPYRIGHT
  32. Copyright 2020 The OpenSSL Project Authors. All Rights Reserved.
  33. Licensed under the Apache License 2.0 (the "License"). You may not use
  34. this file except in compliance with the License. You can obtain a copy
  35. in the file LICENSE in the source distribution or at
  36. L<https://www.openssl.org/source/license.html>.
  37. =cut