diff options
author | Damien Miller <djm@mindrot.org> | 2006-03-15 12:06:23 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2006-03-15 12:06:23 +1100 |
commit | 8275fade44b56aed722ea91bc4586f48babece80 (patch) | |
tree | 008fc19e661c19854303ee25c8e5d12347546893 /authfile.h | |
parent | 306d118f72670f0da447f28b7eec576dcb4a6e38 (diff) | |
download | openssh-git-8275fade44b56aed722ea91bc4586f48babece80.tar.gz |
- dtucker@cvs.openbsd.org 2006/03/13 10:26:52
[authfile.c authfile.h ssh-add.c]
Make ssh-add check file permissions before attempting to load private
key files multiple times; it will fail anyway and this prevents confusing
multiple prompts and warnings. mindrot #1138, ok djm@
Diffstat (limited to 'authfile.h')
-rw-r--r-- | authfile.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: authfile.h,v 1.10 2002/05/23 19:24:30 markus Exp $ */ +/* $OpenBSD: authfile.h,v 1.11 2006/03/13 10:26:52 dtucker Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> @@ -21,5 +21,6 @@ Key *key_load_public_type(int, const char *, char **); Key *key_load_private(const char *, const char *, char **); Key *key_load_private_type(int, const char *, const char *, char **); Key *key_load_private_pem(int, int, const char *, char **); +int key_perm_ok(int, const char *); #endif |