Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / crypto / external / bsd / netpgp / dist / bindings / python / netpgppython.py
blob1524c419f8de132b6c49c1a2ab20f3daac7e2f3f
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 1.3.31
4 # Don't modify this file, modify the SWIG interface instead.
5 # This file is compatible with both classic and new-style classes.
7 import _netpgppython
8 import new
9 new_instancemethod = new.instancemethod
10 try:
11 _swig_property = property
12 except NameError:
13 pass # Python < 2.2 doesn't have 'property'.
14 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
15 if (name == "thisown"): return self.this.own(value)
16 if (name == "this"):
17 if type(value).__name__ == 'PySwigObject':
18 self.__dict__[name] = value
19 return
20 method = class_type.__swig_setmethods__.get(name,None)
21 if method: return method(self,value)
22 if (not static) or hasattr(self,name):
23 self.__dict__[name] = value
24 else:
25 raise AttributeError("You cannot add attributes to %s" % self)
27 def _swig_setattr(self,class_type,name,value):
28 return _swig_setattr_nondynamic(self,class_type,name,value,0)
30 def _swig_getattr(self,class_type,name):
31 if (name == "thisown"): return self.this.own()
32 method = class_type.__swig_getmethods__.get(name,None)
33 if method: return method(self)
34 raise AttributeError,name
36 def _swig_repr(self):
37 try: strthis = "proxy of " + self.this.__repr__()
38 except: strthis = ""
39 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
41 import types
42 try:
43 _object = types.ObjectType
44 _newclass = 1
45 except AttributeError:
46 class _object : pass
47 _newclass = 0
48 del types
51 class netpgp_t(_object):
52 __swig_setmethods__ = {}
53 __setattr__ = lambda self, name, value: _swig_setattr(self, netpgp_t, name, value)
54 __swig_getmethods__ = {}
55 __getattr__ = lambda self, name: _swig_getattr(self, netpgp_t, name)
56 __repr__ = _swig_repr
57 __swig_setmethods__["c"] = _netpgppython.netpgp_t_c_set
58 __swig_getmethods__["c"] = _netpgppython.netpgp_t_c_get
59 if _newclass:c = _swig_property(_netpgppython.netpgp_t_c_get, _netpgppython.netpgp_t_c_set)
60 __swig_setmethods__["size"] = _netpgppython.netpgp_t_size_set
61 __swig_getmethods__["size"] = _netpgppython.netpgp_t_size_get
62 if _newclass:size = _swig_property(_netpgppython.netpgp_t_size_get, _netpgppython.netpgp_t_size_set)
63 __swig_setmethods__["name"] = _netpgppython.netpgp_t_name_set
64 __swig_getmethods__["name"] = _netpgppython.netpgp_t_name_get
65 if _newclass:name = _swig_property(_netpgppython.netpgp_t_name_get, _netpgppython.netpgp_t_name_set)
66 __swig_setmethods__["value"] = _netpgppython.netpgp_t_value_set
67 __swig_getmethods__["value"] = _netpgppython.netpgp_t_value_get
68 if _newclass:value = _swig_property(_netpgppython.netpgp_t_value_get, _netpgppython.netpgp_t_value_set)
69 __swig_setmethods__["pubring"] = _netpgppython.netpgp_t_pubring_set
70 __swig_getmethods__["pubring"] = _netpgppython.netpgp_t_pubring_get
71 if _newclass:pubring = _swig_property(_netpgppython.netpgp_t_pubring_get, _netpgppython.netpgp_t_pubring_set)
72 __swig_setmethods__["secring"] = _netpgppython.netpgp_t_secring_set
73 __swig_getmethods__["secring"] = _netpgppython.netpgp_t_secring_get
74 if _newclass:secring = _swig_property(_netpgppython.netpgp_t_secring_get, _netpgppython.netpgp_t_secring_set)
75 __swig_setmethods__["io"] = _netpgppython.netpgp_t_io_set
76 __swig_getmethods__["io"] = _netpgppython.netpgp_t_io_get
77 if _newclass:io = _swig_property(_netpgppython.netpgp_t_io_get, _netpgppython.netpgp_t_io_set)
78 __swig_setmethods__["passfp"] = _netpgppython.netpgp_t_passfp_set
79 __swig_getmethods__["passfp"] = _netpgppython.netpgp_t_passfp_get
80 if _newclass:passfp = _swig_property(_netpgppython.netpgp_t_passfp_get, _netpgppython.netpgp_t_passfp_set)
81 def __init__(self, *args):
82 this = _netpgppython.new_netpgp_t(*args)
83 try: self.this.append(this)
84 except: self.this = this
85 __swig_destroy__ = _netpgppython.delete_netpgp_t
86 __del__ = lambda self : None;
87 netpgp_t_swigregister = _netpgppython.netpgp_t_swigregister
88 netpgp_t_swigregister(netpgp_t)
90 netpgp_init = _netpgppython.netpgp_init
91 netpgp_end = _netpgppython.netpgp_end
92 netpgp_set_debug = _netpgppython.netpgp_set_debug
93 netpgp_get_debug = _netpgppython.netpgp_get_debug
94 netpgp_get_info = _netpgppython.netpgp_get_info
95 netpgp_list_packets = _netpgppython.netpgp_list_packets
96 netpgp_setvar = _netpgppython.netpgp_setvar
97 netpgp_getvar = _netpgppython.netpgp_getvar
98 netpgp_list_keys = _netpgppython.netpgp_list_keys
99 netpgp_list_sigs = _netpgppython.netpgp_list_sigs
100 netpgp_find_key = _netpgppython.netpgp_find_key
101 netpgp_get_key = _netpgppython.netpgp_get_key
102 netpgp_export_key = _netpgppython.netpgp_export_key
103 netpgp_import_key = _netpgppython.netpgp_import_key
104 netpgp_generate_key = _netpgppython.netpgp_generate_key
105 netpgp_encrypt_file = _netpgppython.netpgp_encrypt_file
106 netpgp_decrypt_file = _netpgppython.netpgp_decrypt_file
107 netpgp_sign_file = _netpgppython.netpgp_sign_file
108 netpgp_verify_file = _netpgppython.netpgp_verify_file
109 netpgp_sign_memory = _netpgppython.netpgp_sign_memory
110 netpgp_verify_memory = _netpgppython.netpgp_verify_memory