This file is indexed.

/usr/lib/python2.7/dist-packages/canl/canl.py is in python-canl 1.1.0-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.12
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.




"""
Hello
this is a string
"""


from sys import version_info
if version_info >= (2,6,0):
    def swig_import_helper():
        from os.path import dirname
        import imp
        fp = None
        try:
            fp, pathname, description = imp.find_module('_canl', [dirname(__file__)])
        except ImportError:
            import _canl
            return _canl
        if fp is not None:
            try:
                _mod = imp.load_module('_canl', fp, pathname, description)
            finally:
                fp.close()
            return _mod
    _canl = swig_import_helper()
    del swig_import_helper
else:
    import _canl
del version_info
try:
    _swig_property = property
except NameError:
    pass # Python < 2.2 doesn't have 'property'.
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
    if (name == "thisown"): return self.this.own(value)
    if (name == "this"):
        if type(value).__name__ == 'SwigPyObject':
            self.__dict__[name] = value
            return
    method = class_type.__swig_setmethods__.get(name,None)
    if method: return method(self,value)
    if (not static):
        self.__dict__[name] = value
    else:
        raise AttributeError("You cannot add attributes to %s" % self)

def _swig_setattr(self,class_type,name,value):
    return _swig_setattr_nondynamic(self,class_type,name,value,0)

def _swig_getattr(self,class_type,name):
    if (name == "thisown"): return self.this.own()
    method = class_type.__swig_getmethods__.get(name,None)
    if method: return method(self)
    raise AttributeError(name)

def _swig_repr(self):
    try: strthis = "proxy of " + self.this.__repr__()
    except: strthis = ""
    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)

try:
    _object = object
    _newclass = 1
except AttributeError:
    class _object : pass
    _newclass = 0


class SwigPyIterator(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, SwigPyIterator, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, SwigPyIterator, name)
    def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr
    __swig_destroy__ = _canl.delete_SwigPyIterator
    __del__ = lambda self : None;
    def value(self): return _canl.SwigPyIterator_value(self)
    def incr(self, n=1): return _canl.SwigPyIterator_incr(self, n)
    def decr(self, n=1): return _canl.SwigPyIterator_decr(self, n)
    def distance(self, *args): return _canl.SwigPyIterator_distance(self, *args)
    def equal(self, *args): return _canl.SwigPyIterator_equal(self, *args)
    def copy(self): return _canl.SwigPyIterator_copy(self)
    def next(self): return _canl.SwigPyIterator_next(self)
    def __next__(self): return _canl.SwigPyIterator___next__(self)
    def previous(self): return _canl.SwigPyIterator_previous(self)
    def advance(self, *args): return _canl.SwigPyIterator_advance(self, *args)
    def __eq__(self, *args): return _canl.SwigPyIterator___eq__(self, *args)
    def __ne__(self, *args): return _canl.SwigPyIterator___ne__(self, *args)
    def __iadd__(self, *args): return _canl.SwigPyIterator___iadd__(self, *args)
    def __isub__(self, *args): return _canl.SwigPyIterator___isub__(self, *args)
    def __add__(self, *args): return _canl.SwigPyIterator___add__(self, *args)
    def __sub__(self, *args): return _canl.SwigPyIterator___sub__(self, *args)
    def __iter__(self): return self
SwigPyIterator_swigregister = _canl.SwigPyIterator_swigregister
SwigPyIterator_swigregister(SwigPyIterator)

