syslog-ng source
afsocket-signals.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2023 Balazs Scheidler <bazsi77@gmail.com>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17  *
18  * As an additional exemption you are allowed to compile & link against the
19  * OpenSSL libraries as published by the OpenSSL project. See the file
20  * COPYING for details.
21  *
22  */
23 
24 #ifndef AFSOCKET_SIGNALS_H_INCLUDED
25 #define AFSOCKET_SIGNALS_H_INCLUDED
26 
28 #include "transport/tls-context.h"
29 
30 typedef struct _AFSocketTLSCertificateValidationSignalData
31 {
32  TLSContext *tls_context;
33  X509_STORE_CTX *ctx;
34  gboolean failure;
36 
37 typedef struct _AFSocketSetupSocketSignalData
38 {
39  gint sock;
40  /* initialized to FALSE by the caller, must be set to TRUE in order to
41  * fail the initialization */
42  gboolean failure;
44 
45 #define signal_afsocket_setup_socket SIGNAL(afsocket, setup_socket, AFSocketSetupSocketSignalData *)
46 
47 #define signal_afsocket_tls_certificate_validation SIGNAL(afsocket, tls_certificate_validation, AFSocketTLSCertificateValidationSignalData *)
48 
49 #endif
Definition: afsocket-signals.h:38
gint sock
Definition: afsocket-signals.h:39
gboolean failure
Definition: afsocket-signals.h:42
Definition: afsocket-signals.h:31
X509_STORE_CTX * ctx
Definition: afsocket-signals.h:33
gboolean failure
Definition: afsocket-signals.h:34
TLSContext * tls_context
Definition: afsocket-signals.h:32