Permalink
Browse files

fix #8801 support for "ssh-dss" (dsa) key

Thanks to julien.perville for the patch
  • Loading branch information...
1 parent 429309c commit 7bd290a986cc32332780c12cce9d174eb1c1c438 @dr4Ke committed May 14, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 0.11/tracgitosis/tracgitosis.py
@@ -111,9 +111,9 @@ def setsshkey(self, req, username, key):
# verify key syntax
import re
status = 0
- if re.search(r'^ssh-rsa [A-Za-z0-9+/]*=* ', key) == None:
+ if re.search(r'^ssh-(rsa|dss) [A-Za-z0-9+/]*=* ', key) == None:
status = 1
- message = 'malformed key (must begin with \'ssh-rsa \' followed by a BASE64 encoded chain)'
+ message = 'malformed key (must begin with \'ssh-rsa \' or \'ssh-dss \' followed by a BASE64 encoded chain)'
if status == 0:
# Update gitosis-admin repository
tracname = self.config.get('project', 'name')

0 comments on commit 7bd290a

Please sign in to comment.