Re: Public key types

2020-07-23 Thread Bruno Buzzi Brassesco
Hi, Thank you for the fast answer. Unfortunately ssh_key_type_to_char() answer NULL so the type is unknown. regards, bruno El jue., 23 jul. 2020 a las 10:21, escribió: > On 23.07.20 15:06, Bruno Buzzi Brassesco wrote: > > > But ssh_key_type() answer numbers like: > > 19111840 > > 19113312 > >

Re: Public key types

2020-07-23 Thread g4-lisz
On 23.07.20 15:06, Bruno Buzzi Brassesco wrote: > But ssh_key_type() answer numbers like: > 19111840 > 19113312 > and so on ... > Which does not seem correct because it should be a "ssh_keytypes_e". Did you try ssh_key_type_to_char()? If it gives the right results, then you are just using a

Public key types

2020-07-23 Thread Bruno Buzzi Brassesco
Hi, I have a pair of public and private keys generated with: ssh-keygen -t rsa Using ssh_pki_import_pubkey_file() import the key correctly it answers SSH_OK (0). But ssh_key_type() answer numbers like: 19111840 19113312 and so on ... Which does not seem correct because it should be a