Re: ssh: sshkey.c: reduce code duplication

2022-05-04 Thread Damien Miller
On Wed, 4 May 2022, Martin Vahlensieck wrote: > Hi > > I noticed that sshkey_unshield_private contains a exact duplicate > of the code in private2_check_padding. So by pulling > private2_check_padding up, the code can be reused. Or is there > a reason for this split? Thanks - this has been app

ssh: sshkey.c: reduce code duplication

2022-05-04 Thread Martin Vahlensieck
Hi I noticed that sshkey_unshield_private contains a exact duplicate of the code in private2_check_padding. So by pulling private2_check_padding up, the code can be reused. Or is there a reason for this split? Best, Martin P.S.: This diff also removes two trailing spaces while here. Index: s