From 5af10db8fa81b0f74905ae1302aafe43221e4d27 Mon Sep 17 00:00:00 2001 From: m0gg Date: Mon, 15 May 2006 06:40:47 +0000 Subject: Code cleanup --- nanohttp/nanohttp-ssl.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'nanohttp/nanohttp-ssl.h') diff --git a/nanohttp/nanohttp-ssl.h b/nanohttp/nanohttp-ssl.h index 7559c8b..12f3fcf 100644 --- a/nanohttp/nanohttp-ssl.h +++ b/nanohttp/nanohttp-ssl.h @@ -1,5 +1,5 @@ /****************************************************************** -* $Id: nanohttp-ssl.h,v 1.17 2006/04/26 17:48:30 mrcsys Exp $ +* $Id: nanohttp-ssl.h,v 1.18 2006/05/15 06:40:47 m0gg Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2001-2005 Rochester Institute of Technology @@ -84,13 +84,8 @@ extern "C" /* static int verify_cb(int prev_ok, X509_STORE_CTX* ctx); */ -/* - * This function MUST be implemented by user client/server code somewhere - */ void hssl_set_user_verify(int func(X509 * cert)); - static int _hssl_dummy_verify_cert(X509 * cert); - #ifdef __cplusplus } #endif @@ -119,6 +114,7 @@ hssl_client_ssl(hsocket_t * sock) { return H_OK; } + static inline herror_t hssl_server_ssl(hsocket_t * sock) { @@ -137,7 +133,7 @@ hssl_cleanup(hsocket_t * sock) extern "C" { #endif - long hssl_bio_read(BIO * b, char *out, int outl); + herror_t hssl_read(hsocket_t * sock, char *buf, size_t len, size_t * received); herror_t hssl_write(hsocket_t * sock, const char *buf, size_t len, -- cgit v1.1-32-gdbae