pacemaker 3.0.1-16e74fc4da
Scalable High-Availability cluster resource manager
Loading...
Searching...
No Matches
tls_internal.h File Reference
#include <gnutls/gnutls.h>
#include <crm/common/ipc_internal.h>
#include <crm/common/remote_internal.h>
Include dependency graph for tls_internal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  pcmk__tls_t
 

Functions

void pcmk__free_tls (pcmk__tls_t *tls)
 
int pcmk__init_tls (pcmk__tls_t **tls, bool server, gnutls_credentials_type_t cred_type)
 
int pcmk__init_tls_dh (gnutls_dh_params_t *dh_params)
 
gnutls_session_t pcmk__new_tls_session (pcmk__tls_t *tls, int csock)
 
int pcmk__tls_get_client_sock (const pcmk__remote_t *remote)
 
void pcmk__tls_add_psk_key (pcmk__tls_t *tls, gnutls_datum_t *key)
 
void pcmk__tls_add_psk_callback (pcmk__tls_t *tls, gnutls_psk_server_credentials_function *cb)
 
int pcmk__read_handshake_data (const pcmk__client_t *client)
 
void pcmk__tls_check_cert_expiration (gnutls_session_t session)
 
int pcmk__tls_client_handshake (pcmk__remote_t *remote, int timeout_sec, int *gnutls_rc)
 
int pcmk__tls_client_try_handshake (pcmk__remote_t *remote, int *gnutls_rc)
 
bool pcmk__x509_enabled (void)
 

Function Documentation

◆ pcmk__free_tls()

void pcmk__free_tls ( pcmk__tls_t * tls)

Definition at line 149 of file tls.c.

◆ pcmk__init_tls()

int pcmk__init_tls ( pcmk__tls_t ** tls,
bool server,
gnutls_credentials_type_t cred_type )

Definition at line 183 of file tls.c.

◆ pcmk__init_tls_dh()

int pcmk__init_tls_dh ( gnutls_dh_params_t * dh_params)

Definition at line 278 of file tls.c.

◆ pcmk__new_tls_session()

gnutls_session_t pcmk__new_tls_session ( pcmk__tls_t * tls,
int csock )

Definition at line 317 of file tls.c.

◆ pcmk__read_handshake_data()

int pcmk__read_handshake_data ( const pcmk__client_t * client)

Definition at line 429 of file tls.c.

◆ pcmk__tls_add_psk_callback()

void pcmk__tls_add_psk_callback ( pcmk__tls_t * tls,
gnutls_psk_server_credentials_function * cb )

Definition at line 462 of file tls.c.

◆ pcmk__tls_add_psk_key()

void pcmk__tls_add_psk_key ( pcmk__tls_t * tls,
gnutls_datum_t * key )

Definition at line 454 of file tls.c.

◆ pcmk__tls_check_cert_expiration()

void pcmk__tls_check_cert_expiration ( gnutls_session_t session)

Definition at line 469 of file tls.c.

◆ pcmk__tls_client_handshake()

int pcmk__tls_client_handshake ( pcmk__remote_t * remote,
int timeout_sec,
int * gnutls_rc )

Definition at line 543 of file tls.c.

◆ pcmk__tls_client_try_handshake()

int pcmk__tls_client_try_handshake ( pcmk__remote_t * remote,
int * gnutls_rc )

Definition at line 510 of file tls.c.

◆ pcmk__tls_get_client_sock()

int pcmk__tls_get_client_sock ( const pcmk__remote_t * remote)

Definition at line 418 of file tls.c.

◆ pcmk__x509_enabled()

bool pcmk__x509_enabled ( void )

Definition at line 560 of file tls.c.