=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/misc.h,v retrieving revision 1.3.2.2 retrieving revision 1.4 diff -u -r1.3.2.2 -r1.4 --- src/usr.bin/ssh/misc.h 2001/03/21 18:52:52 1.3.2.2 +++ src/usr.bin/ssh/misc.h 2001/04/12 20:09:36 1.4 @@ -1,4 +1,4 @@ -/* $OpenBSD: misc.h,v 1.3.2.2 2001/03/21 18:52:52 jason Exp $ */ +/* $OpenBSD: misc.h,v 1.4 2001/04/12 20:09:36 stevesk Exp $ */ /* * Author: Tatu Ylonen @@ -21,3 +21,10 @@ void set_nonblock(int fd); struct passwd * pwcopy(struct passwd *pw); + +/* + * Convert ASCII string to TCP/IP port number. + * Port must be >0 and <=65535. + * Return 0 if invalid. + */ +int a2port(const char *s);