#elif USE_GNUTLS
// Initialize for X.509 certificate exchange
gnutls_certificate_credentials_t t;
- if (const int x = gnutls_certificate_allocate_credentials(&t)) {
+ if (const auto x = gnutls_certificate_allocate_credentials(&t)) {
fatalf("Failed to allocate TLS client context: %s\n", Security::ErrorString(x));
}
ctx = convertContextFromRawPtr(t);
const char *err = nullptr;
const char *priorities = str.c_str();
gnutls_priority_t op;
- int x = gnutls_priority_init(&op, priorities, &err);
+ const auto x = gnutls_priority_init(&op, priorities, &err);
if (x != GNUTLS_E_SUCCESS) {
fatalf("(%s) in TLS options '%s'", ErrorString(x), err);
}
SSL_set_options(s.get(), parsedOptions);
#elif USE_GNUTLS
- int x;
+ LibErrorCode x;
SBuf errMsg;
if (!parsedOptions) {
debugs(83, 5, "set GnuTLS default priority/options for session=" << s);