CtxSetUser puts the given User into the ssh.Context.
(parent ssh.Context, user *User)
| 48 | |
| 49 | // CtxSetUser puts the given User into the ssh.Context. |
| 50 | func CtxSetUser(parent ssh.Context, user *User) { |
| 51 | parent.SetValue(contextKeyUser, user) |
| 52 | } |
| 53 | |
| 54 | // CtxUser pulls the current User out of the context, or AnonymousUser if not |
| 55 | // set. |