CtxSetPublicKey puts the given public key into the ssh.Context.
(parent ssh.Context, pk *models.PublicKey)
| 84 | |
| 85 | // CtxSetPublicKey puts the given public key into the ssh.Context. |
| 86 | func CtxSetPublicKey(parent ssh.Context, pk *models.PublicKey) { |
| 87 | parent.SetValue(contextKeyPublicKey, pk) |
| 88 | } |
| 89 | |
| 90 | // CtxPublicKey pulls the public key out of the context, or nil if not found. |
| 91 | func CtxPublicKey(ctx context.Context) *models.PublicKey { |