src/mercurialserver/refreshauth.py
changeset 213 72e7ba8b41a6
parent 211 0cd59649772c
child 242 03d8f07230b3
equal deleted inserted replaced
212:ab5e0e4f5a0c 213:72e7ba8b41a6
    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)