summaryrefslogtreecommitdiff
path: root/sys/lib/ghostscript/cid2code.ps
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2021-10-17 23:19:33 +0000
committercinap_lenrek <cinap_lenrek@felloff.net>2021-10-17 23:19:33 +0000
commite0d2453f56ac602e3d70e55cb2ff06a39f6ca20a (patch)
tree8c14da53b733e11d3d2f56ae0456402b30ca05c1 /sys/lib/ghostscript/cid2code.ps
parent741e9433412e7a899119769fa950a6c7b77a67ae (diff)
libsec: fix bugs in tls extension handling (thanks kemal)
this patch fixes bugs in tls extension handling: 1. if conn->serverName is an empty string, tlsClientExtensions will generate a SNI with an empty hostname, which is forbidden according to RFC 6066: opaque HostName<1..2^16-1>; check if conn->serverName has at least one char. 2. checkClientExtensions fail with clients that doesn't have extensions, because it doesn't check if ext is nil. fix that up. 3. rewrite checkClientExtensions. some parts of the code does not check the length properly, and it could be simplified heavily.
Diffstat (limited to 'sys/lib/ghostscript/cid2code.ps')
0 files changed, 0 insertions, 0 deletions