| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
## Domain Registry Interface, VeriSign Naming Registry Driver for .COM .NET |
|
2
|
|
|
|
|
|
|
## |
|
3
|
|
|
|
|
|
|
## Copyright (c) 2005-2013,2016 Patrick Mevzek . All rights reserved. |
|
4
|
|
|
|
|
|
|
## |
|
5
|
|
|
|
|
|
|
## This file is part of Net::DRI |
|
6
|
|
|
|
|
|
|
## |
|
7
|
|
|
|
|
|
|
## Net::DRI is free software; you can redistribute it and/or modify |
|
8
|
|
|
|
|
|
|
## it under the terms of the GNU General Public License as published by |
|
9
|
|
|
|
|
|
|
## the Free Software Foundation; either version 2 of the License, or |
|
10
|
|
|
|
|
|
|
## (at your option) any later version. |
|
11
|
|
|
|
|
|
|
## |
|
12
|
|
|
|
|
|
|
## See the LICENSE file that comes with this distribution for more details. |
|
13
|
|
|
|
|
|
|
#################################################################################################### |
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
package Net::DRI::DRD::VeriSign::COM_NET; |
|
16
|
|
|
|
|
|
|
|
|
17
|
32
|
|
|
32
|
|
181165
|
use strict; |
|
|
32
|
|
|
|
|
39
|
|
|
|
32
|
|
|
|
|
762
|
|
|
18
|
32
|
|
|
32
|
|
97
|
use warnings; |
|
|
32
|
|
|
|
|
32
|
|
|
|
32
|
|
|
|
|
688
|
|
|
19
|
|
|
|
|
|
|
|
|
20
|
32
|
|
|
32
|
|
90
|
use base qw/Net::DRI::DRD/; |
|
|
32
|
|
|
|
|
32
|
|
|
|
32
|
|
|
|
|
16228
|
|
|
21
|
|
|
|
|
|
|
|
|
22
|
32
|
|
|
32
|
|
180
|
use DateTime::Duration; |
|
|
32
|
|
|
|
|
42
|
|
|
|
32
|
|
|
|
|
9102
|
|
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=pod |
|
25
|
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 NAME |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
Net::DRI::DRD::VeriSign::COM_NET - VeriSign .COM/.NET Registry driver for Net::DRI |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
31
|
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
Please see the README file for details. |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 SUPPORT |
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
For now, support questions should be sent to: |
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
Enetdri@dotandco.comE |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
Please also see the SUPPORT file in the distribution. |
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 SEE ALSO |
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
Ehttp://www.dotandco.com/services/software/Net-DRI/E |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 AUTHOR |
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
Patrick Mevzek, Enetdri@dotandco.comE |
|
49
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 COPYRIGHT |
|
51
|
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
Copyright (c) 2005-2013,2016 Patrick Mevzek . |
|
53
|
|
|
|
|
|
|
All rights reserved. |
|
54
|
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify |
|
56
|
|
|
|
|
|
|
it under the terms of the GNU General Public License as published by |
|
57
|
|
|
|
|
|
|
the Free Software Foundation; either version 2 of the License, or |
|
58
|
|
|
|
|
|
|
(at your option) any later version. |
|
59
|
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
See the LICENSE file that comes with this distribution for more details. |
|
61
|
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=cut |
|
63
|
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
#################################################################################################### |
|
65
|
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
sub new |
|
67
|
|
|
|
|
|
|
{ |
|
68
|
31
|
|
|
31
|
0
|
51
|
my $class=shift; |
|
69
|
31
|
|
|
|
|
184
|
my $self=$class->SUPER::new(@_); |
|
70
|
31
|
|
|
|
|
159
|
$self->{info}->{check_limit}=5; |
|
71
|
31
|
|
|
|
|
65
|
return $self; |
|
72
|
|
|
|
|
|
|
} |
|
73
|
|
|
|
|
|
|
|
|
74
|
1
|
|
|
1
|
1
|
2
|
sub periods { return map { DateTime::Duration->new(years => $_) } (1..10); } |
|
|
10
|
|
|
|
|
402
|
|
|
75
|
31
|
|
|
31
|
1
|
64
|
sub name { return 'VeriSign::COM_NET'; } |
|
76
|
37
|
|
|
37
|
1
|
113
|
sub tlds { return qw/com net/; } |
|
77
|
0
|
|
|
0
|
1
|
0
|
sub object_types { return qw/domain ns/; } |
|
78
|
0
|
|
|
0
|
0
|
0
|
sub profile_types { return qw/epp whois/; } |
|
79
|
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
sub transport_protocol_default |
|
81
|
|
|
|
|
|
|
{ |
|
82
|
31
|
|
|
31
|
0
|
41
|
my ($self,$type)=@_; |
|
83
|
|
|
|
|
|
|
|
|
84
|
31
|
100
|
|
|
|
101
|
return ('Net::DRI::Transport::Socket',{},'Net::DRI::Protocol::RRP',{}) if $type eq 'rrp'; ## this is used only for internal tests |
|
85
|
30
|
50
|
|
|
|
229
|
return ('Net::DRI::Transport::Socket',{remote_host=>'epp-ote.verisign-grs.com', remote_port=>700},'Net::DRI::Protocol::EPP::Extensions::VeriSign::Platforms::COM_NET',{}) if $type eq 'epp'; |
|
86
|
0
|
0
|
|
|
|
0
|
return ('Net::DRI::Transport::Socket',{remote_host=>'whois.verisign-grs.com'},'Net::DRI::Protocol::Whois',{}) if $type eq 'whois'; |
|
87
|
0
|
|
|
|
|
0
|
return; |
|
88
|
|
|
|
|
|
|
} |
|
89
|
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
#################################################################################################### |
|
91
|
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
sub verify_name_domain |
|
93
|
|
|
|
|
|
|
{ |
|
94
|
7
|
|
|
7
|
0
|
9
|
my ($self,$ndr,$domain,$op)=@_; |
|
95
|
7
|
|
|
|
|
31
|
return $self->_verify_name_rules($domain,$op,{check_name => 1, |
|
96
|
|
|
|
|
|
|
my_tld => 1, |
|
97
|
|
|
|
|
|
|
icann_reserved => 1, |
|
98
|
|
|
|
|
|
|
}); |
|
99
|
|
|
|
|
|
|
} |
|
100
|
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
## We can not start a transfer, if domain name has already been transfered less than 15 days ago. |
|
102
|
|
|
|
|
|
|
sub verify_duration_transfer |
|
103
|
|
|
|
|
|
|
{ |
|
104
|
0
|
|
|
0
|
0
|
|
my ($self,$ndr,$duration,$domain,$op)=@_; |
|
105
|
|
|
|
|
|
|
|
|
106
|
0
|
|
|
|
|
|
return $self->_verify_duration_transfer_15days($ndr,$duration,$domain,$op); |
|
107
|
|
|
|
|
|
|
} |
|
108
|
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
#################################################################################################### |
|
110
|
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
sub twofactorauth_create |
|
112
|
|
|
|
|
|
|
{ |
|
113
|
0
|
|
|
0
|
0
|
|
my ($self,$ndr,$rd)=@_; |
|
114
|
0
|
|
|
|
|
|
return $ndr->process('authsession','create',[$rd]); |
|
115
|
|
|
|
|
|
|
} |
|
116
|
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
sub balance_info |
|
118
|
|
|
|
|
|
|
{ |
|
119
|
0
|
|
|
0
|
0
|
|
my ($self,$ndr)=@_; |
|
120
|
0
|
|
|
|
|
|
return $ndr->process('balance','info'); |
|
121
|
|
|
|
|
|
|
} |
|
122
|
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
#################################################################################################### |
|
124
|
|
|
|
|
|
|
1; |