line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package Net::LDAP::Extension::Cancel; |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
require Net::LDAP::Extension; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our @ISA = qw(Net::LDAP::Extension); |
7
|
|
|
|
|
|
|
our $VERSION = '0.02'; |
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
593
|
use Convert::ASN1; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
164
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
my $cancelReq = Convert::ASN1->new; |
12
|
|
|
|
|
|
|
$cancelReq->prepare(q
|
13
|
|
|
|
|
|
|
cancelID INTEGER -- originally: MessageID |
14
|
|
|
|
|
|
|
}>); |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub Net::LDAP::cancel { |
17
|
0
|
|
|
0
|
0
|
|
my $ldap = shift; |
18
|
0
|
|
|
|
|
|
my $op = shift; |
19
|
0
|
|
|
|
|
|
my %opt = @_; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
my $res = $ldap->extension ( |
22
|
|
|
|
|
|
|
name => '1.3.6.1.1.8', |
23
|
|
|
|
|
|
|
value => $cancelReq->encode({ cancelID => ref($op) ? $op->mesg_id : $op }), |
24
|
0
|
0
|
|
|
|
|
($opt{control} ? (control => $opt{control}) : ()) |
|
|
0
|
|
|
|
|
|
25
|
|
|
|
|
|
|
); |
26
|
|
|
|
|
|
|
|
27
|
0
|
|
|
|
|
|
bless $res; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
__END__ |