From 4c74e76d51dfa55ec0cb1fa35060a256c1af1874 Mon Sep 17 00:00:00 2001 From: snowdrop Date: Fri, 6 Jan 2006 16:15:24 +0000 Subject: wrapped call to verify_user() by ifdef ifdef --- nanohttp/nanohttp-ssl.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nanohttp') diff --git a/nanohttp/nanohttp-ssl.c b/nanohttp/nanohttp-ssl.c index 93dcb6a..766ac98 100644 --- a/nanohttp/nanohttp-ssl.c +++ b/nanohttp/nanohttp-ssl.c @@ -126,12 +126,16 @@ static int verify_cb(int prev_ok, X509_STORE_CTX* ctx) return 1; } */ +#ifdef NOUSER_VERIFY /* ifdef's added by Ferhat. because of unresolved reference while compiling */ if(depth == 0) { return user_verify(cert); } else { +#endif log_verbose1( "Cert ok (prev)" ); return prev_ok; +#ifdef NOUSER_VERIFY } +#endif } #ifdef NOUSER_VERIFY -- cgit v1.1-32-gdbae