From: Howard Chu Date: Thu, 25 Jan 2018 15:36:00 +0000 (+0000) Subject: Cleanup warnings X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f09ffffcbd5a0e2c345ef2563d3d4d64bd049550;p=openldap Cleanup warnings --- diff --git a/libraries/libldap/tls_o.c b/libraries/libldap/tls_o.c index c97ed71fb3..8cd98b4ac9 100644 --- a/libraries/libldap/tls_o.c +++ b/libraries/libldap/tls_o.c @@ -121,7 +121,7 @@ static void tlso_thr_init( void ) {} * OpenSSL 1.1 API and later makes the BIO method concrete types internal. */ -static const BIO_METHOD * +static BIO_METHOD * BIO_meth_new( int type, const char *name ) { BIO_METHOD *method = LDAP_MALLOC( sizeof(BIO_METHOD) ); @@ -883,7 +883,7 @@ static int tlso_session_pinning( LDAP *ld, tls_session *sess, char *hashalg, struct berval *hash ) { tlso_session *s = (tlso_session *)sess; - char *tmp, digest[EVP_MAX_MD_SIZE]; + unsigned char *tmp, digest[EVP_MAX_MD_SIZE]; struct berval key, keyhash = { .bv_val = digest, .bv_len = sizeof(digest) }; X509 *cert = SSL_get_peer_certificate(s);