Commit e61c8445 authored by ale's avatar ale

Revert "Include swig-generated sso_c.py file"

This reverts commit 01eb7558.
parent 76caf208
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info as _swig_python_version_info
if _swig_python_version_info >= (2, 7, 0):
def swig_import_helper():
import importlib
pkg = __name__.rpartition('.')[0]
mname = '.'.join((pkg, '_sso_c')).lstrip('.')
try:
return importlib.import_module(mname)
except ImportError:
return importlib.import_module('_sso_c')
_sso_c = swig_import_helper()
del swig_import_helper
elif _swig_python_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('_sso_c', [dirname(__file__)])
except ImportError:
import _sso_c
return _sso_c
if fp is not None:
try:
_mod = imp.load_module('_sso_c', fp, pathname, description)
finally:
fp.close()
return _mod
_sso_c = swig_import_helper()
del swig_import_helper
else:
import _sso_c
del _swig_python_version_info
try:
_swig_property = property
except NameError:
pass # Python < 2.2 doesn't have 'property'.
try:
import builtins as __builtin__
except ImportError:
import __builtin__
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):
object.__setattr__(self, 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("'%s' object has no attribute '%s'" % (class_type.__name__, name))
def _swig_repr(self):
try:
strthis = "proxy of " + self.this.__repr__()
except __builtin__.Exception:
strthis = ""
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
def _swig_setattr_nondynamic_method(set):
def set_attr(self, name, value):
if (name == "thisown"):
return self.this.own(value)
if hasattr(self, name) or (name == "this"):
set(self, name, value)
else:
raise AttributeError("You cannot add attributes to %s" % self)
return set_attr
__sso_H = _sso_c.__sso_H
SSO_TICKET_VERSION = _sso_c.SSO_TICKET_VERSION
SSO_OK = _sso_c.SSO_OK
SSO_ERR_SERIALIZATION = _sso_c.SSO_ERR_SERIALIZATION
SSO_ERR_DESERIALIZATION = _sso_c.SSO_ERR_DESERIALIZATION
SSO_ERR_SIGNATURE = _sso_c.SSO_ERR_SIGNATURE
SSO_ERR_BUFFER_TOO_SMALL = _sso_c.SSO_ERR_BUFFER_TOO_SMALL
SSO_ERR_BAD_SIGNATURE = _sso_c.SSO_ERR_BAD_SIGNATURE
SSO_ERR_UNSUPPORTED_VERSION = _sso_c.SSO_ERR_UNSUPPORTED_VERSION
SSO_ERR_EXPIRED = _sso_c.SSO_ERR_EXPIRED
SSO_ERR_BAD_SERVICE = _sso_c.SSO_ERR_BAD_SERVICE
SSO_ERR_BAD_DOMAIN = _sso_c.SSO_ERR_BAD_DOMAIN
SSO_ERR_NO_MATCHING_GROUPS = _sso_c.SSO_ERR_NO_MATCHING_GROUPS
SSO_ERR_DECODE64 = _sso_c.SSO_ERR_DECODE64
SSO_ERR_BAD_NONCE = _sso_c.SSO_ERR_BAD_NONCE
SSO_ERR_MISSING_REQUIRED_FIELD = _sso_c.SSO_ERR_MISSING_REQUIRED_FIELD
SSO_ERR_INVALID_FIELD = _sso_c.SSO_ERR_INVALID_FIELD
SSO_PUBLIC_KEY_SIZE = _sso_c.SSO_PUBLIC_KEY_SIZE
SSO_SECRET_KEY_SIZE = _sso_c.SSO_SECRET_KEY_SIZE
class sso_ticket(object):
thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
user = _swig_property(_sso_c.sso_ticket_user_get, _sso_c.sso_ticket_user_set)
service = _swig_property(_sso_c.sso_ticket_service_get, _sso_c.sso_ticket_service_set)
domain = _swig_property(_sso_c.sso_ticket_domain_get, _sso_c.sso_ticket_domain_set)
nonce = _swig_property(_sso_c.sso_ticket_nonce_get, _sso_c.sso_ticket_nonce_set)
groups = _swig_property(_sso_c.sso_ticket_groups_get, _sso_c.sso_ticket_groups_set)
expires = _swig_property(_sso_c.sso_ticket_expires_get, _sso_c.sso_ticket_expires_set)
def __init__(self):
this = _sso_c.new_sso_ticket()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
__swig_destroy__ = _sso_c.delete_sso_ticket
__del__ = lambda self: None
sso_ticket_swigregister = _sso_c.sso_ticket_swigregister
sso_ticket_swigregister(sso_ticket)
def sso_ticket_new(user, service, domain, nonce, groups, validity_seconds):
return _sso_c.sso_ticket_new(user, service, domain, nonce, groups, validity_seconds)
sso_ticket_new = _sso_c.sso_ticket_new
def sso_ticket_free(t):
return _sso_c.sso_ticket_free(t)
sso_ticket_free = _sso_c.sso_ticket_free
def sso_ticket_sign(t, secret_key):
return _sso_c.sso_ticket_sign(t, secret_key)
sso_ticket_sign = _sso_c.sso_ticket_sign
def sso_generate_keys():
return _sso_c.sso_generate_keys()
sso_generate_keys = _sso_c.sso_generate_keys
def sso_ticket_open(str, public_key):
return _sso_c.sso_ticket_open(str, public_key)
sso_ticket_open = _sso_c.sso_ticket_open
def sso_validate(t, service, domain, nonce, groups):
return _sso_c.sso_validate(t, service, domain, nonce, groups)
sso_validate = _sso_c.sso_validate
def sso_strerror(err):
return _sso_c.sso_strerror(err)
sso_strerror = _sso_c.sso_strerror
def sso_base64_encode(dst, dlen, src, slen):
return _sso_c.sso_base64_encode(dst, dlen, src, slen)
sso_base64_encode = _sso_c.sso_base64_encode
def sso_base64_decode(dst, dlen, src, slen):
return _sso_c.sso_base64_decode(dst, dlen, src, slen)
sso_base64_decode = _sso_c.sso_base64_decode
def sso_base64_encode_size(slen):
return _sso_c.sso_base64_encode_size(slen)
sso_base64_encode_size = _sso_c.sso_base64_encode_size
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment