util/mkdef.pl: handle line terminators correctly
authorRichard Levitte <levitte@openssl.org>
Thu, 31 Aug 2017 09:35:25 +0000 (11:35 +0200)
committerRichard Levitte <levitte@openssl.org>
Thu, 31 Aug 2017 17:21:15 +0000 (19:21 +0200)
commit0d13ed3a17e9a98678a1695921bb479294b4b210
treed7bb85784d9bbd340932f09d94da8b1a33fe2ad8
parent03b4e1c3496ae009a0e1df1a39c48b051dcca3db
util/mkdef.pl: handle line terminators correctly

When parsing the header files, mkdef.pl didn't clear the line
terminator properly.  In most cases, this didn't matter, but there
were moments when this caused parsing errors (such as CRLFs in certain
cases).

Fixes #4267

Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4304)

(cherry picked from commit e66b62b86e7725bdace0f24a76baa61db9c763f8)
util/mkdef.pl