#include "nufw.h"
#include <nubase.h>
#include <nussl.h>
Include dependency graph for tls.c:

Go to the source code of this file.
Functions | |
| int | init_x509_filenames () |
| void | create_authserver () |
| void | tls_connect () |
Create a TLS connection to NuAuth using tls_connect().
Definition in file tls.c.
| void create_authserver | ( | ) |
Create auth server thread
Definition at line 156 of file tls.c.
References nuauth_conn::auth_server, nuauth_conn::auth_server_mutex, nuauth_conn::auth_server_running, authsrv(), and tls.
Referenced by tls_connect().
Here is the call graph for this function:

| int init_x509_filenames | ( | ) |
Inialialize key_file and cert_file variables
Definition at line 119 of file tls.c.
References cert_file, CERTFILE, DEBUG_AREA_MAIN, DEBUG_LEVEL_WARNING, key_file, KEYFILE, and log_area_printf().
Referenced by init_checks(), and tls_connect().
Here is the call graph for this function:

| void tls_connect | ( | ) |
Create a TLS connection to NuAuth: create a TCP socket and connect to NuAuth using adr_srv.
If x509 is enable (USE_X509 equals to 1), create credentials and check NuAuth's one. This function modify the tls variable and in particular set tls.session.
Definition at line 183 of file tls.c.
References authreq_addr, authreq_port, ca_file, cert_file, create_authserver(), crl_file, DEBUG_AREA_GW, DEBUG_AREA_MAIN, DEBUG_LEVEL_DEBUG, DEBUG_LEVEL_FATAL, DEBUG_LEVEL_WARNING, init_x509_filenames(), key_file, log_area_printf(), nuauth_cert_dn, nufw_strict_tls, nussl_get_error(), NUSSL_OK, nussl_open_connection(), nussl_session_create(), nussl_session_destroy(), nussl_set_hostinfo(), nussl_set_read_timeout(), nussl_ssl_disable_certificate_check(), nussl_ssl_set_crl_file(), nussl_ssl_set_keypair(), nussl_ssl_trust_cert_file(), nuauth_conn::session, and tls.
Referenced by auth_request_send(), and main().
Here is the call graph for this function:

1.4.7