/*
* Portions Copyright 1998 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Copyright (c) 1990 Regents of the University of Michigan.
* All rights reserved.
*
*/
#ifndef lint
static char copyright[] = "@(#) Copyright (c) 1990 Regents of the University of Michigan.\nAll rights reserved.\n";
#endif
#include <stdio.h>
#include <string.h>
#endif
#include <malloc.h>
#include "msdos.h"
#endif /* DOS */
#ifdef MACOS
#include <stdlib.h>
#include "macos.h"
#endif /* MACOS */
#include "lber.h"
#include "ldap.h"
#include "ldap-private.h"
#include "ldap-int.h"
#ifdef NEEDPROTOS
#else /* NEEDPROTOS */
static int do_abandon();
#endif /* NEEDPROTOS */
{
int rc;
/* create a message to send */
rc = -1;
return (NULLBER);
}
#ifdef CLDAP
} else {
#endif /* CLDAP */
#ifdef CLDAP
}
#endif /* CLDAP */
if ( rc == -1 ) {
return (NULLBER);
}
/* LDAPv3 */
/* Code controls if any */
if (serverctrls && serverctrls[0]) {
return( NULLBER );
}
/* Otherwise, is there any global server ctrls ? */
return( NULLBER );
}
}
return( NULLBER );
}
return (ber);
}
/*
* ldap_abandon - perform an ldap (and X.500) abandon operation. Parameters:
*
* ld LDAP descriptor
* msgid The message id of the operation to abandon
*
* ldap_abandon returns 0 if everything went ok, -1 otherwise.
*
* Example:
* ldap_abandon( ld, msgid );
*/
int
{
int rv;
#ifdef _REENTRANT
#endif
#ifdef _REENTRANT
UNLOCK_LDAP( ld );
#endif
return (rv);
}
/* ldapv3 API extensions */
{
int rv;
#ifdef _REENTRANT
#endif
if (rv == -1) {
if (rv == LDAP_SUCCESS)
rv = LDAP_OTHER;
#ifdef _REENTRANT
UNLOCK_LDAP( ld );
#endif
return (rv);
}
#ifdef _REENTRANT
UNLOCK_LDAP( ld );
#endif
return (LDAP_SUCCESS);
}
static int
{
#ifdef LDAP_REFERRALS
#endif /* LDAP_REFERRALS */
/*
* An abandon request looks like this:
* AbandonRequest ::= MessageID
*/
sendabandon = 1;
#ifdef LDAP_REFERRALS
/* find the request that we are abandoning */
break;
}
}
}
/* don't let caller abandon child requests! */
return( -1 );
}
/* no need to send abandon message */
sendabandon = 0;
}
}
#endif /* LDAP_REFERRALS */
return( 0 );
}
err = 0;
if ( sendabandon ) {
return (-1);
}
#ifdef LDAP_REFERRALS
} else {
}
#else /* LDAP_REFERRALS */
#endif /* LDAP_REFERRALS */
err = -1;
} else {
err = 0;
}
}
#ifdef LDAP_REFERRALS
if ( sendabandon ) {
}
}
}
#endif /* LDAP_REFERRALS */
== NULL ) {
return( -1 );
}
i = 0;
} else {
; /* NULL */
return( -1 );
}
}
if ( err != -1 ) {
}
return( err );
}