]> git.ipfire.org Git - thirdparty/openvpn.git/commit
options: check for blanks in fingerprints and reject string if found
authorAntonio Quartulli <antonio@openvpn.net>
Wed, 21 Apr 2021 23:49:08 +0000 (01:49 +0200)
committerGert Doering <gert@greenie.muc.de>
Mon, 26 Apr 2021 15:14:24 +0000 (17:14 +0200)
commit9e71cf13134c10bb7e952e3dadbcc79884f60b93
tree38b4c4150e199b4fa2a3a31c4b3b5584c5b06f55
parent1e25f9792fc955ef4e333afb5259b3f669f62355
options: check for blanks in fingerprints and reject string if found

A fingerprint is not expected to contains any blank (white space),
however, the parser routine will still attempt parsing the octect
and ignore the space.

This means that a fingerprint like
  "5 :F0: 8:75:70:46:6E:(...)"
will be parsed successfully.

Explicitly check for spaces in the various octets, before conversion,
and error out if any is found.

Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <20210421234908.12817-1-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg22182.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/options.c