1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-02 10:53:16 +03:00

Use generic APIs for (HMAC-)MD5/SHA1 and RNG, and implement them via OpenSSL/libgcrypt.

This commit is contained in:
Simon Josefsson
2007-01-15 21:12:00 +00:00
parent 362d3466cf
commit 79761a6455
10 changed files with 231 additions and 79 deletions

View File

@@ -45,10 +45,11 @@
#ifndef WIN32
#include <sys/socket.h>
#endif
#include <openssl/evp.h>
#include <openssl/sha.h>
#ifndef OPENSSL_NO_MD5
#include <openssl/md5.h>
#if LIBSSH2_LIBGCRYPT
#include "libgcrypt.h"
#else
#include "openssl.h"
#endif
#define LIBSSH2_ALLOC(session, count) session->alloc((count), &(session)->abstract)