Skip to content

proposal: x/crypto/ssh/knownhosts: create from io.Reader #62656

Open
golang/crypto
#269
@tg123

Description

@tg123

knownhosts.New accept file on local disk only now, which is not flexible for parsing knowhosts inside memory or load from other media.

Proposal for new API

func NewFromReader(r io.Reader) (ssh.HostKeyCallback, error)

to load knowhosts from io.Reader

Metadata

Metadata

Assignees

No one assigned

    Labels

    ProposalProposal-CryptoProposal related to crypto packages or other security issues

    Type

    No type

    Projects

    • Status

      Incoming

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions