Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

Thanks to julien.perville for the patch
  • Loading branch information...
commit 7bd290a986cc32332780c12cce9d174eb1c1c438 1 parent 429309c
@dr4Ke authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 0.11/tracgitosis/tracgitosis.py
View
4 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')
Please sign in to comment.
Something went wrong with that request. Please try again.