Initialize client authentication state. */
| 100 | /* Initialize client authentication state. |
| 101 | */ |
| 102 | static void clientSetDefaultAuth(client *c) { |
| 103 | /* If the default user does not require authentication, the user is |
| 104 | * directly authenticated. */ |
| 105 | c->user = DefaultUser; |
| 106 | c->authenticated = (c->user->flags & USER_FLAG_NOPASS) && |
| 107 | !(c->user->flags & USER_FLAG_DISABLED); |
| 108 | } |
| 109 | |
| 110 | int authRequired(client *c) { |
| 111 | /* Check if the user is authenticated. This check is skipped in case |
no outgoing calls
no test coverage detected