Signed-off-by: Alon Bar-Lev <alon.bar...@gmail.com> --- src/openvpn/ssl_verify_openssl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/openvpn/ssl_verify_openssl.c b/src/openvpn/ssl_verify_openssl.c index 1ccfc60..5a73f6a 100644 --- a/src/openvpn/ssl_verify_openssl.c +++ b/src/openvpn/ssl_verify_openssl.c @@ -240,7 +240,7 @@ x509_free_serial (char *serial) unsigned char * x509_get_sha1_hash (X509 *cert) { - char *hash = malloc(SHA_DIGEST_LENGTH); + unsigned char *hash = malloc(SHA_DIGEST_LENGTH); memcpy(hash, cert->sha1_hash, SHA_DIGEST_LENGTH); return hash; } -- 1.7.3.4