pacemaker  2.1.7-0f7f88312f
Scalable High-Availability cluster resource manager
remote_internal.h
Go to the documentation of this file.
1 /*
2  * Copyright 2008-2023 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_INTERNAL__H
11 # define PCMK__REMOTE_INTERNAL__H
12 
13 // internal functions from remote.c
14 
16 
17 int pcmk__remote_send_xml(pcmk__remote_t *remote, const xmlNode *msg);
18 int pcmk__remote_ready(const 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(const 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(const 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_INTERNAL__H
pcmk__cpg_host_t host
Definition: cpg.c:49
int pcmk__accept_remote_connection(int ssock, int *csock)
Definition: remote.c:1203
int pcmk__remote_ready(const pcmk__remote_t *remote, int timeout_ms)
Definition: remote.c:638
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:1068
void pcmk__sockaddr2str(const void *sa, char *s)
Definition: remote.c:1174
int pcmk__remote_send_xml(pcmk__remote_t *remote, const xmlNode *msg)
Definition: remote.c:492
int pcmk__read_remote_message(pcmk__remote_t *remote, int timeout_ms)
Definition: remote.c:796
xmlNode * pcmk__remote_message_xml(pcmk__remote_t *remote)
Definition: remote.c:544