10 #ifndef PCMK__REMOTE_INTERNAL__H
11 # define PCMK__REMOTE_INTERNAL__H
22 int *timer_id,
int *sock_fd,
void *userdata,
23 void (*callback) (
void *userdata,
int rc,
int sock));
27 # ifdef HAVE_GNUTLS_GNUTLS_H
28 # include <gnutls/gnutls.h>
31 gnutls_credentials_type_t cred_type,
33 int pcmk__init_tls_dh(gnutls_dh_params_t *dh_params);
45 int pcmk__tls_client_handshake(
pcmk__remote_t *remote,
int timeout_ms);
47 # endif // HAVE_GNUTLS_GNUTLS_H
48 #endif // PCMK__REMOTE_INTERNAL__H
int pcmk__remote_send_xml(pcmk__remote_t *remote, xmlNode *msg)
int pcmk__accept_remote_connection(int ssock, int *csock)
int pcmk__remote_ready(pcmk__remote_t *remote, int timeout_ms)
int pcmk__connect_remote(const char *host, int port, int timeout_ms, int *timer_id, int *sock_fd, void *userdata, void(*callback)(void *userdata, int rc, int sock))
int pcmk__read_remote_message(pcmk__remote_t *remote, int timeout_ms)
xmlNode * pcmk__remote_message_xml(pcmk__remote_t *remote)
void pcmk__sockaddr2str(void *sa, char *s)