return 1;
}
W3_Library_Init();
- struct W3* w3 = W3_Create("http", argv[1], 80);
+ struct W3* w3 = W3_Create("https", argv[1], 443);
if(w3 != NULL) {
W3_Set_Read_Size(w3, 1024);
W3_Set_Method(w3, argv[3] == NULL ? "GET" : argv[3]);
*o_ctx = SSL_CTX_new(method);
*o_ssl = SSL_new(*o_ctx);
SSL_set_fd(*o_ssl, sock);
+ SSL_set_tlsext_host_name(*o_ssl, hostname);
if(SSL_connect(*o_ssl) != 1) {
SSL_CTX_free(*o_ctx);
SSL_free(*o_ssl);
extern "C" {
#endif
-#define LIBW3_VERSION "2.20C" \
+#define LIBW3_VERSION "2.20D" \
SUFFIX
ifdef(`HTTP_SUPPORT', `#define LIBW3_HTTP_SUPPORT', `')