10 #ifndef PCMK__CRM_COMMON_REMOTE_INTERNAL__H 11 #define PCMK__CRM_COMMON_REMOTE_INTERNAL__H 27 int *timer_id,
int *sock_fd,
void *userdata,
28 void (*callback) (
void *userdata,
int rc,
int sock));
41 pcmk__is_pacemaker_remote_node(
const pcmk_node_t *node)
57 return pcmk__is_pacemaker_remote_node(node)
71 pcmk__is_guest_or_bundle_node(
const pcmk_node_t *node)
73 return pcmk__is_pacemaker_remote_node(node)
78 #ifdef HAVE_GNUTLS_GNUTLS_H 79 #include <gnutls/gnutls.h> 81 gnutls_session_t *pcmk__new_tls_session(
int csock,
unsigned int conn_type,
82 gnutls_credentials_type_t cred_type,
84 int pcmk__init_tls_dh(gnutls_dh_params_t *dh_params);
99 int pcmk__tls_client_handshake(
pcmk__remote_t *remote,
int timeout_sec,
102 #endif // HAVE_GNUTLS_GNUTLS_H 103 #endif // PCMK__CRM_COMMON_REMOTE_INTERNAL__H
Type aliases needed to define scheduler objects.
int pcmk__accept_remote_connection(int ssock, int *csock)
pcmk_resource_t * container
int pcmk__remote_ready(const 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))
struct pe_node_shared_s * details
void pcmk__sockaddr2str(const void *sa, char *s)
int pcmk__remote_send_xml(pcmk__remote_t *remote, const xmlNode *msg)
int pcmk__read_remote_message(pcmk__remote_t *remote, int timeout_ms)
xmlNode * pcmk__remote_message_xml(pcmk__remote_t *remote)
pcmk_resource_t * remote_rsc