Commit ebe6c90b by Scott Duckworth

don't allow key options

parent 1af7de2c
......@@ -2,7 +2,7 @@ import base64
import hashlib
import re
sshkey_re = re.compile(r'\s*(?:(?P<options>.*?)\s+)?(?P<type>ssh-\w+)\s+(?P<key>\S+)(?:\s+(?P<comment>\S+))?\s*$')
sshkey_re = re.compile(r'\s*(?P<type>ssh-\w+)\s+(?P<key>\S+)(?:\s+(?P<comment>\S+))?\s*$')
def sshkey_fingerprint(key_line):
match = sshkey_re.match(key_line)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment