def encode(self): nbuf = super().encode() nbuf += sshtype.encodeNameList(self.auths) nbuf += struct.pack("?", self.partial_success) return nbuf
def encode(self): nbuf = super().encode() nbuf += self.cookie nbuf += sshtype.encodeNameList(self.kex_algorithms) nbuf += sshtype.encodeNameList(self.server_host_key_algorithms) nbuf += sshtype.encodeNameList(self.encryption_algorithms_client_to_server) nbuf += sshtype.encodeNameList(self.encryption_algorithms_server_to_client) nbuf += sshtype.encodeNameList(self.mac_algorithms_client_to_server) nbuf += sshtype.encodeNameList(self.mac_algorithms_server_to_client) nbuf += sshtype.encodeNameList(self.compression_algorithms_client_to_server) nbuf += sshtype.encodeNameList(self.compression_algorithms_server_to_client) nbuf += sshtype.encodeNameList(self.languages_client_to_server) nbuf += sshtype.encodeNameList(self.languages_server_to_client) nbuf += struct.pack("?", self.first_kex_packet_follows) nbuf += struct.pack(">L", 0) return nbuf
def encode(self): nbuf = super().encode() nbuf += self.cookie nbuf += sshtype.encodeNameList(self.kex_algorithms) nbuf += sshtype.encodeNameList(self.server_host_key_algorithms) nbuf += sshtype.encodeNameList( self.encryption_algorithms_client_to_server) nbuf += sshtype.encodeNameList( self.encryption_algorithms_server_to_client) nbuf += sshtype.encodeNameList(self.mac_algorithms_client_to_server) nbuf += sshtype.encodeNameList(self.mac_algorithms_server_to_client) nbuf += sshtype.encodeNameList( self.compression_algorithms_client_to_server) nbuf += sshtype.encodeNameList( self.compression_algorithms_server_to_client) nbuf += sshtype.encodeNameList(self.languages_client_to_server) nbuf += sshtype.encodeNameList(self.languages_server_to_client) nbuf += struct.pack("?", self.first_kex_packet_follows) nbuf += struct.pack(">L", 0) return nbuf