class StringList(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, StringList, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, StringList, name)
    __repr__ = _swig_repr
    def iterator(self): return _canl.StringList_iterator(self)
    def __iter__(self): return self.iterator()
    def __nonzero__(self): return _canl.StringList___nonzero__(self)
    def __bool__(self): return _canl.StringList___bool__(self)
    def __len__(self): return _canl.StringList___len__(self)
    def pop(self): return _canl.StringList_pop(self)
    def __getslice__(self, *args): return _canl.StringList___getslice__(self, *args)
    def __setslice__(self, *args): return _canl.StringList___setslice__(self, *args)
    def __delslice__(self, *args): return _canl.StringList___delslice__(self, *args)
    def __delitem__(self, *args): return _canl.StringList___delitem__(self, *args)
    def __getitem__(self, *args): return _canl.StringList___getitem__(self, *args)
    def __setitem__(self, *args): return _canl.StringList___setitem__(self, *args)
    def append(self, *args): return _canl.StringList_append(self, *args)
    def empty(self): return _canl.StringList_empty(self)
    def size(self): return _canl.StringList_size(self)
    def clear(self): return _canl.StringList_clear(self)
    def swap(self, *args): return _canl.StringList_swap(self, *args)
    def get_allocator(self): return _canl.StringList_get_allocator(self)
    def begin(self): return _canl.StringList_begin(self)
    def end(self): return _canl.StringList_end(self)
    def rbegin(self): return _canl.StringList_rbegin(self)
    def rend(self): return _canl.StringList_rend(self)
    def pop_back(self): return _canl.StringList_pop_back(self)
    def erase(self, *args): return _canl.StringList_erase(self, *args)
    def __init__(self, *args): 
        this = _canl.new_StringList(*args)
        try: self.this.append(this)
        except: self.this = this
    def push_back(self, *args): return _canl.StringList_push_back(self, *args)
    def front(self): return _canl.StringList_front(self)
    def back(self): return _canl.StringList_back(self)
    def assign(self, *args): return _canl.StringList_assign(self, *args)
    def resize(self, *args): return _canl.StringList_resize(self, *args)
    def insert(self, *args): return _canl.StringList_insert(self, *args)
    def pop_front(self): return _canl.StringList_pop_front(self)
    def push_front(self, *args): return _canl.StringList_push_front(self, *args)
    def reverse(self): return _canl.StringList_reverse(self)
    __swig_destroy__ = _canl.delete_StringList
    __del__ = lambda self : None;
StringList_swigregister = _canl.StringList_swigregister
StringList_swigregister(StringList)

class Extension(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, Extension, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, Extension, name)
    __repr__ = _swig_repr
    __swig_setmethods__["critical"] = _canl.Extension_critical_set
    __swig_getmethods__["critical"] = _canl.Extension_critical_get
    if _newclass:critical = _swig_property(_canl.Extension_critical_get, _canl.Extension_critical_set)
    __swig_setmethods__["oid"] = _canl.Extension_oid_set
    __swig_getmethods__["oid"] = _canl.Extension_oid_get
    if _newclass:oid = _swig_property(_canl.Extension_oid_get, _canl.Extension_oid_set)
    __swig_setmethods__["value"] = _canl.Extension_value_set
    __swig_getmethods__["value"] = _canl.Extension_value_get
    if _newclass:value = _swig_property(_canl.Extension_value_get, _canl.Extension_value_set)
    def __init__(self): 
        this = _canl.new_Extension()
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _canl.delete_Extension
    __del__ = lambda self : None;
Extension_swigregister = _canl.Extension_swigregister
Extension_swigregister(Extension)

class Status(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, Status, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, Status, name)
    __repr__ = _swig_repr
    def __init__(self, *args): 
        this = _canl.new_Status(*args)
        try: self.this.append(this)
        except: self.this = this
    def GetCode(self): return _canl.Status_GetCode(self)
    def __eq__(self, *args): return _canl.Status___eq__(self, *args)
    def GetDescription(self): return _canl.Status_GetDescription(self)
    def __nonzero__(self):
        return _canl.Status___nonzero__(self)
    __bool__ = __nonzero__


    __swig_destroy__ = _canl.delete_Status
    __del__ = lambda self : None;
Status_swigregister = _canl.Status_swigregister
Status_swigregister(Status)

