Add sample code showing how to extract domain from subject
Check for client extensions before dealing with certificate.
Merge.
Document how to extract common name (aka server name) from certificate.
tlshand: improve parsing of SNI extension.
sni: increment pointer *after* host_name check
limit size and null terminate server name identifier
allocate space for server name identifier (@iboehm)