diff options
-rw-r--r-- | nanohttp/nanohttp-ssl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nanohttp/nanohttp-ssl.c b/nanohttp/nanohttp-ssl.c index 47f7697..8921585 100644 --- a/nanohttp/nanohttp-ssl.c +++ b/nanohttp/nanohttp-ssl.c @@ -130,6 +130,7 @@ static int verify_cb(int prev_ok, X509_STORE_CTX* ctx) } } +#ifdef NOUSER_VERIFY int user_verify(X509* cert) { //TODO: Make sure that the client is providing a client cert, @@ -138,6 +139,7 @@ int user_verify(X509* cert) log_verbose1("Validating certificate."); return 1; } +#endif SSL_CTX *initialize_ctx(char* keyfile, char* password, char* calist) { |