From 84693bb5f792e6d6accd1ad2e81fe6baeb4f4ea1 Mon Sep 17 00:00:00 2001 From: snowdrop Date: Mon, 19 Dec 2005 14:06:15 +0000 Subject: integrated with ssl (https) capability --- nanohttp/nanohttp-socket.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'nanohttp/nanohttp-socket.h') diff --git a/nanohttp/nanohttp-socket.h b/nanohttp/nanohttp-socket.h index e9a69f6..5613ac7 100644 --- a/nanohttp/nanohttp-socket.h +++ b/nanohttp/nanohttp-socket.h @@ -1,5 +1,5 @@ /****************************************************************** - * $Id: nanohttp-socket.h,v 1.15 2004/11/02 23:09:27 snowdrop Exp $ + * $Id: nanohttp-socket.h,v 1.16 2005/12/19 14:06:16 snowdrop Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -27,6 +27,7 @@ #include #include +#include #ifdef WIN32 #include @@ -34,10 +35,16 @@ #ifdef WIN32 - typedef SOCKET hsocket_t; + typedef struct hsocket_t { + SSL *ssl; + SOCKET sock; + } hsocket_t; typedef int socklen_t; #else - typedef int hsocket_t; + typedef struct hsocket_t { + SSL *ssl; + int sock; + } hsocket_t; #endif @@ -66,7 +73,7 @@ void hsocket_module_destroy(); @returns This function should always return H_OK. */ -herror_t hsocket_init(hsocket_t *sock); +herror_t hsocket_init(hsocket_t *sock ); /** -- cgit v1.1-32-gdbae