Home Man
Search
Today's Posts
Register

Linux & Unix Commands - Search Man Pages

RedHat 9 (Linux i386) - man page for ne_ssl_load_default_ca (redhat section 3)

NE_SSL_LOAD_CA(3)			neon API reference			NE_SSL_LOAD_CA(3)

NAME
       ne_ssl_load_ca, ne_ssl_load_default_ca - load SSL Certificate Authorities

SYNOPSIS
       #include <ne_session.h>

       int ne_ssl_load_ca (ne_session *session, const char *filename);

       int ne_ssl_load_default_ca (ne_session *session);

DESCRIPTION
       To  indicate  that  a  given CA certificate is trusted by the user, the certificate can be
       loaded using the ne_ssl_load_ca function. The filename parameter given  must  specify  the
       location of a PEM-encoded CA certificate.

       The  SSL  library in use by neon may include a default set of CA certificates; calling the
       ne_ssl_load_default_ca function will indicate that these CAs are trusted by the user.

       If no CA certificates are loaded, or the server presents a certificate which is invalid in
       some  way, then the certificate must be manually verified (see ne_ssl_set_verify(3)), oth-
       erwise the connection will fail.

RETURN VALUE
       Both ne_ssl_load_ca and ne_ssl_load_default_ca functions return 0 on success, or  non-zero
       on failure.

EXAMPLES
       Load the CA certificate stored in /path/to/cacert.pem:

       ne_session *sess = ne_session_create(...);

       if (ne_ssl_load_ca(sess, "/path/to/cacert.pem")) {
	  printf("Could not load CA cert: %s\n", ne_get_error(sess));
       }

SEE ALSO
       ne_get_error(3), ne_ssl_set_verify(3)

AUTHOR
       Joe Orton <neon@webdav.org>.

neon 0.23.5				  8 October 2002			NE_SSL_LOAD_CA(3)


All times are GMT -4. The time now is 09:20 AM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password