c++ - Parsing SSH2 (RFC4716) Public Key -
i've been working ssh2 file format , trying find way parse out elements of ssh2 public key left encoded base64 data. i've been able remove file fields "---- begin ssh2 public key ---- " , "---- end ssh2 public key ----" i've been wondering how remove other potential data fields such comment : "foo" or subject:"bar"
discard lines/continued-lines headers until find 1 that's not header, , you're left base64-encoded data.
from rfc:
a line not continuation line has no ':' in first line of base64-encoded body.
if treat line-continuation marker having high-precedence lexically, should straightforward after that.
Comments
Post a Comment