CONF_modules_load_file.pod 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. =pod
  2. =head1 NAME
  3. CONF_modules_load_file, CONF_modules_load - OpenSSL configuration functions
  4. =head1 SYNOPSIS
  5. #include <openssl/conf.h>
  6. int CONF_modules_load_file(const char *filename, const char *appname,
  7. unsigned long flags);
  8. int CONF_modules_load(const CONF *cnf, const char *appname,
  9. unsigned long flags);
  10. =head1 DESCRIPTION
  11. The function CONF_modules_load_file() configures OpenSSL using file
  12. B<filename> and application name B<appname>. If B<filename> is NULL
  13. the standard OpenSSL configuration file is used. If B<appname> is
  14. NULL the standard OpenSSL application name B<openssl_conf> is used.
  15. The behaviour can be cutomized using B<flags>.
  16. CONF_modules_load() is idential to CONF_modules_load_file() except it
  17. read configuration information from B<cnf>.
  18. =head1 NOTES
  19. The following B<flags> are currently recognized:
  20. B<CONF_MFLAGS_IGNORE_ERRORS> if set errors returned by individual
  21. configuration modules are ignored. If not set the first module error is
  22. considered fatal and no further modules are loads.
  23. Normally any modules errors will add error information to the error queue. If
  24. B<CONF_MFLAGS_SILENT> is set no error information is added.
  25. If B<CONF_MFLAGS_NO_DSO> is set configuration module loading from DSOs is
  26. disabled.
  27. B<CONF_MFLAGS_IGNORE_MISSING_FILE> if set will make CONF_load_modules_file()
  28. ignore missing configuration files. Normally a missing configuration file
  29. return an error.
  30. =head1 RETURN VALUE
  31. These functions return 1 for success and a zero or negative value for
  32. failure. If module errors are not ignored the return code will reflect the
  33. return value of the failing module (this will always be zero or negative).
  34. =head1 SEE ALSO
  35. L<conf(5)|conf(5)>, L<OPENSSL_config(3)|OPENSSL_config(3)>,
  36. L<CONF_free(3), CONF_free(3)>, L<err(3),err(3)>
  37. =head1 HISTORY
  38. CONF_modules_load_file and CONF_modules_load first appeared in OpenSSL 0.9.7.
  39. =cut