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);
117 gnutls_psk_server_credentials_function *cb);
182 #endif // PCMK__CRM_COMMON_TLS_INTERNAL__H
gnutls_psk_client_credentials_t psk_c
int pcmk__tls_client_try_handshake(pcmk__remote_t *remote, int *gnutls_rc)
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)
gnutls_anon_client_credentials_t anon_c
gnutls_credentials_type_t cred_type
void pcmk__tls_add_psk_callback(pcmk__tls_t *tls, gnutls_psk_server_credentials_function *cb)
gnutls_session_t pcmk__new_tls_session(pcmk__tls_t *tls, int csock)
gnutls_certificate_credentials_t cert
void pcmk__free_tls(pcmk__tls_t *tls)
bool pcmk__x509_enabled(void)
void pcmk__tls_add_psk_key(pcmk__tls_t *tls, gnutls_datum_t *key)
gnutls_dh_params_t dh_params
gnutls_psk_server_credentials_t psk_s
gnutls_anon_server_credentials_t anon_s
int pcmk__read_handshake_data(const pcmk__client_t *client)
int pcmk__init_tls_dh(gnutls_dh_params_t *dh_params)
void pcmk__tls_check_cert_expiration(gnutls_session_t session)