MCPcopy Create free account
hub / github.com/belak/gitdir / CtxSetPublicKey

Function CtxSetPublicKey

context.go:86–88  ·  view source on GitHub ↗

CtxSetPublicKey puts the given public key into the ssh.Context.

(parent ssh.Context, pk *models.PublicKey)

Source from the content-addressed store, hash-verified

84
85// CtxSetPublicKey puts the given public key into the ssh.Context.
86func 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.
91func CtxPublicKey(ctx context.Context) *models.PublicKey {

Callers 1

handlePublicKeyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected