On Wed, 30 Apr 2014, Dimitrios Chr. Ioannidis wrote:
Hi,
i had to add support for client side Server Name Indication (SNI) TLS
extension which is supported in OpenSSL from version 0.9.8 ( k ? ) (
http://en.wikipedia.org/wiki/Server_Name_Indication ) .
It's a trivial change ( doesn't break anything, i think ... ) so can you
review it for inclusion ?
Regarding the absense of a switch ( at least ) for the SSCtrl call i read
in the net that "... but looking at the OpenSSL code there is no harm done
calling SSL_ctrl using undefined cmd parameters. Support for the
SSL_CTRL_SET_TLSEXT_HOSTNAME can also be disabled when compiling openssl
which confirms the no harm done."
I implemented the support, but did it differently.
- Added some more missing constants
- Added Ctrl() method to TSSL object
- Added SendHostAsSNI : boolean property to TSSLHandler. By default it is set
to true.
Thanks for your addition.
Definite proof that open source is still the best way for software development.
Michael.
_______________________________________________
fpc-devel maillist - [email protected]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel