Helium
wolf.h
Go to the documentation of this file.
1 /* *
2  * Lightway Core
3  * Copyright (C) 2021 Express VPN International Ltd.
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18  */
19 
26 #ifndef WOLF_H
27 #define WOLF_H
28 
29 #ifndef WOLFSSL_USER_SETTINGS
30 #include <wolfssl/options.h>
31 #endif
32 #include <wolfssl/wolfcrypt/settings.h>
33 #include <wolfssl/ssl.h>
34 
54 int he_wolf_dtls_read(WOLFSSL *ssl, char *buf, int sz, void *ctx);
55 
73 int he_wolf_dtls_write(WOLFSSL *ssl, char *buf, int sz, void *ctx);
74 
83 
102 int he_wolf_tls_read(WOLFSSL *ssl, char *buf, int sz, void *ctx);
103 
104 // Todo document this
105 int he_wolf_tls_write(WOLFSSL *ssl, char *buf, int sz, void *ctx);
106 
107 #endif // WOLF_H
The wire header format It is strongly discouraged to interact with this header structure, however, it is provided for specific use cases (such as a server rejecting a session, where by definition we don&#39;t have a connection object).
Definition: he.h:629
int he_internal_write_packet_header(he_conn_t *conn, he_wire_hdr_t *hdr)
Write the packet header into the header buffer.
Definition: wolf.c:62
int he_wolf_dtls_write(WOLFSSL *ssl, char *buf, int sz, void *ctx)
Callback function to handle WolfSSL write requests.
Definition: wolf.c:94
int he_wolf_tls_read(WOLFSSL *ssl, char *buf, int sz, void *ctx)
Callback function to handle TLS WolfSSL read requests.
Definition: wolf.c:160
int he_wolf_dtls_read(WOLFSSL *ssl, char *buf, int sz, void *ctx)
Callback function to handle WolfSSL read requests.
Definition: wolf.c:25
Definition: he.h:483