comparison test/test_dropbearconvert.py @ 1911:ced53051e200

Add ecdsa OpenSSH format for dropbearconvert
author Matt Johnston <matt@ucc.asn.au>
date Tue, 29 Mar 2022 23:27:55 +0800
parents 43ebe0028187
children
comparison
equal deleted inserted replaced
1910:54a85bbe5017 1911:ced53051e200
25 """ 25 """
26 opt = request.config.option 26 opt = request.config.option
27 kt, keybits = parse_keytype(keytype) 27 kt, keybits = parse_keytype(keytype)
28 28
29 if kt == 'dss' and keyformat is None: 29 if kt == 'dss' and keyformat is None:
30 pytest.xfail("dss doesn't support openssh format") 30 pytest.skip("dss doesn't support openssh format")
31
32 if kt == 'ecdsa' and keyformat is None:
33 pytest.skip("ecdsa doesn't support openssh format yet")
34 31
35 os_kt = kt 32 os_kt = kt
36 if os_kt == 'dss': 33 if os_kt == 'dss':
37 # OpenSSH calls it 'dsa', Dropbear calls it 'dss' 34 # OpenSSH calls it 'dsa', Dropbear calls it 'dss'
38 os_kt = 'dsa' 35 os_kt = 'dsa'