Rename var and func to prepare symetric client stuff
Review FSM to perform connect only after handshake validation, it is more safe and prepare client certificate management.
Add proxy line is performed only after handshake to prepare PROXY protocol extension to include SSL data.
Add client stuff.
Honor the tls & ssl config file directives
Merge pull request #79 from EmericBr/StudClientMode

Stud client mode
Code cleanup

The code had mixed tabs/spaces and trailing whitespace. I standardized
on 4-space indentation for stud.c and deleted all trailing whitespace. I
also cleaned up whitespace in shctx.c (but did not standardize spacing
there)
Proxy-PROXY support

A mode that enables transparently passing the PROXY header generated by
HAProxy et. al. through to the backend connection. This can be useful
if you are using a TCP load balancer (such as HAProxy in tcp mode) to
distribute encrypted streams to stud before they are unwrapped.
Add SNI support

If multiple certificates are specified, try to perform Server Name
Indication to serve the most appropriate one. We fall back to the last
certificate presented if none of the previous ones match, making it a
useful place to put a star cert.

A few caveats:
- Certificate names are compared as case-insensitive strings, without
  any special logic for dealing with wildcards. The current workaround
  is to always place wildcard certificates last, where they act as the
  default catch-all.
- Certificates are examined in order. The first certificate that matches
  any given request will be used.
- The name -> certificate mapping is stored in a singly linked list.
  This performs very well for use with a handful of certificates, none
  of which have very many Subject Alternative Names, however sites which
  must serve a large number of certificates or names might find a linear
  list scan on every new connection too slow.
Merge pull request #113 from zenazn/master

Better PROXY support and SNI
Merge pull request #90 from stash/ssl-flag

Honor the ssl config file & command-line option