Get name of RPC authentication cookie file */
| 84 | |
| 85 | /** Get name of RPC authentication cookie file */ |
| 86 | static fs::path GetAuthCookieFile(bool temp=false) |
| 87 | { |
| 88 | fs::path arg = gArgs.GetPathArg("-rpccookiefile", COOKIEAUTH_FILE); |
| 89 | if (arg.empty()) { |
| 90 | return {}; // -norpccookiefile was specified |
| 91 | } |
| 92 | if (temp) { |
| 93 | arg += ".tmp"; |
| 94 | } |
| 95 | return AbsPathForConfigVal(gArgs, arg); |
| 96 | } |
| 97 | |
| 98 | static bool g_generated_cookie = false; |
| 99 |
no test coverage detected