diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-05-16 16:20:43 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-05-16 16:20:43 +0000 |
commit | f029b18f4a0920d3d7f0f9dfbdd86bb219fd6718 (patch) | |
tree | 50969d92e10135e9e3e39990b9af0f62f72c5947 /usr.bin/ftp/ftp.c | |
parent | 6eec75e97e7070f836c42439533a794c4094dad1 (diff) |
https URL support; rototilled by a few people including me; originally
from Rainer_Giedat@genua.de
Diffstat (limited to 'usr.bin/ftp/ftp.c')
-rw-r--r-- | usr.bin/ftp/ftp.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/ftp/ftp.c b/usr.bin/ftp/ftp.c index e3b2d022454..55b96df447b 100644 --- a/usr.bin/ftp/ftp.c +++ b/usr.bin/ftp/ftp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ftp.c,v 1.62 2006/04/25 05:45:20 tedu Exp $ */ +/* $OpenBSD: ftp.c,v 1.63 2006/05/16 16:20:42 deraadt Exp $ */ /* $NetBSD: ftp.c,v 1.27 1997/08/18 10:20:23 lukem Exp $ */ /* @@ -60,7 +60,7 @@ */ #if !defined(lint) && !defined(SMALL) -static const char rcsid[] = "$OpenBSD: ftp.c,v 1.62 2006/04/25 05:45:20 tedu Exp $"; +static const char rcsid[] = "$OpenBSD: ftp.c,v 1.63 2006/05/16 16:20:42 deraadt Exp $"; #endif /* not lint and not SMALL */ #include <sys/types.h> @@ -146,6 +146,10 @@ hookup(char *host, char *port) snprintf(pbuf, sizeof(pbuf), "%d", GATE_PORT); else if (strcmp(port, "http") == 0) snprintf(pbuf, sizeof(pbuf), "%d", HTTP_PORT); +#ifndef SMALL + else if (strcmp(port, "https") == 0) + snprintf(pbuf, sizeof(pbuf), "%d", HTTPS_PORT); +#endif if (pbuf[0]) error = getaddrinfo(host, pbuf, &hints, &res0); } |