libnetconf  0.10.0-146_trunk
NETCONF Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
libnetconf_tls.h
Go to the documentation of this file.
1 
40 #ifndef LIBNETCONF_TLS_H_
41 #define LIBNETCONF_TLS_H_
42 
43 #include <openssl/ssl.h>
44 #include <openssl/x509.h>
45 
46 #include "netconf.h"
47 #include "transport.h"
48 #include "callhome.h"
49 
50 #ifdef __cplusplus
51 extern "C" {
52 #endif
53 
102 int nc_tls_init(const char* peer_cert, const char* peer_key, const char *CAfile, const char *CApath, const char *CRLfile, const char *CRLpath);
103 
104 struct nc_session *nc_session_accept_tls(const struct nc_cpblts* capabilities, const char* username, SSL* tls_sess);
105 
115 void nc_tls_destroy(void);
116 
117 #ifdef __cplusplus
118 }
119 #endif
120 
121 #endif /* LIBNETCONF_H_ */
122 
Functions implementing transport layer for NETCONF.
struct nc_session * nc_session_accept_tls(const struct nc_cpblts *capabilities, const char *username, SSL *tls_sess)
void nc_tls_destroy(void)
Destroy all resources allocated for preparation of TLS connections.
Functions to connect NETCONF server to a NETCONF client (Call Home).
int nc_tls_init(const char *peer_cert, const char *peer_key, const char *CAfile, const char *CApath, const char *CRLfile, const char *CRLpath)
Set paths to the client certificate and its private key.
libnetconf's general public functions and structures definitions.