Skip to content
Snippets Groups Projects
Commit 04564ca4 authored by Rick Carback's avatar Rick Carback
Browse files

Don't check key length here. We support any sizes of key right now.

parent 65b17871
No related branches found
No related tags found
No related merge requests found
...@@ -126,7 +126,7 @@ func parseGetKey(msg string) []byte { ...@@ -126,7 +126,7 @@ func parseGetKey(msg string) []byte {
return nil return nil
} }
keymat, err := base64.StdEncoding.DecodeString(resParts[2]) keymat, err := base64.StdEncoding.DecodeString(resParts[2])
if err != nil || len(keymat) != 256 { if err != nil {
globals.Log.WARN.Printf("Couldn't decode GETKEY keymat: %s", msg) globals.Log.WARN.Printf("Couldn't decode GETKEY keymat: %s", msg)
return nil return nil
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment