mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-11-27 02:22:00 +08:00
Additional updates for devel (NT builds, header changes, todo update)
This commit is contained in:
parent
3b15c6f10f
commit
b32dc224ae
@ -310,7 +310,7 @@ main( int argc, char **argv )
|
||||
fprintf( stderr, "Could not set LDAP_OPT_PROTOCOL_VERSION %d\n", version );
|
||||
}
|
||||
|
||||
if ( use_tls && ldap_start_tls( ld, NULL, NULL ) != LDAP_SUCCESS ) {
|
||||
if ( use_tls && ldap_start_tls_s( ld, NULL, NULL ) != LDAP_SUCCESS ) {
|
||||
if ( use_tls > 1 ) {
|
||||
ldap_perror( ld, "ldap_start_tls" );
|
||||
return( EXIT_FAILURE );
|
||||
|
@ -374,7 +374,7 @@ main( int argc, char **argv )
|
||||
fprintf( stderr, "Could not set LDAP_OPT_PROTOCOL_VERSION to %d\n", version );
|
||||
}
|
||||
|
||||
if ( use_tls && ldap_start_tls( ld, NULL, NULL ) != LDAP_SUCCESS ) {
|
||||
if ( use_tls && ldap_start_tls_s( ld, NULL, NULL ) != LDAP_SUCCESS ) {
|
||||
if ( use_tls > 1 ) {
|
||||
ldap_perror( ld, "ldap_start_tls" );
|
||||
return( EXIT_FAILURE );
|
||||
|
@ -357,7 +357,7 @@ main(int argc, char **argv)
|
||||
fprintf( stderr, "Could not set LDAP_OPT_PROTOCOL_VERSION %d\n", version );
|
||||
}
|
||||
|
||||
if ( use_tls && ldap_start_tls( ld, NULL, NULL ) != LDAP_SUCCESS ) {
|
||||
if ( use_tls && ldap_start_tls_s( ld, NULL, NULL ) != LDAP_SUCCESS ) {
|
||||
if ( use_tls > 1 ) {
|
||||
ldap_perror( ld, "ldap_start_tls" );
|
||||
return( EXIT_FAILURE );
|
||||
|
@ -314,7 +314,7 @@ main( int argc, char *argv[] )
|
||||
fprintf( stderr, "Could not set LDAP_OPT_PROTOCOL_VERSION %d\n", version );
|
||||
}
|
||||
|
||||
if ( use_tls && ldap_start_tls( ld, NULL, NULL ) != LDAP_SUCCESS ) {
|
||||
if ( use_tls && ldap_start_tls_s( ld, NULL, NULL ) != LDAP_SUCCESS ) {
|
||||
if ( use_tls > 1 ) {
|
||||
ldap_perror( ld, "ldap_start_tls" );
|
||||
return( EXIT_FAILURE );
|
||||
|
@ -517,7 +517,7 @@ main( int argc, char **argv )
|
||||
fprintf( stderr, "Could not set LDAP_OPT_PROTOCOL_VERSION %d\n", version );
|
||||
}
|
||||
|
||||
if ( use_tls && ldap_start_tls( ld, NULL, NULL ) != LDAP_SUCCESS ) {
|
||||
if ( use_tls && ldap_start_tls_s( ld, NULL, NULL ) != LDAP_SUCCESS ) {
|
||||
if ( use_tls > 1 ) {
|
||||
ldap_perror( ld, "ldap_start_tls" );
|
||||
return( EXIT_FAILURE );
|
||||
|
@ -351,6 +351,10 @@ SOURCE=.\tls.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\tmplout.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\ufn.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
@ -230,7 +230,7 @@ ldap_initialize( LDAP **ldp, LDAP_CONST char *url )
|
||||
}
|
||||
|
||||
int
|
||||
ldap_start_tls ( LDAP *ld,
|
||||
ldap_start_tls_s ( LDAP *ld,
|
||||
LDAPControl **serverctrls,
|
||||
LDAPControl **clientctrls )
|
||||
{
|
||||
@ -249,8 +249,10 @@ ldap_start_tls ( LDAP *ld,
|
||||
for (lc = ld->ld_conns; lc != NULL; lc = lc->lconn_next) {
|
||||
if (ldap_pvt_tls_inplace(lc->lconn_sb) != 0)
|
||||
return LDAP_OPERATIONS_ERROR;
|
||||
|
||||
rc = ldap_extended_operation_s(ld, LDAP_EXOP_START_TLS,
|
||||
NULL, serverctrls, clientctrls, &rspoid, &rspdata);
|
||||
|
||||
if (rc != LDAP_SUCCESS)
|
||||
return rc;
|
||||
if (rspoid != NULL)
|
||||
|
@ -281,6 +281,7 @@ SOURCE=..\libldap\print.c
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\rdwr.c
|
||||
# ADD CPP /I "..\libldap"
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
@ -332,10 +333,6 @@ SOURCE=.\thr_nt.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\thr_sleep.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\thr_stub.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
@ -348,6 +345,15 @@ SOURCE=..\libldap\tls.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\libldap\tmplout.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\tpool.c
|
||||
# ADD CPP /I "..\libldap"
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\libldap\ufn.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
@ -52,7 +52,7 @@ int ldap_pvt_thread_destroy( void )
|
||||
#ifndef LDAP_THREAD_HAVE_TPOOL
|
||||
(void) ldap_int_thread_pool_shutdown();
|
||||
#endif
|
||||
(void) ldap_int_thread_destroy();
|
||||
return ldap_int_thread_destroy();
|
||||
}
|
||||
|
||||
#ifndef LDAP_THREAD_HAVE_GETCONCURRENCY
|
||||
|
Loading…
Reference in New Issue
Block a user