Lines Matching defs:ld

64 static int LDAP_CALLBACK prldap_newhandle( LDAP *ld,
66 static void LDAP_CALLBACK prldap_disposehandle( LDAP *ld,
68 static int LDAP_CALLBACK prldap_shared_newhandle( LDAP *ld,
70 static void LDAP_CALLBACK prldap_shared_disposehandle( LDAP *ld,
93 * Install NSPR I/O functions into ld (if ld is NULL, they are installed
99 prldap_install_io_functions( LDAP *ld, int shared )
117 if ( NULL != ld ) {
119 * If we are dealing with a real ld, we allocate the session specific
125 ldap_set_lderrno( ld, LDAP_NO_MEMORY, NULL, NULL );
132 if ( ldap_set_option( ld, LDAP_X_OPT_EXTIO_FN_PTRS, &iofns ) != 0 ) {
489 prldap_newhandle( LDAP *ld, struct lextiof_session_private *sessionarg )
497 if ( ldap_get_option( ld, LDAP_X_OPT_EXTIO_FN_PTRS,
499 return( ldap_get_lderrno( ld, NULL, NULL ));
505 if ( ldap_set_option( ld, LDAP_X_OPT_EXTIO_FN_PTRS,
507 return( ldap_get_lderrno( ld, NULL, NULL ));
517 prldap_shared_newhandle( LDAP *ld, struct lextiof_session_private *sessionarg )
521 if (( rc = prldap_newhandle( ld, sessionarg )) == LDAP_SUCCESS ) {
522 rc = prldap_thread_new_handle( ld, sessionarg );
530 prldap_disposehandle( LDAP *ld, struct lextiof_session_private *sessionarg )
538 prldap_shared_disposehandle( LDAP *ld,
541 prldap_thread_dispose_handle( ld, sessionarg );
542 prldap_disposehandle( ld, sessionarg );
584 prldap_session_arg_from_ld( LDAP *ld, PRLDAPIOSessionArg **sessargpp )
588 if ( NULL == ld || NULL == sessargpp ) {
589 /* XXXmcs: NULL ld's are not supported */
590 ldap_set_lderrno( ld, LDAP_PARAM_ERROR, NULL, NULL );
596 if ( ldap_get_option( ld, LDAP_X_OPT_EXTIO_FN_PTRS, (void *)&iofns ) < 0 ) {
597 return( ldap_get_lderrno( ld, NULL, NULL ));
601 ldap_set_lderrno( ld, LDAP_LOCAL_ERROR, NULL, NULL );
615 prldap_socket_arg_from_ld( LDAP *ld, PRLDAPIOSocketArg **sockargpp )
620 if ( NULL == ld || NULL == sockargpp ) {
621 /* XXXmcs: NULL ld's are not supported */
622 ldap_set_lderrno( ld, LDAP_PARAM_ERROR, NULL, NULL );
626 if ( ldap_get_option( ld, LDAP_X_OPT_SOCKBUF, (void *)&sbp ) < 0 ) {
627 return( ldap_get_lderrno( ld, NULL, NULL ));
634 return( ldap_get_lderrno( ld, NULL, NULL ));
638 ldap_set_lderrno( ld, LDAP_LOCAL_ERROR, NULL, NULL );