line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package Net::SSLeay::OO::X509::Store; |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
# wrapper for X509_STORE* functions |
5
|
|
|
|
|
|
|
# |
6
|
|
|
|
|
|
|
# Copyright (C) 2009 NZ Registry Services |
7
|
|
|
|
|
|
|
# |
8
|
|
|
|
|
|
|
# This program is free software: you can redistribute it and/or modify |
9
|
|
|
|
|
|
|
# it under the terms of the Artistic License 2.0 or later. You should |
10
|
|
|
|
|
|
|
# have received a copy of the Artistic License the file COPYING.txt. |
11
|
|
|
|
|
|
|
# If not, see <http://www.perlfoundation.org/artistic_license_2_0> |
12
|
|
|
|
|
|
|
|
13
|
1
|
|
|
1
|
|
2731
|
use Moose; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
has 'x509_store' => isa => 'Int', |
16
|
|
|
|
|
|
|
is => "ro", |
17
|
|
|
|
|
|
|
required => 1, |
18
|
|
|
|
|
|
|
; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
use Net::SSLeay::OO::Functions 'x509_store'; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
# add_cert() |
23
|
|
|
|
|
|
|
# add_crl() |
24
|
|
|
|
|
|
|
# set_flags() |
25
|
|
|
|
|
|
|
# set_purpose() |
26
|
|
|
|
|
|
|
# set_trust() |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__END__ |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 NAME |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
Net::SSLeay::OO::X509::Store - wrapper for X509_STORE* pointers |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 SYNOPSIS |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
my $store = $ctx->get_cert_store; |
39
|
|
|
|
|
|
|
$store->add_cert(...); |
40
|
|
|
|
|
|
|
$store->set_purpose(...); |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 DESCRIPTION |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
This is a class which represents the X509_STORE* pointers; it is |
45
|
|
|
|
|
|
|
currently poorly understood, the best reference for understanding will |
46
|
|
|
|
|
|
|
be relevant functions within L<Net::SSLeay> (especially the main |
47
|
|
|
|
|
|
|
binding wrapper, F<SSLeay.xs>), and the OpenSSL source code. |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
You should not need to use this class for regular use of the module; |
50
|
|
|
|
|
|
|
if you find a use for it, or would like to help complete or document |
51
|
|
|
|
|
|
|
it, please submit a patch or pull request. |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 AUTHOR |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
Sam Vilain, L<samv@cpan.org> |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 COPYRIGHT |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
Copyright (C) 2009 NZ Registry Services |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify |
62
|
|
|
|
|
|
|
it under the terms of the Artistic License 2.0 or later. You should |
63
|
|
|
|
|
|
|
have received a copy of the Artistic License the file COPYING.txt. If |
64
|
|
|
|
|
|
|
not, see <http://www.perlfoundation.org/artistic_license_2_0> |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head1 SEE ALSO |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
L<Net::SSLeay::OO>, L<Net::SSLeay::OO::Context/get_cert_store> |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=cut |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
# Local Variables: |
73
|
|
|
|
|
|
|
# mode:cperl |
74
|
|
|
|
|
|
|
# indent-tabs-mode: t |
75
|
|
|
|
|
|
|
# cperl-continued-statement-offset: 8 |
76
|
|
|
|
|
|
|
# cperl-brace-offset: 0 |
77
|
|
|
|
|
|
|
# cperl-close-paren-offset: 0 |
78
|
|
|
|
|
|
|
# cperl-continued-brace-offset: 0 |
79
|
|
|
|
|
|
|
# cperl-continued-statement-offset: 8 |
80
|
|
|
|
|
|
|
# cperl-extra-newline-before-brace: nil |
81
|
|
|
|
|
|
|
# cperl-indent-level: 8 |
82
|
|
|
|
|
|
|
# cperl-indent-parens-as-block: t |
83
|
|
|
|
|
|
|
# cperl-indent-wrt-brace: nil |
84
|
|
|
|
|
|
|
# cperl-label-offset: -8 |
85
|
|
|
|
|
|
|
# cperl-merge-trailing-else: t |
86
|
|
|
|
|
|
|
# End: |
87
|
|
|
|
|
|
|
# vim: filetype=perl:noexpandtab:ts=3:sw=3 |