diff options
author | snowdrop | 2005-12-19 14:06:15 +0000 |
---|---|---|
committer | snowdrop | 2005-12-19 14:06:15 +0000 |
commit | 84693bb5f792e6d6accd1ad2e81fe6baeb4f4ea1 (patch) | |
tree | 34d1f68d2d887770e8a67fe5d65e82ec2cdfebe3 /nanohttp/nanohttp-socket.h | |
parent | 7fe73dd2cd46d43b97bd8766849f2dffabb6a2d4 (diff) | |
download | csoap-84693bb5f792e6d6accd1ad2e81fe6baeb4f4ea1.tar.gz csoap-84693bb5f792e6d6accd1ad2e81fe6baeb4f4ea1.tar.bz2 |
integrated with ssl (https) capability
Diffstat (limited to 'nanohttp/nanohttp-socket.h')
-rw-r--r-- | nanohttp/nanohttp-socket.h | 15 |
1 files changed, 11 insertions, 4 deletions
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 <nanohttp/nanohttp-common.h> #include <time.h> +#include <openssl/ssl.h> #ifdef WIN32 #include <winsock2.h> @@ -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 ); /** |