From d980b42b90452e50a4475cb8db6d4e6c300deff9 Mon Sep 17 00:00:00 2001 From: psychon Date: Wed, 20 May 2009 08:48:22 +0000 Subject: [PATCH] Ask SSL clients for a ssl cert git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1510 726aef4b-f618-498e-8847-2d620e286838 --- znc.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/znc.h b/znc.h index 791a8c84..7aca2ea8 100644 --- a/znc.h +++ b/znc.h @@ -287,6 +287,9 @@ public: if (IsSSL()) { bSSL = true; m_pListener->SetPemLocation(CZNC::Get().GetPemLocation()); + + // Ask the client for a cert, if it got none, nothing bad happens + m_pListener->SetRequireClientCertFlags(SSL_VERIFY_PEER); } #endif