summaryrefslogtreecommitdiffstats
path: root/src/shrpx_worker_process.cc
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-11 16:46:31 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-11 16:46:31 +0000
commite0d38508fc8b6bc3915b2235a85a068eacfb87bf (patch)
tree75de5a3a58d59b983ce82cde4f631a318cd6f13f /src/shrpx_worker_process.cc
parentReleasing progress-linux version 1.61.0-1~progress7.99u1. (diff)
downloadnghttp2-e0d38508fc8b6bc3915b2235a85a068eacfb87bf.tar.xz
nghttp2-e0d38508fc8b6bc3915b2235a85a068eacfb87bf.zip
Merging upstream version 1.62.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--src/shrpx_worker_process.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/shrpx_worker_process.cc b/src/shrpx_worker_process.cc
index 6591e9b..14040b4 100644
--- a/src/shrpx_worker_process.cc
+++ b/src/shrpx_worker_process.cc
@@ -74,11 +74,11 @@ void drop_privileges(
if (getuid() == 0 && config->uid != 0) {
#ifdef HAVE_NEVERBLEED
if (nb) {
- neverbleed_setuidgid(nb, config->user.c_str(), 1);
+ neverbleed_setuidgid(nb, config->user.data(), 1);
}
#endif // HAVE_NEVERBLEED
- if (initgroups(config->user.c_str(), config->gid) != 0) {
+ if (initgroups(config->user.data(), config->gid) != 0) {
auto error = errno;
LOG(FATAL) << "Could not change supplementary groups: "
<< xsi_strerror(error, errbuf.data(), errbuf.size());
@@ -576,10 +576,8 @@ int worker_process_event_loop(WorkerProcessConfig *wpconf) {
}
for (auto &qkm : qkms->keying_materials) {
- if (generate_quic_connection_id_encryption_key(
- qkm.cid_encryption_key.data(), qkm.cid_encryption_key.size(),
- qkm.secret.data(), qkm.secret.size(), qkm.salt.data(),
- qkm.salt.size()) != 0) {
+ if (generate_quic_connection_id_encryption_key(qkm.cid_encryption_key,
+ qkm.secret, qkm.salt) != 0) {
LOG(ERROR) << "Failed to generate QUIC Connection ID encryption key";
return -1;
}