Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
NCONF_NEW_WITH_LIBCTX(3)	    OpenSSL	      NCONF_NEW_WITH_LIBCTX(3)

NAME
       NCONF_new_with_libctx, NCONF_new, NCONF_free, NCONF_default, NCONF_load
       - functionality to Load and parse configuration files manually

SYNOPSIS
	#include <openssl/conf.h>

	CONF *NCONF_new_with_libctx(OPENSSL_CTX	*libctx, CONF_METHOD *meth);
	CONF *NCONF_new(CONF_METHOD *meth);
	void NCONF_free(CONF *conf);
	CONF_METHOD *NCONF_default(void);
	int NCONF_load(CONF *conf, const char *file, long *eline);

DESCRIPTION
       NCONF_new_with_libctx() creates a new CONF object in heap memory	and
       assigns to it a context libctx that can be used during loading. If the
       method table meth is set	to NULL	then the default value of
       NCONF_default() is used.

       NCONF_new() is similar to NCONF_new_with_libctx() but sets the libctx
       to NULL.

       NCONF_free() frees the data associated with conf	and then frees the
       conf object.

       NCONF_load() parses the file named filename and adds the	values found
       to conf.	If an error occurs file	and eline list the file	and line that
       the load	failed on if they are not NULL.

       NCONF_default() gets the	default	method table for processing a
       configuration file.

RETURN VALUES
       NCONF_load() returns 1 on success or 0 on error.

       NCONF_new_with_libctx() and NCONF_new() return a	newly created CONF
       object or NULL if an error occurs.

SEE ALSO
       CONF_modules_load_file(3),

HISTORY
       NCONF_new_with_libctx() was added in OpenSSL 3.0.

COPYRIGHT
       Copyright 2020 The OpenSSL Project Authors. All Rights Reserved.

       Licensed	under the Apache License 2.0 (the "License").  You may not use
       this file except	in compliance with the License.	 You can obtain	a copy
       in the file LICENSE in the source distribution or at
       <https://www.openssl.org/source/license.html>.

3.0.0-alpha6			  2020-08-06	      NCONF_NEW_WITH_LIBCTX(3)

NAME | SYNOPSIS | DESCRIPTION | RETURN VALUES | SEE ALSO | HISTORY | COPYRIGHT

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=NCONF_new_with_libctx&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help