| # | 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 | } | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |