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