10#ifndef PCMK__CRM_COMMON_TLS_INTERNAL__H
11#define PCMK__CRM_COMMON_TLS_INTERNAL__H
13#include <gnutls/gnutls.h>
33 gnutls_anon_server_credentials_t
anon_s;
34 gnutls_anon_client_credentials_t
anon_c;
35 gnutls_certificate_credentials_t
cert;
36 gnutls_psk_server_credentials_t
psk_s;
37 gnutls_psk_client_credentials_t
psk_c;
64 gnutls_credentials_type_t cred_type);
119 gnutls_psk_server_credentials_function *cb);
gnutls_psk_server_credentials_t psk_s
gnutls_psk_client_credentials_t psk_c
gnutls_credentials_type_t cred_type
gnutls_anon_server_credentials_t anon_s
gnutls_dh_params_t dh_params
gnutls_anon_client_credentials_t anon_c
gnutls_certificate_credentials_t cert
void pcmk__tls_add_psk_callback(pcmk__tls_t *tls, gnutls_psk_server_credentials_function *cb)
void pcmk__tls_add_psk_key(pcmk__tls_t *tls, gnutls_datum_t *key)
int pcmk__tls_get_client_sock(const pcmk__remote_t *remote)
int pcmk__tls_client_try_handshake(pcmk__remote_t *remote, int *gnutls_rc)
void pcmk__free_tls(pcmk__tls_t *tls)
bool pcmk__x509_enabled(void)
int pcmk__init_tls(pcmk__tls_t **tls, bool server, gnutls_credentials_type_t cred_type)
int pcmk__tls_client_handshake(pcmk__remote_t *remote, int timeout_sec, int *gnutls_rc)
void pcmk__tls_check_cert_expiration(gnutls_session_t session)
int pcmk__read_handshake_data(const pcmk__client_t *client)
int pcmk__init_tls_dh(gnutls_dh_params_t *dh_params)
gnutls_session_t pcmk__new_tls_session(pcmk__tls_t *tls, int csock)