1 /* 2 SSL interface definitions internal to neon. 3 Copyright (C) 2003, Joe Orton <joe@manyfish.co.uk> 4 5 This library is free software; you can redistribute it and/or 6 modify it under the terms of the GNU Library General Public 7 License as published by the Free Software Foundation; either 8 version 2 of the License, or (at your option) any later version. 9 10 This library 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 GNU 13 Library General Public License for more details. 14 15 You should have received a copy of the GNU Library General Public 16 License along with this library; if not, write to the Free 17 Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, 18 MA 02111-1307, USA 19 20 */ 21 22 /* THIS IS NOT A PUBLIC INTERFACE. You CANNOT include this header file 23 * from an application. */ 24 25 #ifndef NE_PRIVSSL_H 26 #define NE_PRIVSSL_H 27 28 /* This is the private interface between ne_socket and ne_openssl. */ 29 30 #ifdef NEON_SSL 31 32 #include <openssl/ssl.h> 33 34 #include "ne_ssl.h" 35 36 /* SSL context */ 37 struct ne_ssl_context_s { 38 SSL_CTX *ctx; 39 SSL_SESSION *sess; 40 }; 41 42 struct ne_ssl_socket_s { 43 SSL *ssl; 44 }; 45 46 #endif /* NEON_SSL */ 47 48 #endif 49