/*
- * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2018 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
if (certificate) {
cert = Security::CertPointer(certificate, [](gnutls_x509_crt_t p) {
- debugs(83, 5, "gnutls_x509_crt_deinit cert=" << (void*)p);
- gnutls_x509_crt_deinit(p);
- });
+ debugs(83, 5, "gnutls_x509_crt_deinit cert=" << (void*)p);
+ gnutls_x509_crt_deinit(p);
+ });
}
#else
gnutls_privkey_export_x509(key, &xkey);
gnutls_privkey_deinit(key);
pkey = Security::PrivateKeyPointer(xkey, [](gnutls_x509_privkey_t p) {
- debugs(83, 5, "gnutls_x509_privkey_deinit pkey=" << (void*)p);
- gnutls_x509_privkey_deinit(p);
- });
+ debugs(83, 5, "gnutls_x509_privkey_deinit pkey=" << (void*)p);
+ gnutls_x509_privkey_deinit(p);
+ });
}
}
gnutls_free(data.data);
chain.clear();
}
}
+
debugs(83, DBG_CRITICAL, "ERROR: Failed to initialize server context with keys from " << whichFile << ": " << Security::ErrorString(x));
return false;
}
- // XXX: add cert chain to the context
+ // XXX: add cert chain to the context
}
#endif
struct statvfs sfs;
if (xstatvfs(db_path.c_str(), &sfs)) {
- fs_block_size = 2048;
+ fs_block_size = 2048;
} else {
- fs_block_size = sfs.f_frsize;
- // Sanity check; make sure we have a meaningful value.
- if (fs_block_size < 512)
+ fs_block_size = sfs.f_frsize;
+ // Sanity check; make sure we have a meaningful value.
+ if (fs_block_size < 512)
fs_block_size = 2048;
}
}