[erlang-bugs] R15B01: PUBLIC_KEY: unable to decode auth_keys/pubkeys with comments

Ingela Anderton Andin Ingela.Anderton.Andin@REDACTED
Wed Aug 29 17:51:46 CEST 2012


Ingela Anderton Andin wrote:
> Hi!
> 
> We will fix this, but alas we do not have time to fix it for the 
> upcoming release.
> Thanks for altering us.
               ^^^^^^
             alerting!
	

> 
> Regards Ingela Erlang/OTP team - Ericsson AB
> 
> Stefan Zegenhagen wrote:
>> Dear all,
>>
>> the public_key application fails to decode SSH public keys from *.pub
>> files or the authorized_keys file when the key has comments with
>> whitespace in between.
>>
>> The key file is split at whitespace boundaries and the function
>> mend_split() in pubkey_ssh.erl is used to extract the relevant pieces
>> (KeyType, KeyData, ...).
>>
>> When the key comment contains whitespace, the mend_split() function
>> fails to merge the pieces of the comment into a single string and causes
>> badmatch exceptions in do_openssh_decode/3.
>>
>> Since the format of the "known_hosts" file and the "authorized_keys" or
>> *.pub files is fundamentally different, it might be necessary to have
>> different functions to parse them.
>>
>> Kind regards,
>>
>>   
> 
> _______________________________________________
> erlang-bugs mailing list
> erlang-bugs@REDACTED
> http://erlang.org/mailman/listinfo/erlang-bugs




More information about the erlang-bugs mailing list