3 * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
4 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
8 * LDAPv3 Cancel Operation Request
14 #include <ac/stdlib.h>
16 #include <ac/socket.h>
17 #include <ac/string.h>
23 #ifdef LDAP_EXOP_X_CANCEL
33 BerElement *cancelidber = NULL;
34 struct berval *cancelidvalp = NULL;
37 cancelidber = ber_alloc_t( LBER_USE_DER );
38 ber_printf( cancelidber, "{i}", cancelid );
39 ber_flatten( cancelidber, &cancelidvalp );
40 rc = ldap_extended_operation( ld, LDAP_EXOP_X_CANCEL,
41 cancelidvalp, sctrls, cctrls, msgidp );
42 ber_free( cancelidber, 1 );
51 LDAPControl **cctrls )
53 BerElement *cancelidber = NULL;
54 struct berval *cancelidvalp = NULL;
57 cancelidber = ber_alloc_t( LBER_USE_DER );
58 ber_printf( cancelidber, "{i}", cancelid );
59 ber_flatten( cancelidber, &cancelidvalp );
60 rc = ldap_extended_operation_s( ld, LDAP_EXOP_X_CANCEL,
61 cancelidvalp, sctrls, cctrls, NULL, NULL );
62 ber_free( cancelidber, 1 );
66 #endif /* LDAP_EXOP_X_CANCEL */