]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Fixup error messages
authorKurt Zeilenga <kurt@openldap.org>
Sat, 23 Jun 2001 00:48:02 +0000 (00:48 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 23 Jun 2001 00:48:02 +0000 (00:48 +0000)
libraries/libldap/tls.c

index 3c98a285e0605818d8bc7039b988d99e9b61e3c0..f74c56ff99299f84862673011f00e3c0d792a8fa 100644 (file)
@@ -137,7 +137,8 @@ ldap_pvt_tls_init_def_ctx( void )
                tls_def_ctx = SSL_CTX_new( SSLv23_method() );
                if ( tls_def_ctx == NULL ) {
                        Debug( LDAP_DEBUG_ANY,
-                              "TLS: could not allocate default ctx.\n",0,0,0);
+                      "TLS: could not allocate default ctx (%d).\n",
+                               ERR_peek_error(),0,0);
                        goto error_exit;
                }
                if ( tls_opt_ciphersuite &&
@@ -928,7 +929,7 @@ ldap_pvt_tls_start ( LDAP *ld, Sockbuf *sb, void *ctx_arg )
 
        if ( strcasecmp(peer_hostname, peer_cert_cn) != 0 ) {
                Debug( LDAP_DEBUG_ANY, "TLS: hostname (%s) does not match "
-                       "common name in certificate (%s).", 
+                       "common name in certificate (%s).\n", 
                        peer_hostname, peer_cert_cn, 0 );
                LDAP_FREE( peer_cert_cn );
                LDAP_FREE( peer_hostname );