LIBSSH2_HOSTKEY_METHOD's hash_len

Patrick Monnerat patrick at monnerat.net
Thu Mar 30 18:45:41 CEST 2023


Hello list,

I noticed two things about field hash_len of structure 
_LIBSSH2_HOSTKEY_METHOD:

1) It seems unused in the current code base,

2) If its goal is to describe the signing/verification algorithm, it is 
wrongly set to MD5 in hostkey.c for hostkey_method_ssh_rsa, 
hostkey_method_ssh_rsa_cert and hostkey_method_ssh_dss.

Correct me if I'm wrong.

But please, don't remove it yet: I'm currently working on os400qc3 
modernization and will probably need to pass it to the init() procedures 
to include the algo in the key context, as required by the Qc3 API.

Thanks for your confirmation.

Regards,

Patrick



More information about the libssh2-devel mailing list