mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-09 07:08:25 +02:00
refactor(rpc): GenerateAuthCookieResult -> AuthCookieResult
Type will be used for reading the cookie in next commit. Also corrects ERR/ERROR mismatch in docstring in request.h, and changes to CamelCase to avoid potential collision with Windows headers (https://github.com/bitcoin/bitcoin/pull/34965#issuecomment-4161331392).
This commit is contained in:
@@ -264,12 +264,12 @@ static bool InitRPCAuthentication()
|
||||
}
|
||||
|
||||
switch (GenerateAuthCookie(cookie_perms, user, pass)) {
|
||||
case GenerateAuthCookieResult::ERR:
|
||||
case AuthCookieResult::Error:
|
||||
return false;
|
||||
case GenerateAuthCookieResult::DISABLED:
|
||||
case AuthCookieResult::Disabled:
|
||||
LogInfo("RPC authentication cookie file generation is disabled.");
|
||||
break;
|
||||
case GenerateAuthCookieResult::OK:
|
||||
case AuthCookieResult::Ok:
|
||||
LogInfo("Using random cookie authentication.");
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user