ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/src/s_bsd.c
(Generate patch)

Comparing ircd-hybrid/branches/8.2.x/src/s_bsd.c (file contents):
Revision 3377 by michael, Thu Apr 24 16:15:51 2014 UTC vs.
Revision 4112 by michael, Tue Jul 1 16:02:36 2014 UTC

# Line 25 | Line 25
25   */
26  
27   #include "stdinc.h"
28 + #ifdef HAVE_LIBCRYPTO
29 + #include "rsa.h"
30 + #endif
31   #include <netinet/in_systm.h>
32   #include <netinet/ip.h>
33   #include <netinet/tcp.h>
# Line 280 | Line 283 | ssl_handshake(int fd, struct Client *cli
283  
284        if (X509_digest(cert, EVP_sha256(), md, &n))
285        {
286 <        for (unsigned int i = 0; i < n; ++i)
284 <          snprintf(buf + 2 * i, 3, "%02X", md[i]);
286 >        binary_to_hex(md, buf, n);
287          client_p->certfp = xstrdup(buf);
288        }
289      }

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)