diff options
-rw-r--r-- | nanohttp/nanohttp-ssl.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 |