]> git.sur5r.net Git - openldap/commitdiff
TLS session id
authorKurt Zeilenga <kurt@openldap.org>
Fri, 6 Sep 2002 03:20:06 +0000 (03:20 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 6 Sep 2002 03:20:06 +0000 (03:20 +0000)
libraries/libldap/tls.c

index ed31ff94bcf0a35bda8d61ddb8f7a1e688a2825e..68f7e09b59210ed8c56be0560cf983d9563169af 100644 (file)
@@ -231,6 +231,9 @@ ldap_pvt_tls_init_def_ctx( void )
                        goto error_exit;
                }
 
+               SSL_CTX_set_session_id_context( tls_def_ctx,
+                       "OpenLDAP", sizeof("OpenLDAP")-1 );
+
                if ( tls_opt_ciphersuite &&
                        !SSL_CTX_set_cipher_list( tls_def_ctx, ciphersuite ) )
                {
@@ -884,7 +887,6 @@ ldap_pvt_tls_get_my_dn( void *s, struct berval *dn, LDAPDN_rewrite_dummy *func,
        
        xn = X509_get_subject_name(x);
        rc = ldap_X509dn2bv(xn, dn, (LDAPDN_rewrite_func *)func, flags );
-       X509_free(x);
        return rc;
 }