| 1 |
/* |
| 2 |
* Copyright (C) 2019 Red Hat, Inc. |
| 3 |
* SPDX-License-Identifier: LGPL-2.1-or-later |
| 4 |
*/ |
| 5 |
|
| 6 |
#pragma once |
| 7 |
|
| 8 |
#include <stdbool.h> |
| 9 |
#include <stdint.h> |
| 10 |
|
| 11 |
#include <gnutls/gnutls.h> |
| 12 |
|
| 13 |
/* init/teardown */ |
| 14 |
void |
| 15 |
connection_set_directories (const char *wsinstance_sockdir, |
| 16 |
const char *runtime_directory); |
| 17 |
|
| 18 |
void |
| 19 |
connection_crypto_init (int cert_dirfd, |
| 20 |
bool allow_unencrypted, |
| 21 |
gnutls_certificate_request_t request_mode); |
| 22 |
|
| 23 |
void |
| 24 |
connection_cleanup (void); |
| 25 |
|
| 26 |
/* handle a new connection */ |
| 27 |
void |
| 28 |
connection_thread_main (int fd); |