pacemaker  2.0.5-ba59be712
Scalable High-Availability cluster resource manager
remote_internal.h
Go to the documentation of this file.
1 /*
2  * Copyright 2008-2020 the Pacemaker project contributors
3  *
4  * The version control history for this file may have further details.
5  *
6  * This source code is licensed under the GNU Lesser General Public License
7  * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
8  */
9 
10 #ifndef PCMK__REMOTE__H
11 # define PCMK__REMOTE__H
12 
13 // internal functions from remote.c
14 
16 
17 int pcmk__remote_send_xml(pcmk__remote_t *remote, xmlNode *msg);
18 int pcmk__remote_ready(pcmk__remote_t *remote, int timeout_ms);
19 int pcmk__read_remote_message(pcmk__remote_t *remote, int timeout_ms);
21 int pcmk__connect_remote(const char *host, int port, int timeout_ms,
22  int *timer_id, int *sock_fd, void *userdata,
23  void (*callback) (void *userdata, int rc, int sock));
24 int pcmk__accept_remote_connection(int ssock, int *csock);
25 void pcmk__sockaddr2str(void *sa, char *s);
26 
27 # ifdef HAVE_GNUTLS_GNUTLS_H
28 # include <gnutls/gnutls.h>
29 
30 gnutls_session_t *pcmk__new_tls_session(int csock, unsigned int conn_type,
31  gnutls_credentials_type_t cred_type,
32  void *credentials);
33 int pcmk__init_tls_dh(gnutls_dh_params_t *dh_params);
34 int pcmk__read_handshake_data(pcmk__client_t *client);
35 
45 int pcmk__tls_client_handshake(pcmk__remote_t *remote, int timeout_ms);
46 
47 # endif // HAVE_GNUTLS_GNUTLS_H
48 #endif // PCMK__REMOTE__H
int pcmk__remote_send_xml(pcmk__remote_t *remote, xmlNode *msg)
Definition: remote.c:501
int pcmk__accept_remote_connection(int ssock, int *csock)
Definition: remote.c:1207
int pcmk__remote_ready(pcmk__remote_t *remote, int timeout_ms)
Definition: remote.c:646
AIS_Host host
Definition: internal.h:84
int rc
Definition: pcmk_fence.c:35
void gnutls_session_t
Definition: cib_remote.c:44
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))
Definition: remote.c:1076
int pcmk__read_remote_message(pcmk__remote_t *remote, int timeout_ms)
Definition: remote.c:804
xmlNode * pcmk__remote_message_xml(pcmk__remote_t *remote)
Definition: remote.c:553
void pcmk__sockaddr2str(void *sa, char *s)
Definition: remote.c:1179