Lines Matching full:hostname
29 static BIO *create_socket_bio(const char *hostname, const char *port, int family) in create_socket_bio() argument
39 if (!BIO_lookup_ex(hostname, port, BIO_LOOKUP_CLIENT, family, SOCK_STREAM, 0, in create_socket_bio()
111 char *hostname, *port; in main() local
116 printf("Usage: tls-client-block [-6] hostname port\n"); in main()
122 printf("Usage: tls-client-block [-6] hostname port\n"); in main()
128 hostname = argv[argnext++]; in main()
175 bio = create_socket_bio(hostname, port, ipv6 ? AF_INET6 : AF_INET); in main()
183 * Tell the server during the handshake which hostname we are attempting in main()
186 if (!SSL_set_tlsext_host_name(ssl, hostname)) { in main()
187 printf("Failed to set the SNI hostname\n"); in main()
193 * supplied a certificate for the hostname that we were expecting. in main()
197 if (!SSL_set1_host(ssl, hostname)) { in main()
198 printf("Failed to set the certificate verification hostname"); in main()
220 if (!SSL_write_ex(ssl, hostname, strlen(hostname), &written)) { in main()
221 printf("Failed to write hostname in HTTP request\n"); in main()