HomePhabricator

pki: Search OpenSSH header not only at the beginning

Authored by Anderson Toshiyuki Sasaki <ansasaki@redhat.com> on Jul 29 2019, 1:31 PM.

Description

pki: Search OpenSSH header not only at the beginning

Try to find the OpenSSH private key header not only at the beginning of
the file. This makes the parser to skip comments and white spaces.

Fixes: T76
Fixes: T123

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit 88d777e6782330be8d6916f672ae106a5bd32b10)

Details

Committed
JakujeAug 8 2019, 9:42 AM
Parents
rLIBSSH7b8d57fbb6a1: tests: Use the correct assert function in test server
Branches
Unknown
Tags
Unknown