ssh: Cleanup sshcontrol file access code.
authorWerner Koch <wk@gnupg.org>
Mon, 10 Dec 2012 15:39:12 +0000 (16:39 +0100)
committerWerner Koch <wk@gnupg.org>
Mon, 10 Dec 2012 15:39:12 +0000 (16:39 +0100)
commit25fb53ab4ae7e1c098500229c776d29b82713a20
tree9b7e8449ac486b0d6c3fa897e4f9fa57b013769c
parent36ba7845995dd3caf8faeec3e09b3ffb879fc29b
ssh: Cleanup sshcontrol file access code.

* agent/command-ssh.c (SSH_CONTROL_FILE_NAME): New macro to replace
the direct use of the string.
(struct control_file_s, control_file_t): New.
(open_control_file, close_control_file): New.  Use them instead of
using fopen/fclose directly.
agent/command-ssh.c