summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/misc.h
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@cvs.openbsd.org>2017-12-05 23:59:48 +0000
committerDarren Tucker <dtucker@cvs.openbsd.org>2017-12-05 23:59:48 +0000
commit3306b28a3338457525da6290e4a9fb473be6db74 (patch)
tree7aa733adf0c0f567167a2138ac33711152103628 /usr.bin/ssh/misc.h
parentf7b6a1153596a4f6d0541a18798fa74a2686b9cb (diff)
Replace atoi and strtol conversions for integer arguments to config
keywords with a checking wrapper around strtonum. This will prevent and flag invalid and negative arguments to these keywords. ok djm@
Diffstat (limited to 'usr.bin/ssh/misc.h')
-rw-r--r--usr.bin/ssh/misc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ssh/misc.h b/usr.bin/ssh/misc.h
index 8e24d5c4484..a81a124e624 100644
--- a/usr.bin/ssh/misc.h
+++ b/usr.bin/ssh/misc.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: misc.h,v 1.68 2017/11/25 06:46:22 dtucker Exp $ */
+/* $OpenBSD: misc.h,v 1.69 2017/12/05 23:59:47 dtucker Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -74,6 +74,7 @@ double monotime_double(void);
void lowercase(char *s);
int unix_listener(const char *, int, int);
int valid_domain(char *, int, const char **);
+const char *atoi_err(const char *, int *);
struct passwd *pwcopy(struct passwd *);
const char *ssh_gai_strerror(int);