# Path: tests/util.py
# def _support(filename):
# def _config(name):
# def needs_builtin(name):
#         def __init__(self):
#         def setUpClass(cls):
#         def tearDownClass(cls):
#             def setUpClass(cls):
# def update_env(testcase, mapping, env=os.environ):
#     def replace(target, source):
# def k5shell(args=None):
# def is_low_entropy():
#     class DummyK5Realm(object):
#     class KerberosTestCase(unittest.TestCase):
#         class KerberosTestCase(unittest.TestCase):


import socket
            import gssapi
            import sspicon
            import sspi
from .util import needs_gssapi, KerberosTestCase, update_env
        from pyasn1.type.univ import ObjectIdentifier
        from pyasn1.codec.der import encoder, decoder
# A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Paramiko; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA.

"""
Test the used APIs for GSS-API / SSPI authentication
"""



#
# NOTE: KerberosTestCase skips all tests if it was unable to import k5test
# third-party library. That's the primary trigger for whether this module
# effectively gets run or not. See tests/util.py for other triggers (a set of
# env vars a human might have defined).
#


@needs_gssapi
class GSSAPITest(KerberosTestCase):
    def setUp(self):
        super(GSSAPITest, self).setUp()
        # TODO: these vars should all come from os.environ or whatever the
        # approved pytest method is for runtime-configuring test data.
        self.krb5_mech = "1.2.840.113554.1.2.2"
        self.targ_name = self.realm.hostname
        self.server_mode = False

# Path: tests/util.py
# def _support(filename):
# def _config(name):
# def needs_builtin(name):
#         def __init__(self):
#         def setUpClass(cls):
#         def tearDownClass(cls):
#             def setUpClass(cls):
# def update_env(testcase, mapping, env=os.environ):
#     def replace(target, source):
# def k5shell(args=None):
# def is_low_entropy():
#     class DummyK5Realm(object):
#     class KerberosTestCase(unittest.TestCase):
#         class KerberosTestCase(unittest.TestCase):


# Path: tests/test_gssapi.py
import socket
            import gssapi
            import sspicon
            import sspi
from .util import needs_gssapi, KerberosTestCase, update_env
        from pyasn1.type.univ import ObjectIdentifier
        from pyasn1.codec.der import encoder, decoder

# A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Paramiko; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA.

"""
Test the used APIs for GSS-API / SSPI authentication
"""



#
# NOTE: KerberosTestCase skips all tests if it was unable to import k5test
# third-party library. That's the primary trigger for whether this module
# effectively gets run or not. See tests/util.py for other triggers (a set of
# env vars a human might have defined).
#


@needs_gssapi
class GSSAPITest(KerberosTestCase):
    def setUp(self):
        super(GSSAPITest, self).setUp()
        # TODO: these vars should all come from os.environ or whatever the
        # approved pytest method is for runtime-configuring test data.
        self.krb5_mech = "1.2.840.113554.1.2.2"
        self.targ_name = self.realm.hostname
        self.server_mode = False

        update_env(self, self.realm.env)