class Context(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, Context, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, Context, name)
    __repr__ = _swig_repr
    EmptyContext = _canl.Context_EmptyContext
    ClientFullContext = _canl.Context_ClientFullContext
    ClientMinimalContext = _canl.Context_ClientMinimalContext
    ServiceFullContext = _canl.Context_ServiceFullContext
    ServiceMinimalContext = _canl.Context_ServiceMinimalContext
    LogDebug = _canl.Context_LogDebug
    LogVerbose = _canl.Context_LogVerbose
    LogInfo = _canl.Context_LogInfo
    LogWarning = _canl.Context_LogWarning
    LogError = _canl.Context_LogError
    LogFatal = _canl.Context_LogFatal
    def __init__(self, *args): 
        this = _canl.new_Context(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _canl.delete_Context
    __del__ = lambda self : None;
    def __nonzero__(self):
        return _canl.Context___nonzero__(self)
    __bool__ = __nonzero__


    def GetStatus(self): return _canl.Context_GetStatus(self)
    def Copy(self): return _canl.Context_Copy(self)
    def GetCAPath(self): return _canl.Context_GetCAPath(self)
    def SetCAPath(self, *args): return _canl.Context_SetCAPath(self, *args)
    def GetCRLPath(self): return _canl.Context_GetCRLPath(self)
    def SetCRLPath(self, *args): return _canl.Context_SetCRLPath(self, *args)
    def SetCredentials(self, *args): return _canl.Context_SetCredentials(self, *args)
    def GetCertPath(self): return _canl.Context_GetCertPath(self)
    def GetKeyPath(self): return _canl.Context_GetKeyPath(self)
    def Password(self, *args): return _canl.Context_Password(self, *args)
    def Message(self, *args): return _canl.Context_Message(self, *args)
    def Log(self, *args): return _canl.Context_Log(self, *args)
    def LogFormat(self, *args): return _canl.Context_LogFormat(self, *args)
    __swig_setmethods__["valid_"] = _canl.Context_valid__set
    __swig_getmethods__["valid_"] = _canl.Context_valid__get
    if _newclass:valid_ = _swig_property(_canl.Context_valid__get, _canl.Context_valid__set)
    __swig_setmethods__["capath_"] = _canl.Context_capath__set
    __swig_getmethods__["capath_"] = _canl.Context_capath__get
    if _newclass:capath_ = _swig_property(_canl.Context_capath__get, _canl.Context_capath__set)
    __swig_setmethods__["crlpath_"] = _canl.Context_crlpath__set
    __swig_getmethods__["crlpath_"] = _canl.Context_crlpath__get
    if _newclass:crlpath_ = _swig_property(_canl.Context_crlpath__get, _canl.Context_crlpath__set)
    __swig_setmethods__["crlfiles_"] = _canl.Context_crlfiles__set
    __swig_getmethods__["crlfiles_"] = _canl.Context_crlfiles__get
    if _newclass:crlfiles_ = _swig_property(_canl.Context_crlfiles__get, _canl.Context_crlfiles__set)
    __swig_setmethods__["certpath_"] = _canl.Context_certpath__set
    __swig_getmethods__["certpath_"] = _canl.Context_certpath__get
    if _newclass:certpath_ = _swig_property(_canl.Context_certpath__get, _canl.Context_certpath__set)
    __swig_setmethods__["keypath_"] = _canl.Context_keypath__set
    __swig_getmethods__["keypath_"] = _canl.Context_keypath__get
    if _newclass:keypath_ = _swig_property(_canl.Context_keypath__get, _canl.Context_keypath__set)
    __swig_setmethods__["nssdbpath_"] = _canl.Context_nssdbpath__set
    __swig_getmethods__["nssdbpath_"] = _canl.Context_nssdbpath__get
    if _newclass:nssdbpath_ = _swig_property(_canl.Context_nssdbpath__get, _canl.Context_nssdbpath__set)
    __swig_setmethods__["last_error_"] = _canl.Context_last_error__set
    __swig_getmethods__["last_error_"] = _canl.Context_last_error__get
    if _newclass:last_error_ = _swig_property(_canl.Context_last_error__get, _canl.Context_last_error__set)
Context_swigregister = _canl.Context_swigregister
Context_swigregister(Context)

class Validator(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, Validator, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, Validator, name)
    __repr__ = _swig_repr
    ValidationFull = _canl.Validator_ValidationFull
    ValidationNone = _canl.Validator_ValidationNone
    ValidationCRLNone = _canl.Validator_ValidationCRLNone
    ValidationCRLMandatory = _canl.Validator_ValidationCRLMandatory
    ValidationCRLIfValid = _canl.Validator_ValidationCRLIfValid
    ValidationCRLIfPresent = _canl.Validator_ValidationCRLIfPresent
    ValidationOCSPMandatory = _canl.Validator_ValidationOCSPMandatory
    ValidationOCSPIfPresent = _canl.Validator_ValidationOCSPIfPresent
    ValidationNamespaceNone = _canl.Validator_ValidationNamespaceNone
    ValidationNamespaceCheck = _canl.Validator_ValidationNamespaceCheck
    ValidationNamespaceLax = _canl.Validator_ValidationNamespaceLax
    ValidationProxyDisallow = _canl.Validator_ValidationProxyDisallow
    ValidationProxyAllow = _canl.Validator_ValidationProxyAllow
    ValidationBasic = _canl.Validator_ValidationBasic
    def __init__(self, *args): 
        this = _canl.new_Validator(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _canl.delete_Validator
    __del__ = lambda self : None;
    def __nonzero__(self):
        return _canl.Validator___nonzero__(self)
    __bool__ = __nonzero__


    def GetStatus(self): return _canl.Validator_GetStatus(self)
    def Copy(self): return _canl.Validator_Copy(self)
    def Mode(self): return _canl.Validator_Mode(self)
    def SetMode(self, *args): return _canl.Validator_SetMode(self, *args)
    def GetContext(self): return _canl.Validator_GetContext(self)
    def SetContext(self, *args): return _canl.Validator_SetContext(self, *args)
    def Validate(self, *args): return _canl.Validator_Validate(self, *args)
Validator_swigregister = _canl.Validator_swigregister
Validator_swigregister(Validator)

class Credentials(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, Credentials, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, Credentials, name)
    __repr__ = _swig_repr
    def __init__(self, *args): 
        this = _canl.new_Credentials(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _canl.delete_Credentials
    __del__ = lambda self : None;
    def __nonzero__(self):
        return _canl.Credentials___nonzero__(self)
    __bool__ = __nonzero__


    def GetStatus(self): return _canl.Credentials_GetStatus(self)
    def Copy(self): return _canl.Credentials_Copy(self)
    def Assign(self, *args): return _canl.Credentials_Assign(self, *args)
    def GetCertificate(self, *args): return _canl.Credentials_GetCertificate(self, *args)
    def GetChain(self, *args): return _canl.Credentials_GetChain(self, *args)
    def GetPrivateKey(self, *args): return _canl.Credentials_GetPrivateKey(self, *args)
    def Validate(self): return _canl.Credentials_Validate(self)
    def Sign(self, *args): return _canl.Credentials_Sign(self, *args)
    def GetSubjectName(self): return _canl.Credentials_GetSubjectName(self)
    def GetIdentityName(self): return _canl.Credentials_GetIdentityName(self)
    def GetIssuerName(self, position=0): return _canl.Credentials_GetIssuerName(self, position)
    def GetChainCert(self, *args): return _canl.Credentials_GetChainCert(self, *args)
    def GetValidFrom(self): return _canl.Credentials_GetValidFrom(self)
    def GetValidTill(self): return _canl.Credentials_GetValidTill(self)
    def GetSelfSigned(self): return _canl.Credentials_GetSelfSigned(self)
    def GetCA(self): return _canl.Credentials_GetCA(self)
    def GetProxy(self): return _canl.Credentials_GetProxy(self)
    def GetProxyLimited(self): return _canl.Credentials_GetProxyLimited(self)
    def GetProxyPolicy(self, *args): return _canl.Credentials_GetProxyPolicy(self, *args)
    def GetExtension(self, *args): return _canl.Credentials_GetExtension(self, *args)
    def GetAttributes(self, *args): return _canl.Credentials_GetAttributes(self, *args)
    def SetContext(self, *args): return _canl.Credentials_SetContext(self, *args)
    def GetContext(self): return _canl.Credentials_GetContext(self)
    def SetValidator(self, *args): return _canl.Credentials_SetValidator(self, *args)
    def GetValidator(self): return _canl.Credentials_GetValidator(self)
Credentials_swigregister = _canl.Credentials_swigregister
Credentials_swigregister(Credentials)

class CredentialsRequest(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, CredentialsRequest, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, CredentialsRequest, name)
    __repr__ = _swig_repr
    def __init__(self, *args): 
        this = _canl.new_CredentialsRequest(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _canl.delete_CredentialsRequest
    __del__ = lambda self : None;
    def __nonzero__(self):
        return _canl.CredentialsRequest___nonzero__(self)
    __bool__ = __nonzero__


    def GetStatus(self): return _canl.CredentialsRequest_GetStatus(self)
    def Copy(self): return _canl.CredentialsRequest_Copy(self)
    def MakeKeys(self, *args): return _canl.CredentialsRequest_MakeKeys(self, *args)
    def MakeRequest(self): return _canl.CredentialsRequest_MakeRequest(self)
    def AssignKeys(self, *args): return _canl.CredentialsRequest_AssignKeys(self, *args)
    def AssignRequest(self, *args): return _canl.CredentialsRequest_AssignRequest(self, *args)
    def GetSubjectName(self): return _canl.CredentialsRequest_GetSubjectName(self)
    def SetSubjectName(self, *args): return _canl.CredentialsRequest_SetSubjectName(self, *args)
    def GetValidFrom(self): return _canl.CredentialsRequest_GetValidFrom(self)
    def SetValidFrom(self, *args): return _canl.CredentialsRequest_SetValidFrom(self, *args)
    def GetValidTill(self): return _canl.CredentialsRequest_GetValidTill(self)
    def SetValidTill(self, *args): return _canl.CredentialsRequest_SetValidTill(self, *args)
    def GetExtension(self, *args): return _canl.CredentialsRequest_GetExtension(self, *args)
    def AddExtension(self, *args): return _canl.CredentialsRequest_AddExtension(self, *args)
    def GetAttributes(self, *args): return _canl.CredentialsRequest_GetAttributes(self, *args)
    def AddAttributes(self, *args): return _canl.CredentialsRequest_AddAttributes(self, *args)
    def GetPublicKey(self, *args): return _canl.CredentialsRequest_GetPublicKey(self, *args)
    def GetPrivateKey(self, *args): return _canl.CredentialsRequest_GetPrivateKey(self, *args)
    def GetRequest(self, *args): return _canl.CredentialsRequest_GetRequest(self, *args)
CredentialsRequest_swigregister = _canl.CredentialsRequest_swigregister
CredentialsRequest_swigregister(CredentialsRequest)

class CACredentialsRequest(CredentialsRequest):
    __swig_setmethods__ = {}
    for _s in [CredentialsRequest]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, CACredentialsRequest, name, value)
    __swig_getmethods__ = {}
    for _s in [CredentialsRequest]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, CACredentialsRequest, name)
    __repr__ = _swig_repr
    def __init__(self, *args): 
        this = _canl.new_CACredentialsRequest(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _canl.delete_CACredentialsRequest
    __del__ = lambda self : None;
    def Copy(self): return _canl.CACredentialsRequest_Copy(self)
    def MakeRequest(self): return _canl.CACredentialsRequest_MakeRequest(self)
    def Assign(self, *args): return _canl.CACredentialsRequest_Assign(self, *args)
    def GetCertificate(self, *args): return _canl.CACredentialsRequest_GetCertificate(self, *args)
CACredentialsRequest_swigregister = _canl.CACredentialsRequest_swigregister
CACredentialsRequest_swigregister(CACredentialsRequest)

class ProxyCredentialsRequest(CredentialsRequest):
    __swig_setmethods__ = {}
    for _s in [CredentialsRequest]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, ProxyCredentialsRequest, name, value)
    __swig_getmethods__ = {}
    for _s in [CredentialsRequest]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, ProxyCredentialsRequest, name)
    __repr__ = _swig_repr
    def __init__(self, *args): 
        this = _canl.new_ProxyCredentialsRequest(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _canl.delete_ProxyCredentialsRequest
    __del__ = lambda self : None;
    def Copy(self): return _canl.ProxyCredentialsRequest_Copy(self)
    def GetLimited(self): return _canl.ProxyCredentialsRequest_GetLimited(self)
    def SetLimited(self, *args): return _canl.ProxyCredentialsRequest_SetLimited(self, *args)
    def GetPolicy(self, *args): return _canl.ProxyCredentialsRequest_GetPolicy(self, *args)
    def SetPolicy(self, *args): return _canl.ProxyCredentialsRequest_SetPolicy(self, *args)
ProxyCredentialsRequest_swigregister = _canl.ProxyCredentialsRequest_swigregister
ProxyCredentialsRequest_swigregister(ProxyCredentialsRequest)

class IO(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, IO, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, IO, name)
    __repr__ = _swig_repr
    def __init__(self, *args): 
        this = _canl.new_IO(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _canl.delete_IO
    __del__ = lambda self : None;
    def __nonzero__(self):
        return _canl.IO___nonzero__(self)
    __bool__ = __nonzero__


    def SetOwnCredentials(self, *args): return _canl.IO_SetOwnCredentials(self, *args)
    def GetOwnCredentials(self): return _canl.IO_GetOwnCredentials(self)
    def GetPeerCredentials(self): return _canl.IO_GetPeerCredentials(self)
    def SetValidator(self, *args): return _canl.IO_SetValidator(self, *args)
    def GetValidator(self): return _canl.IO_GetValidator(self)
    def Read(self, *args): return _canl.IO_Read(self, *args)
    def Write(self, *args): return _canl.IO_Write(self, *args)
    def Close(self): return _canl.IO_Close(self)
    def SetTimeout(self, *args): return _canl.IO_SetTimeout(self, *args)
    def GetTimeout(self): return _canl.IO_GetTimeout(self)
    def GetStatus(self): return _canl.IO_GetStatus(self)
IO_swigregister = _canl.IO_swigregister
IO_swigregister(IO)
cvar = _canl.cvar
IO.NotImplemented = _canl.cvar.IO_NotImplemented
IO.CommunicationTimeout = _canl.cvar.IO_CommunicationTimeout

class IONetwork(IO):
    __swig_setmethods__ = {}
    for _s in [IO]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, IONetwork, name, value)
    __swig_getmethods__ = {}
    for _s in [IO]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, IONetwork, name)
    __repr__ = _swig_repr
    def __init__(self, *args): 
        this = _canl.new_IONetwork(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _canl.delete_IONetwork
    __del__ = lambda self : None;
    def Connect(self, *args): return _canl.IONetwork_Connect(self, *args)
    def Accept(self, *args): return _canl.IONetwork_Accept(self, *args)
    def __nonzero__(self):
        return _canl.IONetwork___nonzero__(self)
    __bool__ = __nonzero__


IONetwork_swigregister = _canl.IONetwork_swigregister
IONetwork_swigregister(IONetwork)

class IOSocket(IO):
    __swig_setmethods__ = {}
    for _s in [IO]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, IOSocket, name, value)
    __swig_getmethods__ = {}
    for _s in [IO]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, IOSocket, name)
    __repr__ = _swig_repr
    def __init__(self, *args): 
        this = _canl.new_IOSocket(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _canl.delete_IOSocket
    __del__ = lambda self : None;
    def Connect(self, *args): return _canl.IOSocket_Connect(self, *args)
    def Accept(self, *args): return _canl.IOSocket_Accept(self, *args)
    def __nonzero__(self):
        return _canl.IOSocket___nonzero__(self)
    __bool__ = __nonzero__


IOSocket_swigregister = _canl.IOSocket_swigregister
IOSocket_swigregister(IOSocket)

# This file is compatible with both classic and new-style classes.