diff --git a/auth.go b/auth.go new file mode 100644 index 0000000..6a8db8c --- /dev/null +++ b/auth.go @@ -0,0 +1,14 @@ +package main + +import ( + "crypto/rsa" +) + +type Auth struct { + Nick string + Key *rsa.PublicKey +} + +func (a *Auth) Kind() string { + return "auth" +} diff --git a/client.go b/client.go index cb504da..c2e1237 100644 --- a/client.go +++ b/client.go @@ -18,15 +18,6 @@ import ( "unicode" ) -type Auth struct { - Nick string - Key *rsa.PublicKey -} - -func (a *Auth) Kind() string { - return "auth" -} - type ReadWriter struct { io.Reader io.Writer