]> git.sur5r.net Git - openldap/commitdiff
silence warnings
authorPierangelo Masarati <ando@openldap.org>
Mon, 23 Dec 2002 12:02:29 +0000 (12:02 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 23 Dec 2002 12:02:29 +0000 (12:02 +0000)
libraries/libldap/tls.c

index 9a4b444304906fc993425f56c66b74940a2b8239..8a8b022248636e9d3aa53a800c92fa0062953231 100644 (file)
@@ -15,6 +15,7 @@
 #include <ac/errno.h>
 #include <ac/socket.h>
 #include <ac/string.h>
+#include <ac/ctype.h>
 #include <ac/time.h>
 #include <ac/unistd.h>
 #include <ac/param.h>
@@ -1016,8 +1017,8 @@ ldap_pvt_tls_check_hostname( LDAP *ld, void *s, const char *name_in )
                ex = X509_get_ext(x, i);
                alt = X509V3_EXT_d2i(ex);
                if (alt) {
-                       int n, len1, len2 = 0;
-                       char *domain;
+                       int n, len1 = 0, len2 = 0;
+                       char *domain = NULL;
                        GENERAL_NAME *gn;
 
                        if (ntype == IS_DNS) {
@@ -1422,7 +1423,7 @@ tls_info_cb( const SSL *ssl, int where, int ret )
 {
        int w;
        char *op;
-       char *state = (char *) SSL_state_string_long( ssl );
+       char *state = (char *) SSL_state_string_long( (SSL *)ssl );
 
        w = where & ~SSL_ST_MASK;
        if ( w & SSL_ST_CONNECT ) {