1*ebfedea0SLionel Sambuc# This file was automatically generated by SWIG (http://www.swig.org).
2*ebfedea0SLionel Sambuc# Version 1.3.31
3*ebfedea0SLionel Sambuc#
4*ebfedea0SLionel Sambuc# Don't modify this file, modify the SWIG interface instead.
5*ebfedea0SLionel Sambuc
6*ebfedea0SLionel Sambucpackage netpgpperl;
7*ebfedea0SLionel Sambucrequire Exporter;
8*ebfedea0SLionel Sambucrequire DynaLoader;
9*ebfedea0SLionel Sambuc@ISA = qw(Exporter DynaLoader);
10*ebfedea0SLionel Sambucpackage netpgpperlc;
11*ebfedea0SLionel Sambucbootstrap netpgpperl;
12*ebfedea0SLionel Sambucpackage netpgpperl;
13*ebfedea0SLionel Sambuc@EXPORT = qw( );
14*ebfedea0SLionel Sambuc
15*ebfedea0SLionel Sambuc# ---------- BASE METHODS -------------
16*ebfedea0SLionel Sambuc
17*ebfedea0SLionel Sambucpackage netpgpperl;
18*ebfedea0SLionel Sambuc
19*ebfedea0SLionel Sambucsub TIEHASH {
20*ebfedea0SLionel Sambuc    my ($classname,$obj) = @_;
21*ebfedea0SLionel Sambuc    return bless $obj, $classname;
22*ebfedea0SLionel Sambuc}
23*ebfedea0SLionel Sambuc
24*ebfedea0SLionel Sambucsub CLEAR { }
25*ebfedea0SLionel Sambuc
26*ebfedea0SLionel Sambucsub FIRSTKEY { }
27*ebfedea0SLionel Sambuc
28*ebfedea0SLionel Sambucsub NEXTKEY { }
29*ebfedea0SLionel Sambuc
30*ebfedea0SLionel Sambucsub FETCH {
31*ebfedea0SLionel Sambuc    my ($self,$field) = @_;
32*ebfedea0SLionel Sambuc    my $member_func = "swig_${field}_get";
33*ebfedea0SLionel Sambuc    $self->$member_func();
34*ebfedea0SLionel Sambuc}
35*ebfedea0SLionel Sambuc
36*ebfedea0SLionel Sambucsub STORE {
37*ebfedea0SLionel Sambuc    my ($self,$field,$newval) = @_;
38*ebfedea0SLionel Sambuc    my $member_func = "swig_${field}_set";
39*ebfedea0SLionel Sambuc    $self->$member_func($newval);
40*ebfedea0SLionel Sambuc}
41*ebfedea0SLionel Sambuc
42*ebfedea0SLionel Sambucsub this {
43*ebfedea0SLionel Sambuc    my $ptr = shift;
44*ebfedea0SLionel Sambuc    return tied(%$ptr);
45*ebfedea0SLionel Sambuc}
46*ebfedea0SLionel Sambuc
47*ebfedea0SLionel Sambuc
48*ebfedea0SLionel Sambuc# ------- FUNCTION WRAPPERS --------
49*ebfedea0SLionel Sambuc
50*ebfedea0SLionel Sambucpackage netpgpperl;
51*ebfedea0SLionel Sambuc
52*ebfedea0SLionel Sambuc*netpgp_init = *netpgpperlc::netpgp_init;
53*ebfedea0SLionel Sambuc*netpgp_end = *netpgpperlc::netpgp_end;
54*ebfedea0SLionel Sambuc*netpgp_set_debug = *netpgpperlc::netpgp_set_debug;
55*ebfedea0SLionel Sambuc*netpgp_get_debug = *netpgpperlc::netpgp_get_debug;
56*ebfedea0SLionel Sambuc*netpgp_get_info = *netpgpperlc::netpgp_get_info;
57*ebfedea0SLionel Sambuc*netpgp_list_packets = *netpgpperlc::netpgp_list_packets;
58*ebfedea0SLionel Sambuc*netpgp_setvar = *netpgpperlc::netpgp_setvar;
59*ebfedea0SLionel Sambuc*netpgp_getvar = *netpgpperlc::netpgp_getvar;
60*ebfedea0SLionel Sambuc*netpgp_incvar = *netpgpperlc::netpgp_incvar;
61*ebfedea0SLionel Sambuc*netpgp_unsetvar = *netpgpperlc::netpgp_unsetvar;
62*ebfedea0SLionel Sambuc*netpgp_set_homedir = *netpgpperlc::netpgp_set_homedir;
63*ebfedea0SLionel Sambuc*netpgp_list_keys = *netpgpperlc::netpgp_list_keys;
64*ebfedea0SLionel Sambuc*netpgp_find_key = *netpgpperlc::netpgp_find_key;
65*ebfedea0SLionel Sambuc*netpgp_get_key = *netpgpperlc::netpgp_get_key;
66*ebfedea0SLionel Sambuc*netpgp_export_key = *netpgpperlc::netpgp_export_key;
67*ebfedea0SLionel Sambuc*netpgp_import_key = *netpgpperlc::netpgp_import_key;
68*ebfedea0SLionel Sambuc*netpgp_generate_key = *netpgpperlc::netpgp_generate_key;
69*ebfedea0SLionel Sambuc*netpgp_encrypt_file = *netpgpperlc::netpgp_encrypt_file;
70*ebfedea0SLionel Sambuc*netpgp_decrypt_file = *netpgpperlc::netpgp_decrypt_file;
71*ebfedea0SLionel Sambuc*netpgp_sign_file = *netpgpperlc::netpgp_sign_file;
72*ebfedea0SLionel Sambuc*netpgp_verify_file = *netpgpperlc::netpgp_verify_file;
73*ebfedea0SLionel Sambuc*netpgp_sign_memory = *netpgpperlc::netpgp_sign_memory;
74*ebfedea0SLionel Sambuc*netpgp_verify_memory = *netpgpperlc::netpgp_verify_memory;
75*ebfedea0SLionel Sambuc*netpgp_encrypt_memory = *netpgpperlc::netpgp_encrypt_memory;
76*ebfedea0SLionel Sambuc*netpgp_decrypt_memory = *netpgpperlc::netpgp_decrypt_memory;
77*ebfedea0SLionel Sambuc*netpgp_match_keys = *netpgpperlc::netpgp_match_keys;
78*ebfedea0SLionel Sambuc*netpgp_match_pubkeys = *netpgpperlc::netpgp_match_pubkeys;
79*ebfedea0SLionel Sambuc*netpgp_validate_sigs = *netpgpperlc::netpgp_validate_sigs;
80*ebfedea0SLionel Sambuc
81*ebfedea0SLionel Sambuc############# Class : netpgpperl::netpgp_t ##############
82*ebfedea0SLionel Sambuc
83*ebfedea0SLionel Sambucpackage netpgpperl::netpgp_t;
84*ebfedea0SLionel Sambucuse vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
85*ebfedea0SLionel Sambuc@ISA = qw( netpgpperl );
86*ebfedea0SLionel Sambuc%OWNER = ();
87*ebfedea0SLionel Sambuc%ITERATORS = ();
88*ebfedea0SLionel Sambuc*swig_c_get = *netpgpperlc::netpgp_t_c_get;
89*ebfedea0SLionel Sambuc*swig_c_set = *netpgpperlc::netpgp_t_c_set;
90*ebfedea0SLionel Sambuc*swig_size_get = *netpgpperlc::netpgp_t_size_get;
91*ebfedea0SLionel Sambuc*swig_size_set = *netpgpperlc::netpgp_t_size_set;
92*ebfedea0SLionel Sambuc*swig_name_get = *netpgpperlc::netpgp_t_name_get;
93*ebfedea0SLionel Sambuc*swig_name_set = *netpgpperlc::netpgp_t_name_set;
94*ebfedea0SLionel Sambuc*swig_value_get = *netpgpperlc::netpgp_t_value_get;
95*ebfedea0SLionel Sambuc*swig_value_set = *netpgpperlc::netpgp_t_value_set;
96*ebfedea0SLionel Sambuc*swig_pubring_get = *netpgpperlc::netpgp_t_pubring_get;
97*ebfedea0SLionel Sambuc*swig_pubring_set = *netpgpperlc::netpgp_t_pubring_set;
98*ebfedea0SLionel Sambuc*swig_secring_get = *netpgpperlc::netpgp_t_secring_get;
99*ebfedea0SLionel Sambuc*swig_secring_set = *netpgpperlc::netpgp_t_secring_set;
100*ebfedea0SLionel Sambuc*swig_io_get = *netpgpperlc::netpgp_t_io_get;
101*ebfedea0SLionel Sambuc*swig_io_set = *netpgpperlc::netpgp_t_io_set;
102*ebfedea0SLionel Sambuc*swig_passfp_get = *netpgpperlc::netpgp_t_passfp_get;
103*ebfedea0SLionel Sambuc*swig_passfp_set = *netpgpperlc::netpgp_t_passfp_set;
104*ebfedea0SLionel Sambucsub new {
105*ebfedea0SLionel Sambuc    my $pkg = shift;
106*ebfedea0SLionel Sambuc    my $self = netpgpperlc::new_netpgp_t(@_);
107*ebfedea0SLionel Sambuc    bless $self, $pkg if defined($self);
108*ebfedea0SLionel Sambuc}
109*ebfedea0SLionel Sambuc
110*ebfedea0SLionel Sambucsub DESTROY {
111*ebfedea0SLionel Sambuc    return unless $_[0]->isa('HASH');
112*ebfedea0SLionel Sambuc    my $self = tied(%{$_[0]});
113*ebfedea0SLionel Sambuc    return unless defined $self;
114*ebfedea0SLionel Sambuc    delete $ITERATORS{$self};
115*ebfedea0SLionel Sambuc    if (exists $OWNER{$self}) {
116*ebfedea0SLionel Sambuc        netpgpperlc::delete_netpgp_t($self);
117*ebfedea0SLionel Sambuc        delete $OWNER{$self};
118*ebfedea0SLionel Sambuc    }
119*ebfedea0SLionel Sambuc}
120*ebfedea0SLionel Sambuc
121*ebfedea0SLionel Sambucsub DISOWN {
122*ebfedea0SLionel Sambuc    my $self = shift;
123*ebfedea0SLionel Sambuc    my $ptr = tied(%$self);
124*ebfedea0SLionel Sambuc    delete $OWNER{$ptr};
125*ebfedea0SLionel Sambuc}
126*ebfedea0SLionel Sambuc
127*ebfedea0SLionel Sambucsub ACQUIRE {
128*ebfedea0SLionel Sambuc    my $self = shift;
129*ebfedea0SLionel Sambuc    my $ptr = tied(%$self);
130*ebfedea0SLionel Sambuc    $OWNER{$ptr} = 1;
131*ebfedea0SLionel Sambuc}
132*ebfedea0SLionel Sambuc
133*ebfedea0SLionel Sambuc
134*ebfedea0SLionel Sambuc# ------- VARIABLE STUBS --------
135*ebfedea0SLionel Sambuc
136*ebfedea0SLionel Sambucpackage netpgpperl;
137*ebfedea0SLionel Sambuc
138*ebfedea0SLionel Sambuc1;
139