From 404c9eac88a1c493e92a9020ae6add6610417875 Mon Sep 17 00:00:00 2001 From: mrcsys Date: Thu, 13 Apr 2006 20:00:32 +0000 Subject: SSL code updated to aways have a user verify function. added set_user_verify so that you can implement your own --- nanohttp/nanohttp-ssl.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'nanohttp/nanohttp-ssl.h') diff --git a/nanohttp/nanohttp-ssl.h b/nanohttp/nanohttp-ssl.h index 5e732c2..82758d0 100644 --- a/nanohttp/nanohttp-ssl.h +++ b/nanohttp/nanohttp-ssl.h @@ -1,5 +1,5 @@ /****************************************************************** -* $Id: nanohttp-ssl.h,v 1.13 2006/03/27 12:53:19 m0gg Exp $ +* $Id: nanohttp-ssl.h,v 1.14 2006/04/13 20:00:32 mrcsys Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2001-2005 Rochester Institute of Technology @@ -81,8 +81,9 @@ int verify_sn(X509 * cert, int who, int nid, char *str); /* * This function MUST be implemented by user client/server code somewhere */ +void set_user_verify( int func(X509 * cert) ); -int user_verify(X509 * cert); +static int simple_user_verify(X509 * cert); #ifdef __cplusplus } -- cgit v1.1-32-gdbae