if ((home->proto == IPPROTO_TCP) && home->tls) {
DEBUG("(TLS) Trying new outgoing proxy connection to %s", buffer);
- /*
- * Set SNI, if configured.
- *
- * The OpenSSL API says the filename is "char
- * const *", but some versions have it as "void
- * *", without the "const". So we un-const it
- * here through various C magic.
- */
- if (home->tls->client_hostname) {
- (void) SSL_set_tlsext_host_name(sock->ssn->ssl, (void *) (uintptr_t) home->tls->client_hostname);
- }
-
#ifdef WITH_RADIUSV11
this->radiusv11 = home->tls->radiusv11;
#endif
SSL_set_ex_data(ssn->ssl, FR_TLS_EX_INDEX_FIX_CERT_ORDER, (void *) &conf->fix_cert_order);
}
+ /*
+ * Set SNI, if configured.
+ *
+ * The OpenSSL API says the filename is "char
+ * const *", but some versions have it as "void
+ * *", without the "const". So we un-const it
+ * here through various C magic.
+ */
+ if (conf->client_hostname) {
+ (void) SSL_set_tlsext_host_name(ssn->ssl, (void *) (uintptr_t) conf->client_hostname);
+ }
+
/*
* Add the message callback to identify what type of
* message/handshake is passed