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, 1 Jul 2013 18:31:07 +0000 (20:31 +0200)
commit336112e519079f43278a8ca8c2937417bc667d8f
treefc790d9004be1fb6920314233a218c394d90e1a6
parentfc7d033d8e62f6a289fdf7dba26af076accb5fd2
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.
--

(cherry picked from commit 25fb53ab4ae7e1c098500229c776d29b82713a20)

Fixed conflicts in some variabale names.
agent/command-ssh.c