pam_pkcs11
pam_pkcs11 copied to clipboard
Possible openssh_mapper error with SSH v1 key
Hi! There is the following mismatch in the openssh_mapper.c
:
It uses
RSA_set0_key(rsa, rsa_e, rsa_n, NULL);
when is parsing ssh v1 key, but
RSA_set0_key(rsa, rsa_n, rsa_e, NULL);
for ssh v2 key. Notice the different order of rsa_e
and rsa_n
in the calls. Possibly, that's an error. However, I don't known where can I get an SSH version 1 key to check it in runtime.