Added peerguardian
[openwrt.git] / openwrt / package / mini_httpd / files / matrixssl_helper.h
1 /*
2 * MatrixSSL helper functions
3 *
4 * Copyright (C) 2005 Nicolas Thill <nthill@free.fr>
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (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
17 #ifndef __MATRIXSSL_HELPER_H__
18 #define __MATRIXSSL_HELPER_H__
19
20 #include <matrixSsl/matrixSsl.h>
21
22 typedef struct __SSL {
23 int fd;
24 ssl_t *ssl;
25 sslKeys_t *keys;
26 sslBuf_t insock, outsock, inbuf;
27 int outBufferCount;
28 int partial;
29 int status;
30 } SSL;
31
32 SSL * SSL_new(sslKeys_t *keys);
33 void SSL_set_fd(SSL *ssl, int fd);
34 int SSL_accept(SSL *ssl);
35 int SSL_read(SSL *ssl, char *b, int len);
36 int SSL_write(SSL *ssl, char *buf, int len);
37 void SSL_free(SSL *ssl);
38
39 #endif /* __MATRIXSSL_HELPER_H__ */
This page took 0.055044 seconds and 5 git commands to generate.