a geicko-2 based round robin ranking system designed to test c++ battleship submissions battleship.dunkirk.sh
1package ssh 2 3import gossh "golang.org/x/crypto/ssh" 4 5// PublicKey is an abstraction of different types of public keys. 6type PublicKey interface { 7 gossh.PublicKey 8} 9 10// The Permissions type holds fine-grained permissions that are specific to a 11// user or a specific authentication method for a user. Permissions, except for 12// "source-address", must be enforced in the server application layer, after 13// successful authentication. 14type Permissions struct { 15 *gossh.Permissions 16} 17 18// A Signer can create signatures that verify against a public key. 19type Signer interface { 20 gossh.Signer 21} 22 23// ParseAuthorizedKey parses a public key from an authorized_keys file used in 24// OpenSSH according to the sshd(8) manual page. 25func ParseAuthorizedKey(in []byte) (out PublicKey, comment string, options []string, rest []byte, err error) { 26 return gossh.ParseAuthorizedKey(in) 27} 28 29// ParsePublicKey parses an SSH public key formatted for use in 30// the SSH wire protocol according to RFC 4253, section 6.6. 31func ParsePublicKey(in []byte) (out PublicKey, err error) { 32 return gossh.ParsePublicKey(in) 33}