2 * MatrixSSL helper functions
4 * Copyright (C) 2005 Nicolas Thill <nthill@free.fr>
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.
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.
17 #ifndef __MATRIXSSL_HELPER_H__
18 #define __MATRIXSSL_HELPER_H__
20 #include <matrixSsl/matrixSsl.h>
22 typedef struct __SSL
{
26 sslBuf_t insock
, outsock
, inbuf
;
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
);
39 #endif /* __MATRIXSSL_HELPER_H__ */
This page took 0.047035 seconds and 5 git commands to generate.