diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-03 18:26:34 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-03 18:26:34 +0000 |
commit | 5ec6f8616938a7e2bdf906b43a5bf3f976ace016 (patch) | |
tree | e12830dac5e14960fb2f28065319158bcd2d603f /src/modules/extra | |
parent | b02af8b2a9787c3fad7e317540dbfef72610d53e (diff) |
Certificate stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5124 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/extra')
-rw-r--r-- | src/modules/extra/m_ssl_gnutls.cpp | 1 | ||||
-rw-r--r-- | src/modules/extra/m_ssl_openssl.cpp | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp index 1ce19b29f..df14bbed1 100644 --- a/src/modules/extra/m_ssl_gnutls.cpp +++ b/src/modules/extra/m_ssl_gnutls.cpp @@ -684,6 +684,7 @@ class ModuleSSLGnuTLS : public Module return; } + cert_list_size = 0; cert_list = gnutls_certificate_get_peers(session->sess, &cert_list_size); if (cert_list == NULL) { diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp index d78618414..812198b88 100644 --- a/src/modules/extra/m_ssl_openssl.cpp +++ b/src/modules/extra/m_ssl_openssl.cpp @@ -14,6 +14,8 @@ #include "hashcomp.h" #include "inspircd.h" +#include "ssl_cert.h" + /* $ModDesc: Provides SSL support for clients */ /* $CompileFlags: -I/usr/include -I/usr/local/include */ /* $LinkerFlags: -L/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib -L/usr/lib -Wl,--rpath -Wl,/usr/lib -lssl */ @@ -657,6 +659,14 @@ class ModuleSSLOpenSSL : public Module session->sess = NULL; session->status = ISSL_NONE; } + + void VerifyCertificate(issl_session* session, userrec* user) + { + + + + + } }; class ModuleSSLOpenSSLFactory : public ModuleFactory |