gssapi/ctx.py
def lifetime(self):
        """
        The lifetime of the context in seconds (only valid after :meth:`step` has been called). If
        the context does not have a time limit on its validity, this will be
        :const:`gssapi.C_INDEFINITE`
        """

        minor_status = ffi.new('OM_uint32[1]')
        lifetime_rec = ffi.new('OM_uint32[1]')

        retval = C.gss_inquire_context(
            minor_status,
            self._ctx[0],
            ffi.NULL,  # src_name
            ffi.NULL,  # target_name
            lifetime_rec,
            ffi.NULL,  # mech_type
            ffi.NULL,  # ctx_flags
            ffi.NULL,  # locally_initiated
            ffi.NULL   # established
        )
        if GSS_ERROR(retval):
            if minor_status[0] and self.mech_type:
                raise _exception_for_status(retval, minor_status[0], self.mech_type)
            else:
                raise _exception_for_status(retval, minor_status[0])
        return lifetime_rec[0]
def lifetime(self):
        """
        The lifetime of the context in seconds (only valid after :meth:`step` has been called). If
        the context does not have a time limit on its validity, this will be
        :const:`gssapi.C_INDEFINITE`
        """

        minor_status = ffi.new('OM_uint32[1]')
        lifetime_rec = ffi.new('OM_uint32[1]')

        retval = C.gss_inquire_context(
            minor_status,
            self._ctx[0],
            ffi.NULL,  # src_name
            ffi.NULL,  # target_name
            lifetime_rec,
            ffi.NULL,  # mech_type
            ffi.NULL,  # ctx_flags
            ffi.NULL,  # locally_initiated
            ffi.NULL   # established
        )
        if GSS_ERROR(retval):
            if minor_status[0] and self.mech_type:
                raise _exception_for_status(retval, minor_status[0], self.mech_type)
            else:
                raise _exception_for_status(retval, minor_status[0])
        return lifetime_rec[0]
def lifetime ( self ) : minor_status = ffi . new ( 'OM_uint32[1]' ) lifetime_rec = ffi . new ( 'OM_uint32[1]' ) retval = C . gss_inquire_context ( minor_status , self . _ctx [ 0 ] , ffi . NULL , # src_name ffi . NULL , # target_name lifetime_rec , ffi . NULL , # mech_type ffi . NULL , # ctx_flags ffi . NULL , # locally_initiated ffi . NULL # established ) if GSS_ERROR ( retval ) : if minor_status [ 0 ] and self . mech_type : raise _exception_for_status ( retval , minor_status [ 0 ] , self . mech_type ) else : raise _exception_for_status ( retval , minor_status [ 0 ] ) return lifetime_rec [ 0 ]
The lifetime of the context in seconds (only valid after :meth:`step` has been called). If
        the context does not have a time limit on its validity, this will be
        :const:`gssapi.C_INDEFINITE`
The lifetime of the context in seconds ( only valid after : meth : step has been called ) . If the context does not have a time limit on its validity this will be : const : gssapi . C_INDEFINITE