pacemaker 2.1.5-a3f44794f94
Scalable High-Availability cluster resource manager
remote_internal.h
Go to the documentation of this file.
1/*
2 * Copyright 2008-2022 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
17int pcmk__remote_send_xml(pcmk__remote_t *remote, xmlNode *msg);
18int pcmk__remote_ready(const pcmk__remote_t *remote, int timeout_ms);
19int pcmk__read_remote_message(pcmk__remote_t *remote, int timeout_ms);
21int 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));
24int pcmk__accept_remote_connection(int ssock, int *csock);
25void pcmk__sockaddr2str(const void *sa, char *s);
26
27# ifdef HAVE_GNUTLS_GNUTLS_H
28# include <gnutls/gnutls.h>
29
30gnutls_session_t *pcmk__new_tls_session(int csock, unsigned int conn_type,
31 gnutls_credentials_type_t cred_type,
32 void *credentials);
33int pcmk__init_tls_dh(gnutls_dh_params_t *dh_params);
34int pcmk__read_handshake_data(const pcmk__client_t *client);
35
45int pcmk__tls_client_handshake(pcmk__remote_t *remote, int timeout_ms);
46
47# endif // HAVE_GNUTLS_GNUTLS_H
48#endif // PCMK__REMOTE_INTERNAL__H
void gnutls_session_t
Definition: cib_remote.c:42
int pcmk__remote_ready(const pcmk__remote_t *remote, int timeout_ms)
Definition: remote.c:633
int pcmk__remote_send_xml(pcmk__remote_t *remote, xmlNode *msg)
Definition: remote.c:488
int pcmk__accept_remote_connection(int ssock, int *csock)
Definition: remote.c:1195
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:1063
void pcmk__sockaddr2str(const void *sa, char *s)
Definition: remote.c:1166
xmlNode * pcmk__remote_message_xml(pcmk__remote_t *remote)
Definition: remote.c:540
int pcmk__read_remote_message(pcmk__remote_t *remote, int timeout_ms)
Definition: remote.c:791
pcmk__cpg_host_t host
Definition: cpg.c:4