diff options
author | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-10-01 19:43:05 +0000 |
---|---|---|
committer | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-10-01 19:43:05 +0000 |
commit | e506a4f56e1d0e28c4fc6397a83831344878be25 (patch) | |
tree | b1556f838f1b57cec6a0772240ba918e398c744a /src | |
parent | 92baab8a7552ad03203c78ff280d26a6c7f6b660 (diff) |
64bit fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5374 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/extra/m_ssl_gnutls.cpp | 5 |
1 files 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)); |