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,
33int pcmk__init_tls_dh(gnutls_dh_params_t *dh_params);
45int pcmk__tls_client_handshake(
pcmk__remote_t *remote,
int timeout_ms);
int pcmk__remote_ready(const pcmk__remote_t *remote, int timeout_ms)
int pcmk__remote_send_xml(pcmk__remote_t *remote, xmlNode *msg)
int pcmk__accept_remote_connection(int ssock, int *csock)
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))
void pcmk__sockaddr2str(const void *sa, char *s)
xmlNode * pcmk__remote_message_xml(pcmk__remote_t *remote)
int pcmk__read_remote_message(pcmk__remote_t *remote, int timeout_ms)