Allow use of SSH_DIR/ when expanding key paths

This commit is contained in:
Aris Adamantiadis
2009-10-17 18:10:42 +02:00
parent a479b30298
commit 27d25752e9
4 changed files with 31 additions and 23 deletions

View File

@@ -215,6 +215,10 @@ int match_hostname(const char *host, const char *pattern, unsigned int len);
#define leave_function() (void)session
#endif
/* options.c */
char *dir_expand_dup(ssh_session session, const char *value, int allowsshdir);
/** Free memory space */
#define SAFE_FREE(x) do { if ((x) != NULL) {free(x); x=NULL;} } while(0)