]>
Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * sslproc.h: An interface to the ratbox ssld helper daemon | |
3 | * Copyright (C) 2007 Aaron Sethman <androsyn@ratbox.org> | |
4 | * Copyright (C) 2007 ircd-ratbox development team | |
5 | * | |
6 | * This program is free software; you can redistribute it and/or modify | |
7 | * it under the terms of the GNU General Public License as published by | |
8 | * the Free Software Foundation; either version 2 of the License, or | |
9 | * (at your option) any later version. | |
10 | * | |
11 | * This program is distributed in the hope that it will be useful, | |
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | * GNU General Public License for more details. | |
15 | * | |
16 | * You should have received a copy of the GNU General Public License | |
17 | * along with this program; if not, write to the Free Software | |
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 | |
19 | * USA | |
20 | * | |
21 | * $Id: sslproc.h 25179 2008-03-30 16:34:57Z androsyn $ | |
22 | */ | |
23 | ||
24 | #ifndef INCLUDED_sslproc_h | |
25 | #define INCLUDED_sslproc_h | |
26 | ||
27 | struct _ssl_ctl; | |
28 | typedef struct _ssl_ctl ssl_ctl_t; | |
29 | ||
30 | enum ssld_status { | |
31 | SSLD_ACTIVE, | |
32 | SSLD_SHUTDOWN, | |
33 | SSLD_DEAD, | |
34 | }; | |
35 | ||
36 | void init_ssld(void); | |
37 | void restart_ssld(void); | |
38 | int start_ssldaemon(int count, const char *ssl_cert, const char *ssl_private_key, const char *ssl_dh_params, const char *ssl_cipher_list); | |
39 | ssl_ctl_t *start_ssld_accept(rb_fde_t *sslF, rb_fde_t *plainF, uint32_t id); | |
40 | ssl_ctl_t *start_ssld_connect(rb_fde_t *sslF, rb_fde_t *plainF, uint32_t id); | |
41 | void start_zlib_session(void *data); | |
42 | void send_new_ssl_certs(const char *ssl_cert, const char *ssl_private_key, const char *ssl_dh_params, const char *ssl_cipher_list); | |
43 | void ssld_decrement_clicount(ssl_ctl_t *ctl); | |
44 | int get_ssld_count(void); | |
45 | void ssld_foreach_info(void (*func)(void *data, pid_t pid, int cli_count, enum ssld_status status), void *data); | |
46 | ||
47 | #endif | |
48 |