/* $OpenLDAP$ */
-/*
- * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
- * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
+/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
+ *
+ * Copyright 1998-2011 The OpenLDAP Foundation.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted only as authorized by the OpenLDAP
+ * Public License.
+ *
+ * A copy of this license is available in the file LICENSE in the
+ * top-level directory of the distribution or, alternatively, at
+ * <http://www.OpenLDAP.org/license.html>.
+ */
+/* ACKNOWLEDGEMENTS:
+ * This program was originally developed by Kurt D. Zeilenga for inclusion
+ * in OpenLDAP Software.
*/
/*
#include "ldap-int.h"
#include "ldap_log.h"
-#ifdef LDAP_EXOP_X_CANCEL
-
int
ldap_cancel(
LDAP *ld,
cancelidber = ber_alloc_t( LBER_USE_DER );
ber_printf( cancelidber, "{i}", cancelid );
ber_flatten( cancelidber, &cancelidvalp );
- rc = ldap_extended_operation( ld, LDAP_EXOP_X_CANCEL,
- cancelidvalp, sctrls, cctrls, msgidp );
+ rc = ldap_extended_operation( ld, LDAP_EXOP_CANCEL,
+ cancelidvalp, sctrls, cctrls, msgidp );
ber_free( cancelidber, 1 );
return rc;
}
cancelidber = ber_alloc_t( LBER_USE_DER );
ber_printf( cancelidber, "{i}", cancelid );
ber_flatten( cancelidber, &cancelidvalp );
- rc = ldap_extended_operation_s( ld, LDAP_EXOP_X_CANCEL,
- cancelidvalp, sctrls, cctrls, NULL, NULL );
+ rc = ldap_extended_operation_s( ld, LDAP_EXOP_CANCEL,
+ cancelidvalp, sctrls, cctrls, NULL, NULL );
ber_free( cancelidber, 1 );
return rc;
}
-#endif /* LDAP_EXOP_X_CANCEL */