summaryrefslogtreecommitdiff
path: root/security/putty
diff options
context:
space:
mode:
authorxtraeme <xtraeme>2005-04-06 21:51:13 +0000
committerxtraeme <xtraeme>2005-04-06 21:51:13 +0000
commitd44161b0aa43095cf7980041a81e16e98fbc338f (patch)
tree135923230c4affb655655ad104ee774424316f59 /security/putty
parent9ce787b98755ac059e2d77555f5ad5185b20c9ec (diff)
downloadpkgsrc-d44161b0aa43095cf7980041a81e16e98fbc338f.tar.gz
Update to 0.58.
Changes: # Wildcards (mput/mget) and recursive file transfer in PSFTP. # You can now save your session details from the Change Settings dialog box, after you've started your session. # Various improvements to Unicode support, including: * support for right-to-left and bidirectional text (Arabic, Hebrew etc). Thanks to arabeyes.org for design and most of the implementation. * support for Arabic text shaping, again thanks to arabeyes.org. * support for Unicode combining characters. # Support for the xterm 256-colour control sequences. # Port forwardings can now be reconfigured in mid-session. # Support for IPv6. Thanks to unfix.org for having patiently maintained the patch for this until we were finally ready to integrate it. # More configurability and flexibility in SSH-2 key exchange. In particular, PuTTY can now initiate repeat key exchange during the session, which means that if your server doesn't initiate it (OpenSSH is known not to bother) you can still have the cryptographic benefits. # Bug fix: display artefacts caused by characters overflowing their character cell should now all be gone. (This would probably have bothered Windows ClearType users more than anyone else.) # Bug fix: keepalives are now supported everywhere. (Previously they were supported by Windows GUI PuTTY, but were missing in Plink, PSFTP and the Unix port.) # Miscellaneous improvements for CJK/IME users; many thanks to Hung-Te Lin for assistance.
Diffstat (limited to 'security/putty')
-rw-r--r--security/putty/Makefile4
-rw-r--r--security/putty/distinfo20
-rw-r--r--security/putty/patches/patch-aa50
-rw-r--r--security/putty/patches/patch-ab34
-rw-r--r--security/putty/patches/patch-ac13
-rw-r--r--security/putty/patches/patch-ad17
-rw-r--r--security/putty/patches/patch-ae13
-rw-r--r--security/putty/patches/patch-af13
-rw-r--r--security/putty/patches/patch-ag13
-rw-r--r--security/putty/patches/patch-ah17
-rw-r--r--security/putty/patches/patch-ai13
-rw-r--r--security/putty/patches/patch-aj13
-rw-r--r--security/putty/patches/patch-ak25
13 files changed, 180 insertions, 65 deletions
diff --git a/security/putty/Makefile b/security/putty/Makefile
index 691614c7963..f430cb91830 100644
--- a/security/putty/Makefile
+++ b/security/putty/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.2 2005/03/29 14:40:09 wiz Exp $
+# $NetBSD: Makefile,v 1.3 2005/04/06 21:51:13 xtraeme Exp $
#
-DISTNAME= putty-0.57
+DISTNAME= putty-0.58
CATEGORIES= security
MASTER_SITES= http://the.earth.li/~sgtatham/putty/latest/
diff --git a/security/putty/distinfo b/security/putty/distinfo
index b6b70c8ee68..da724ca2ab0 100644
--- a/security/putty/distinfo
+++ b/security/putty/distinfo
@@ -1,7 +1,15 @@
-$NetBSD: distinfo,v 1.3 2005/03/29 14:40:09 wiz Exp $
+$NetBSD: distinfo,v 1.4 2005/04/06 21:51:13 xtraeme Exp $
-SHA1 (putty-0.57.tar.gz) = 006e336c9c5a77538f22f545c38ca2afb0dd46e9
-RMD160 (putty-0.57.tar.gz) = c44e61b6fb8899ab2a6f2ee6f265085281eb866b
-Size (putty-0.57.tar.gz) = 1319513 bytes
-SHA1 (patch-aa) = 843dd63165d715ca7e6c3c4b573d9e5d560beae1
-SHA1 (patch-ab) = a96d4630fc8a74dd373fa66c3665ab17f6290797
+SHA1 (putty-0.58.tar.gz) = 25504ca4fe4e3b1a8d96d9c50be5eb6cd370f018
+RMD160 (putty-0.58.tar.gz) = 3a01b629d9646d2c328881d3011a9f2da08702dd
+Size (putty-0.58.tar.gz) = 1567268 bytes
+SHA1 (patch-aa) = a03ab13bddca16aef6f8b2c5a2ceb4ae10ee972a
+SHA1 (patch-ac) = 58c3928a0903ce9028fa47d1caa42b8502c29f56
+SHA1 (patch-ad) = a5ff354431f4f21309dc697d7a355708789eee9d
+SHA1 (patch-ae) = e54b92ea6b4030ee9ac342fcc0d3edb98c8d1c45
+SHA1 (patch-af) = f479153cfe14d93ba5d538f48268bbce2ebdf17d
+SHA1 (patch-ag) = c38cde511ab5730d13451628d0763460ca37e759
+SHA1 (patch-ah) = c01fc3bd3527d784685d4eda2f07a2e0bd22b46d
+SHA1 (patch-ai) = eacb4a3ecb97e5e636baf65aa9a3d721137369ad
+SHA1 (patch-aj) = 48f2d8581110c79767f4af1393a619db3271c7f3
+SHA1 (patch-ak) = a9aaa2c3c7945559f802b2a7a6c628ad7fa0cece
diff --git a/security/putty/patches/patch-aa b/security/putty/patches/patch-aa
index 3fa384421bf..31166bede51 100644
--- a/security/putty/patches/patch-aa
+++ b/security/putty/patches/patch-aa
@@ -1,17 +1,17 @@
-$NetBSD: patch-aa,v 1.1.1.1 2004/10/29 23:00:31 xtraeme Exp $
+$NetBSD: patch-aa,v 1.2 2005/04/06 21:51:13 xtraeme Exp $
---- Makefile.gtk.orig 2004-10-30 00:39:30.000000000 +0200
-+++ Makefile.gtk 2004-10-30 00:42:07.000000000 +0200
-@@ -78,16 +78,15 @@
+--- Makefile.gtk.orig 2005-04-06 23:00:44.000000000 +0200
++++ Makefile.gtk 2005-04-06 23:04:54.000000000 +0200
+@@ -80,16 +80,13 @@
# You can define this path to point at your tools if you need to
# TOOLPATH = /opt/gcc/bin
-CC = $(TOOLPATH)cc
+#CC = $(TOOLPATH)cc
--CFLAGS = -O2 -Wall -Werror -g -I.././ -I../charset/ -I../unix/ -I../mac/ \
-- `gtk-config --cflags`
-+CFLAGS += -I.././ -I../charset/ -I../unix/ -I../mac/ `gtk-config --cflags`
+-CFLAGS = -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ \
++CFLAGS += -Wall -Werror -I.././ -I../charset/ -I../windows/ -I../unix/ \
+ -I../mac/ -I../macosx/ `gtk-config --cflags`
XLDFLAGS = `gtk-config --libs`
-ULDFLAGS =#
-INSTALL=install
@@ -19,21 +19,29 @@ $NetBSD: patch-aa,v 1.1.1.1 2004/10/29 23:00:31 xtraeme Exp $
-INSTALL_DATA=$(INSTALL)
-prefix=/usr/local
+ULDFLAGS = $(LDFLAGS)
-+#INSTALL=install
-+#INSTALL_PROGRAM=$(INSTALL)
-+#BSD_INSTALL_DATA=$(INSTALL)
+prefix=$(PREFIX)
exec_prefix=$(prefix)
bindir=$(exec_prefix)/bin
mandir=$(prefix)/man
-@@ -634,20 +633,20 @@
- $(CC) $(COMPAT) $(FWHACK) $(XFLAGS) $(CFLAGS) $(VER) -c ../version.c; \
+@@ -834,10 +831,10 @@
+ $(CC) $(COMPAT) $(XFLAGS) $(CFLAGS) $(VER) -c ../version.c; \
fi
install:
- $(INSTALL_PROGRAM) -m 755 plink $(DESTDIR)$(bindir)/plink
- $(INSTALL_PROGRAM) -m 755 pscp $(DESTDIR)$(bindir)/pscp
- $(INSTALL_PROGRAM) -m 755 psftp $(DESTDIR)$(bindir)/psftp
- $(INSTALL_PROGRAM) -m 755 pterm $(DESTDIR)$(bindir)/pterm
++ $(BSD_INSTALL_PROGRAM) plink $(DESTDIR)$(bindir)/plink
++ $(BSD_INSTALL_PROGRAM) pscp $(DESTDIR)$(bindir)/pscp
++ $(BSD_INSTALL_PROGRAM) psftp $(DESTDIR)$(bindir)/psftp
++ $(BSD_INSTALL_PROGRAM) pterm $(DESTDIR)$(bindir)/pterm
+ if test -n "$(UTMP_GROUP)"; then \
+ chgrp $(UTMP_GROUP) $(DESTDIR)$(bindir)/pterm && \
+ chmod 2755 $(DESTDIR)$(bindir)/pterm; \
+@@ -845,16 +842,16 @@
+ chown $(UTMP_USER) $(DESTDIR)$(bindir)/pterm && \
+ chmod 4755 $(DESTDIR)$(bindir)/pterm; \
+ fi
- $(INSTALL_PROGRAM) -m 755 putty $(DESTDIR)$(bindir)/putty
- $(INSTALL_PROGRAM) -m 755 puttygen $(DESTDIR)$(bindir)/puttygen
- $(INSTALL_PROGRAM) -m 755 puttytel $(DESTDIR)$(bindir)/puttytel
@@ -44,20 +52,16 @@ $NetBSD: patch-aa,v 1.1.1.1 2004/10/29 23:00:31 xtraeme Exp $
- $(INSTALL_DATA) -m 644 ../doc/putty.1 $(DESTDIR)$(man1dir)/putty.1
- $(INSTALL_DATA) -m 644 ../doc/puttygen.1 $(DESTDIR)$(man1dir)/puttygen.1
- $(INSTALL_DATA) -m 644 ../doc/puttytel.1 $(DESTDIR)$(man1dir)/puttytel.1
-+ $(BSD_INSTALL_PROGRAM) plink $(DESTDIR)$(bindir)/plink
-+ $(BSD_INSTALL_PROGRAM) pscp $(DESTDIR)$(bindir)/pscp
-+ $(BSD_INSTALL_PROGRAM) psftp $(DESTDIR)$(bindir)/psftp
-+ $(BSD_INSTALL_PROGRAM) pterm $(DESTDIR)$(bindir)/pterm
+ $(BSD_INSTALL_PROGRAM) putty $(DESTDIR)$(bindir)/putty
+ $(BSD_INSTALL_PROGRAM) puttygen $(DESTDIR)$(bindir)/puttygen
+ $(BSD_INSTALL_PROGRAM) puttytel $(DESTDIR)$(bindir)/puttytel
-+ $(BSD_INSTALL_DATA) ../doc/plink.1 $(DESTDIR)$(man1dir)/plink.1
-+ $(BSD_INSTALL_DATA) ../doc/pscp.1 $(DESTDIR)$(man1dir)/pscp.1
-+ $(BSD_INSTALL_DATA) ../doc/psftp.1 $(DESTDIR)$(man1dir)/psftp.1
-+ $(BSD_INSTALL_DATA) ../doc/pterm.1 $(DESTDIR)$(man1dir)/pterm.1
-+ $(BSD_INSTALL_DATA) ../doc/putty.1 $(DESTDIR)$(man1dir)/putty.1
-+ $(BSD_INSTALL_DATA) ../doc/puttygen.1 $(DESTDIR)$(man1dir)/puttygen.1
-+ $(BSD_INSTALL_DATA) ../doc/puttytel.1 $(DESTDIR)$(man1dir)/puttytel.1
++ $(BSD_INSTALL_MAN) ../doc/plink.1 $(DESTDIR)$(man1dir)/plink.1
++ $(BSD_INSTALL_MAN) ../doc/pscp.1 $(DESTDIR)$(man1dir)/pscp.1
++ $(BSD_INSTALL_MAN) ../doc/psftp.1 $(DESTDIR)$(man1dir)/psftp.1
++ $(BSD_INSTALL_MAN) ../doc/pterm.1 $(DESTDIR)$(man1dir)/pterm.1
++ $(BSD_INSTALL_MAN) ../doc/putty.1 $(DESTDIR)$(man1dir)/putty.1
++ $(BSD_INSTALL_MAN) ../doc/puttygen.1 $(DESTDIR)$(man1dir)/puttygen.1
++ $(BSD_INSTALL_MAN) ../doc/puttytel.1 $(DESTDIR)$(man1dir)/puttytel.1
install-strip:
$(MAKE) install INSTALL_PROGRAM="$(INSTALL_PROGRAM) -s"
diff --git a/security/putty/patches/patch-ab b/security/putty/patches/patch-ab
deleted file mode 100644
index dacbc9f7e75..00000000000
--- a/security/putty/patches/patch-ab
+++ /dev/null
@@ -1,34 +0,0 @@
-$NetBSD: patch-ab,v 1.1.1.1 2004/10/29 23:00:31 xtraeme Exp $
-
---- pty.c.orig 2004-10-30 00:44:17.000000000 +0200
-+++ pty.c 2004-10-30 00:46:49.000000000 +0200
-@@ -14,7 +14,11 @@
- #define _XOPEN_SOURCE
- #define _XOPEN_SOURCE_EXTENDED
- #define _GNU_SOURCE
-+#ifndef __NetBSD__ || !defined(__FreeBSD__) || !defined(__OpenBSD__)
- #include <features.h>
-+#else
-+#include <sys/stat.h>
-+#endif
-
- #include <stdio.h>
- #include <stdlib.h>
-@@ -574,9 +578,17 @@
- ioctl(slavefd, TIOCSCTTY, 1);
- pgrp = getpid();
- tcsetpgrp(slavefd, pgrp);
-+#ifdef __linux__
- setpgrp();
-+#else
-+ setpgrp(pgrp, -1);
-+#endif
- close(open(pty_name, O_WRONLY, 0));
-+#ifdef __linux__
- setpgrp();
-+#else
-+ setpgrp(pgrp, -1);
-+#endif
- /* Close everything _else_, for tidiness. */
- for (i = 3; i < 1024; i++)
- close(i);
diff --git a/security/putty/patches/patch-ac b/security/putty/patches/patch-ac
new file mode 100644
index 00000000000..9bedb727f5b
--- /dev/null
+++ b/security/putty/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1 2005/04/06 21:51:13 xtraeme Exp $
+
+--- ../logging.c.orig 2005-04-06 23:11:53.000000000 +0200
++++ ../logging.c 2005-04-06 23:12:15.000000000 +0200
+@@ -361,7 +361,7 @@
+ char c;
+ s++;
+ size = 0;
+- if (*s) switch (c = *s++, tolower(c)) {
++ if (*s) switch (c = *s++, tolower((int)c)) {
+ case 'y':
+ size = strftime(buf, sizeof(buf), "%Y", tm);
+ break;
diff --git a/security/putty/patches/patch-ad b/security/putty/patches/patch-ad
new file mode 100644
index 00000000000..4861e62ebc4
--- /dev/null
+++ b/security/putty/patches/patch-ad
@@ -0,0 +1,17 @@
+$NetBSD: patch-ad,v 1.1 2005/04/06 21:51:13 xtraeme Exp $
+
+--- uxnet.c.orig 2005-04-06 23:12:47.000000000 +0200
++++ uxnet.c 2005-04-06 23:13:06.000000000 +0200
+@@ -443,10 +443,10 @@
+ #endif
+ struct sockaddr_in a;
+ struct sockaddr_un au;
+- const struct sockaddr *sa;
++ const struct sockaddr *sa = NULL;
+ int err = 0;
+ short localport;
+- int fl, salen;
++ int fl, salen = 0;
+
+ if (sock->s >= 0)
+ close(sock->s);
diff --git a/security/putty/patches/patch-ae b/security/putty/patches/patch-ae
new file mode 100644
index 00000000000..7716574b556
--- /dev/null
+++ b/security/putty/patches/patch-ae
@@ -0,0 +1,13 @@
+$NetBSD: patch-ae,v 1.1 2005/04/06 21:51:13 xtraeme Exp $
+
+--- ../charset/localenc.c.orig 2005-04-06 23:13:39.000000000 +0200
++++ ../charset/localenc.c 2005-04-06 23:13:57.000000000 +0200
+@@ -101,7 +101,7 @@
+ p = name;
+ q = localencs[i].name;
+ while (*p || *q) {
+- if (tolower(*p) != tolower(*q))
++ if (tolower((int)*p) != tolower((int)*q))
+ break;
+ p++; q++;
+ }
diff --git a/security/putty/patches/patch-af b/security/putty/patches/patch-af
new file mode 100644
index 00000000000..ae68d6189c4
--- /dev/null
+++ b/security/putty/patches/patch-af
@@ -0,0 +1,13 @@
+$NetBSD: patch-af,v 1.1 2005/04/06 21:51:13 xtraeme Exp $
+
+--- ../charset/mimeenc.c.orig 2005-04-06 23:14:37.000000000 +0200
++++ ../charset/mimeenc.c 2005-04-06 23:14:57.000000000 +0200
+@@ -197,7 +197,7 @@
+ p = name;
+ q = mimeencs[i].name;
+ while (*p || *q) {
+- if (tolower(*p) != tolower(*q))
++ if (tolower((int)*p) != tolower((int)*q))
+ break;
+ p++; q++;
+ }
diff --git a/security/putty/patches/patch-ag b/security/putty/patches/patch-ag
new file mode 100644
index 00000000000..61ecc5e000a
--- /dev/null
+++ b/security/putty/patches/patch-ag
@@ -0,0 +1,13 @@
+$NetBSD: patch-ag,v 1.1 2005/04/06 21:51:13 xtraeme Exp $
+
+--- ../terminal.c.orig 2005-04-06 23:15:37.000000000 +0200
++++ ../terminal.c 2005-04-06 23:15:48.000000000 +0200
+@@ -5818,7 +5818,7 @@
+ if (modifiers & PKM_CONTROL)
+ c &= 0x1f;
+ else if (modifiers & PKM_SHIFT)
+- c = toupper(c);
++ c = toupper((int)c);
+ }
+ *p++ = c;
+ goto done;
diff --git a/security/putty/patches/patch-ah b/security/putty/patches/patch-ah
new file mode 100644
index 00000000000..6ffaeb06e49
--- /dev/null
+++ b/security/putty/patches/patch-ah
@@ -0,0 +1,17 @@
+$NetBSD: patch-ah,v 1.1 2005/04/06 21:51:13 xtraeme Exp $
+
+--- uxpty.c.orig 2005-04-06 23:16:28.000000000 +0200
++++ uxpty.c 2005-04-06 23:28:38.000000000 +0200
+@@ -2,8 +2,10 @@
+ * Pseudo-tty backend for pterm.
+ */
+
+-#define _XOPEN_SOURCE 600
+-#define _XOPEN_SOURCE_EXTENDED
++/* Don't use _XOPEN_SOURCE/_XOPEN_SOURCE_EXTENDED here, because
++ * we are using strsignal() (which is not defined in POSIX).
++ */
++
+ #define _GNU_SOURCE
+
+ #include <stdio.h>
diff --git a/security/putty/patches/patch-ai b/security/putty/patches/patch-ai
new file mode 100644
index 00000000000..16d8c38bc9a
--- /dev/null
+++ b/security/putty/patches/patch-ai
@@ -0,0 +1,13 @@
+$NetBSD: patch-ai,v 1.1 2005/04/06 21:51:13 xtraeme Exp $
+
+--- ../charset/xenc.c.orig 2005-04-06 23:29:15.000000000 +0200
++++ ../charset/xenc.c 2005-04-06 23:29:31.000000000 +0200
+@@ -80,7 +80,7 @@
+ p = name;
+ q = xencs[i].name;
+ while (*p || *q) {
+- if (tolower(*p) != tolower(*q))
++ if (tolower((int)*p) != tolower((int)*q))
+ break;
+ p++; q++;
+ }
diff --git a/security/putty/patches/patch-aj b/security/putty/patches/patch-aj
new file mode 100644
index 00000000000..4a39e45e50e
--- /dev/null
+++ b/security/putty/patches/patch-aj
@@ -0,0 +1,13 @@
+$NetBSD: patch-aj,v 1.1 2005/04/06 21:51:13 xtraeme Exp $
+
+--- ../cmdgen.c.orig 2005-04-06 23:30:02.000000000 +0200
++++ ../cmdgen.c 2005-04-06 23:30:15.000000000 +0200
+@@ -114,7 +114,7 @@
+ void showversion(void)
+ {
+ char *verstr = dupstr(ver);
+- verstr[0] = tolower(verstr[0]);
++ verstr[0] = tolower((int)verstr[0]);
+ printf("PuTTYgen %s\n", verstr);
+ sfree(verstr);
+ }
diff --git a/security/putty/patches/patch-ak b/security/putty/patches/patch-ak
new file mode 100644
index 00000000000..043f2b37f1c
--- /dev/null
+++ b/security/putty/patches/patch-ak
@@ -0,0 +1,25 @@
+$NetBSD: patch-ak,v 1.1 2005/04/06 21:51:13 xtraeme Exp $
+
+--- ../import.c.orig 2005-04-05 21:37:51.000000000 +0200
++++ ../import.c 2005-04-06 23:39:12.000000000 +0200
+@@ -681,7 +681,10 @@
+ int outlen;
+ struct mpint_pos numbers[9];
+ int nnumbers, pos, len, seqlen, i;
++ nnumbers = pos = len = seqlen = i = 0;
+ char *header, *footer;
++ footer = header = NULL;
++
+ char zero[1];
+ unsigned char iv[8];
+ int ret = 0;
+@@ -1442,7 +1445,8 @@
+ int outlen;
+ struct mpint_pos numbers[6];
+ int nnumbers, initial_zero, pos, lenpos, i;
+- char *type;
++ nnumbers = initial_zero = pos = lenpos = i = 0;
++ char *type = NULL;
+ char *ciphertext;
+ int cipherlen;
+ int ret = 0;