|
9 | 9 |
|
10 | 10 | #include <crm_internal.h> |
11 | 11 |
|
12 | | -#include <unistd.h> |
13 | | -#include <stdbool.h> |
14 | | -#include <stdlib.h> |
15 | | -#include <stdio.h> |
16 | | -#include <stdarg.h> |
17 | | -#include <string.h> |
18 | | -#include <netdb.h> |
19 | | -#include <termios.h> |
20 | | -#include <sys/socket.h> |
21 | | - |
22 | | -#include <glib.h> |
23 | | -#include <gnutls/gnutls.h> |
24 | | - |
25 | | -#include <crm/crm.h> |
26 | | -#include <crm/cib/internal.h> |
27 | | -#include <crm/common/mainloop.h> |
28 | | -#include <crm/common/xml.h> |
29 | | - |
30 | | -#include <gnutls/gnutls.h> |
| 12 | +#include <errno.h> // ENOTCONN, EPROTO, EAGAIN |
| 13 | +#include <stdbool.h> // false, bool, true |
| 14 | +#include <stdlib.h> // NULL, free, calloc |
| 15 | +#include <string.h> // strdup |
| 16 | +#include <sys/socket.h> // shutdown, SHUT_RDWR |
| 17 | +#include <time.h> // time, time_t |
| 18 | +#include <unistd.h> // close |
| 19 | + |
| 20 | +#include <glib.h> // gpointer, gboolean, g_list_foreach |
| 21 | +#include <gnutls/gnutls.h> // gnutls_deinit, gnutls_bye |
| 22 | +#include <libxml/tree.h> // xmlNode |
| 23 | +#include <qb/qblog.h> // QB_XS |
| 24 | + |
| 25 | +#include <crm/cib/internal.h> // cib__create_op, cib__extend_transaction |
| 26 | +#include <crm/common/internal.h> |
| 27 | +#include <crm/common/mainloop.h> // mainloop_fd_callbacks |
| 28 | +#include <crm/crm.h> // CRM_OP_REGISTER, crm_system_name |
| 29 | +#include <crm/cib.h> // cib_remote_new |
| 30 | +#include <crm/cib/cib_types.h> // cib_s, cib_t |
| 31 | +#include <crm/common/results.h> // pcmk_rc_str, pcmk_rc_* |
| 32 | +#include <crm/common/xml_names.h> // PCMK_XA_OP, PCMK_XA_REMOTE_TLS_PORT |
| 33 | +#include <crm_config.h> // PACEMAKER_CONFIG_DIR |
31 | 34 |
|
32 | 35 | // GnuTLS handshake timeout in seconds |
33 | 36 | #define TLS_HANDSHAKE_TIMEOUT 5 |
|
0 commit comments