Returns an SSH2.Kex object to simulate a server connection.
(self)
| 19 | |
| 20 | |
| 21 | def _get_kex(self): |
| 22 | '''Returns an SSH2.Kex object to simulate a server connection.''' |
| 23 | |
| 24 | w = self.wbuf() |
| 25 | w.write(b'\x00\x11\x22\x33\x44\x55\x66\x77\x88\x99\xaa\xbb\xcc\xdd\xee\xff') |
| 26 | w.write_list(['kex_alg1', 'kex_alg2']) |
| 27 | w.write_list(['key_alg1', 'key_alg2']) |
| 28 | w.write_list(['cipher_alg1', 'cipher_alg2', 'cipher_alg3']) |
| 29 | w.write_list(['cipher_alg1', 'cipher_alg2', 'cipher_alg3']) |
| 30 | w.write_list(['mac_alg1', 'mac_alg2', 'mac_alg3']) |
| 31 | w.write_list(['mac_alg1', 'mac_alg2', 'mac_alg3']) |
| 32 | w.write_list(['comp_alg1', 'comp_alg2']) |
| 33 | w.write_list(['comp_alg1', 'comp_alg2']) |
| 34 | w.write_list(['']) |
| 35 | w.write_list(['']) |
| 36 | w.write_byte(False) |
| 37 | w.write_int(0) |
| 38 | return self.ssh2_kex.parse(self.OutputBuffer, w.write_flush()) |
| 39 | |
| 40 | |
| 41 | def test_builtin_policy_consistency(self): |
no test coverage detected