]> git.ipfire.org Git - thirdparty/curl.git/commit
x509asn1: cleanup and unify code layout
authorDaniel Stenberg <daniel@haxx.se>
Mon, 18 Feb 2019 11:28:35 +0000 (12:28 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 19 Feb 2019 15:03:19 +0000 (16:03 +0100)
commitd8b0318ad6da7e51f7c94df00a5f165a52580889
tree521df831d0ba03b757e4ceb6ef55bddb81852e76
parent5e1b5e6936ea4fea895abbf94b261831d7ba8eff
x509asn1: cleanup and unify code layout

- rename 'n' to buflen in functions, and use size_t for them. Don't pass
  in negative buffer lengths.

- move most function comments to above the function starts like we use
  to

- remove several unnecessary typecasts (especially of NULL)

Reviewed-by: Patrick Monnerat
Closes #3582
lib/x509asn1.c