Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

add evhtp_connection_ssl_new_dns #165

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

ikonopistsev
Copy link

example

    const char* hostname = "www.gentoo.org";
    
    evhtp_connection_t* conn =
        evhtp_connection_ssl_new_dns(queue, dns, hostname, 443, ssl);

    // setup tls hos tname
    SSL_set_tlsext_host_name(conn->ssl, hostname);

    evhtp_request_t* req = evhtp_request_new(evhtp_callback, NULL);

    evhtp_headers_add_header(req->headers_out,
        evhtp_header_new("Host", hostname, NULL, NULL));

    evhtp_headers_add_header(req->headers_out,
            evhtp_header_new("Connection", "close", NULL, NULL));

    evhtp_make_request(conn, req, htp_method_GET, "/");

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant