Page MenuHome GnuPG

The TTL specified in sshcontrol for SSH keys is ignored.
Closed, ResolvedPublic

Description

According to documentation and the comment blurb at start of default
sshcontrol, it should be possible to set per-key TTL for SSH keys (in the
sshcontrol file). This is however not, um, quite implemented. I am attaching a
patch to fix that. It's pretty trivial. The code I have added to parse the TTL
is a little silly and maybe wrong, but it happens to work for me. Ah, and, the
hexdigitp (...) is there because I didn't see a digitp (...) and isdigit from
ctype.h didn't occur to me (or maybe one can't use ctype for portability
reasons? whatever). Anyway, review (and eventual inclusion) would appreciated.

Yours,

Petr Rockai.

Details

Version
2.0.11

Related Objects

Event Timeline

werner added a subscriber: werner.

Right, that was missing.

Your patch is a bit too long to go without a copyright assignment to the FSF.
Firther it uses C-99 features which we don't allow.

I have implemented my own version which avoids scanning the sshcontrol file each
time. It is in SVN rev 5009; if you want to test it.

werner claimed this task.
werner removed a project: Restricted Project.