00001 // Copyright (c) 2014 Cesanta Software Limited 00002 // All rights reserved 00003 // 00004 // This software is dual-licensed: you can redistribute it and/or modify 00005 // it under the terms of the GNU General Public License version 2 as 00006 // published by the Free Software Foundation. For the terms of this 00007 // license, see <http://www.gnu.org/licenses/>. 00008 // 00009 // You are free to use this software under the terms of the GNU General 00010 // Public License, but WITHOUT ANY WARRANTY; without even the implied 00011 // warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00012 // See the GNU General Public License for more details. 00013 // 00014 // Alternatively, you can license this software under a commercial 00015 // license, as set out in <http://cesanta.com/products.html>. 00016 // 00017 // $Date$ 00018 00019 #ifndef SSL_WRAPPER_HEADER_INCLUDED 00020 #define SSL_WRAPPER_HEADER_INCLUDED 00021 00022 #ifdef __cplusplus 00023 extern "C" { 00024 #endif // __cplusplus 00025 00026 void *ssl_wrapper_init(const char *listen_addr, const char *target_addr, 00027 const char **err_msg); 00028 void ssl_wrapper_serve(void *, volatile int *stop_marker); 00029 00030 #ifdef __cplusplus 00031 } 00032 #endif // __cplusplus 00033 00034 #endif // SSL_WRAPPER_HEADER_INCLUDED