pacemaker  3.0.0-d8340737c4
Scalable High-Availability cluster resource manager
Data Structures | Functions
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)
 
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 147 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 181 of file tls.c.

◆ pcmk__init_tls_dh()

int pcmk__init_tls_dh ( gnutls_dh_params_t *  dh_params)

Definition at line 276 of file tls.c.

◆ pcmk__new_tls_session()

gnutls_session_t pcmk__new_tls_session ( pcmk__tls_t tls,
int  csock 
)

Definition at line 315 of file tls.c.

◆ pcmk__read_handshake_data()

int pcmk__read_handshake_data ( const pcmk__client_t client)

Definition at line 399 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 432 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 424 of file tls.c.

◆ pcmk__tls_check_cert_expiration()

void pcmk__tls_check_cert_expiration ( gnutls_session_t  session)

Definition at line 439 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 513 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 480 of file tls.c.

◆ pcmk__x509_enabled()

bool pcmk__x509_enabled ( void  )

Definition at line 530 of file tls.c.