equal
deleted
inserted
replaced
13 from mercurialserver import config |
13 from mercurialserver import config |
14 |
14 |
15 goodkey = re.compile("[/A-Za-z0-9._-]+$") |
15 goodkey = re.compile("[/A-Za-z0-9._-]+$") |
16 |
16 |
17 def refreshAuth(): |
17 def refreshAuth(): |
18 akeyfile = os.path.expanduser("~/.ssh/authorized_keys") |
18 akeyfile = config.getAuthorizedKeysPath() |
19 wrappercommand = config.getExePath() + "/hg-ssh" |
19 wrappercommand = config.getExePath() + "/hg-ssh" |
20 prefix='no-pty,no-port-forwarding,no-X11-forwarding,no-agent-forwarding,command=' |
20 prefix='no-pty,no-port-forwarding,no-X11-forwarding,no-agent-forwarding,command=' |
21 |
21 |
22 if os.path.exists(akeyfile): |
22 if os.path.exists(akeyfile): |
23 f = open(akeyfile) |
23 f = open(akeyfile) |