def ssh_gss_oids(self, mode="<STR_LIT>"):
from pyasn1.type.univ import ObjectIdentifier<EOL>from pyasn1.codec.der import encoder<EOL>OIDs = self._make_uint32(<NUM_LIT:1>)<EOL>krb5_OID = encoder.encode(ObjectIdentifier(self._krb5_mech))<EOL>OID_len = self._make_uint32(len(krb5_OID))<EOL>if mode == "<STR_LIT>":<EOL><INDENT>return OID_len + krb5_OID<EOL><DEDENT>return OIDs + OID_len + krb5_OID<EOL>
This method returns a single OID, because we only support the
Kerberos V5 mechanism.

:param str mode: Client for client mode and server for server mode
:return: A byte sequence containing the number of supported
         OIDs, the length of the OID and the actual OID encoded with
         DER
:note: In server mode we just return the OID length and the DER encoded
       OID.