Moved writing of client extensions to separate functions in ssl_cli.c