diff options
| author | Timo Weingärtner <timo@tiwe.de> | 2021-05-11 13:38:09 +0200 |
|---|---|---|
| committer | Timo Weingärtner <timo@tiwe.de> | 2026-03-07 22:25:16 +0100 |
| commit | 74b15a1fe3be3bd549e5fdbfbaf0b64db48a7a76 (patch) | |
| tree | 038cf389856394bb24e322d9774eac3e3798ce00 | |
| parent | 56ced7e19f4bce304f567aea3d6cd67769bb89e3 (diff) | |
| download | ssh-agent-filter-74b15a1fe3be3bd549e5fdbfbaf0b64db48a7a76.tar.gz | |
apply some more const
| -rw-r--r-- | ssh-agent-filter.C | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ssh-agent-filter.C b/ssh-agent-filter.C index b806a85..fbeb85f 100644 --- a/ssh-agent-filter.C +++ b/ssh-agent-filter.C @@ -245,16 +245,16 @@ void setup_filters () { throw runtime_error{"unexpected answer from ssh-agent"}; rfc4251::uint32 const keycount{answer_iss}; for (uint32_t i = keycount; i; --i) { - rfc4251::string key{answer_iss}; - rfc4251::string comment{answer_iss}; + rfc4251::string key{answer_iss}; + rfc4251::string const comment{answer_iss}; - auto b64 = base64_encode(key); + auto const b64 = base64_encode(key); if (debug) clog << b64 << endl; - auto md5 = md5_hex(key); + auto const md5 = md5_hex(key); if (debug) clog << md5 << endl; - string comm(comment); + string comm{comment}; if (debug) clog << comm << endl; bool allow{false}; |
