From e506a4f56e1d0e28c4fc6397a83831344878be25 Mon Sep 17 00:00:00 2001 From: om Date: Sun, 1 Oct 2006 19:43:05 +0000 Subject: 64bit fixes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5374 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_ssl_gnutls.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp index 4a5f45aef..96f38be33 100644 --- a/src/modules/extra/m_ssl_gnutls.cpp +++ b/src/modules/extra/m_ssl_gnutls.cpp @@ -616,11 +616,12 @@ class ModuleSSLGnuTLS : public Module unsigned int status; const gnutls_datum_t* cert_list; int ret; - unsigned int cert_list_size, name_size; + unsigned int cert_list_size; gnutls_x509_crt_t cert; char name[MAXBUF]; unsigned char digest[MAXBUF]; size_t digest_size = sizeof(digest); + size_t name_size = sizeof(name); ssl_cert* certinfo = new ssl_cert; user->Extend("ssl_cert",certinfo); @@ -705,12 +706,10 @@ class ModuleSSLGnuTLS : public Module return; } - name_size = sizeof(name); gnutls_x509_crt_get_dn(cert, name, &name_size); certinfo->data.insert(std::make_pair("dn",name)); - name_size = sizeof(name); gnutls_x509_crt_get_issuer_dn(cert, name, &name_size); certinfo->data.insert(std::make_pair("issuer",name)); -- cgit v1.2.3