Lines Matching refs:hostname
177 if (!BIO_lookup_ex(hostname, port, BIO_LOOKUP_CLIENT, family, SOCK_STREAM, 0,
214 the above example code the B<hostname> and B<port> variables are strings, e.g.
255 =head2 Setting the server's hostname
258 still needs to know the server's hostname. It uses this information for 2 key
259 purposes and we need to set the hostname for each one.
261 Firstly, the server's hostname is included in the initial ClientHello message
270 To set the SNI hostname data we call the L<SSL_set_tlsext_host_name(3)> function
274 * Tell the server during the handshake which hostname we are attempting
277 if (!SSL_set_tlsext_host_name(ssl, hostname)) {
278 printf("Failed to set the SNI hostname\n");
282 Here the C<hostname> argument is a string representing the hostname of the
285 Secondly, we need to tell OpenSSL what hostname we expect to see in the
288 we do not verify that the hostname in the certificate is what we expect it to be
294 * supplied a certificate for the hostname that we were expecting.
298 if (!SSL_set1_host(ssl, hostname)) {
299 printf("Failed to set the certificate verification hostname");
350 client always writes data first. Our HTTP request will include the hostname that
352 chunks. First we write the start of the request. Secondly we write the hostname
364 if (!SSL_write_ex(ssl, hostname, strlen(hostname), &written)) {
365 printf("Failed to write hostname in HTTP request\n");
544 =item Mismatched hostname
546 If for some reason the hostname of the server that the client is expecting does
547 not match the hostname in the certificate then this will cause verification to