size_t ech_config_len = 0;
char *outername = data->set.str[STRING_ECH_PUBLIC];
int trying_ech_now = 0;
- CURLcode result = CURLE_OK;
if(!CURLECH_ENABLED(data))
return CURLE_OK;
#ifdef HAVE_BORINGSSL_LIKE
/* have to do base64 decode here for BoringSSL */
const char *b64 = data->set.str[STRING_ECH_CONFIG];
+ CURLcode result;
if(!b64) {
infof(data, "ECH: ECHConfig from command line empty");
}
#else
if(trying_ech_now && outername) {
+ int ret;
infof(data, "ECH: inner: '%s', outer: '%s'",
peer->origin->hostname ? peer->origin->hostname : "NULL", outername);
- result = SSL_ech_set1_server_names(octx->ssl,
- peer->origin->hostname, outername,
- 0 /* do send outer */);
- if(result != 1) {
- infof(data, "ECH: rv failed to set server name(s) %d [ERROR]",
- (int)result);
+ ret = SSL_ech_set1_server_names(octx->ssl,
+ peer->origin->hostname, outername,
+ 0 /* do send outer */);
+ if(ret != 1) {
+ infof(data, "ECH: rv failed to set server name(s) %d [ERROR]", ret);
return CURLE_SSL_CONNECT_ERROR;
}
}