libnetconf 0.10.0-0.10.0
NETCONF Library
Loading...
Searching...
No Matches
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
51extern "C" {
52#endif
53
102int nc_tls_init(const char* peer_cert, const char* peer_key, const char *CAfile, const char *CApath, const char *CRLfile, const char *CRLpath);
103
104struct nc_session *nc_session_accept_tls(const struct nc_cpblts* capabilities, const char* username, SSL* tls_sess);
105
115void nc_tls_destroy(void);
116
117#ifdef __cplusplus
118}
119#endif
120
121#endif /* LIBNETCONF_H_ */
122
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.
void nc_tls_destroy(void)
Destroy all resources allocated for preparation of TLS connections.
struct nc_session * nc_session_accept_tls(const struct nc_cpblts *capabilities, const char *username, SSL *tls_sess)
libnetconf's general public functions and structures definitions.
Functions implementing transport layer for NETCONF.