Tue Feb 14 03:28:07 2023 UTC ()
putty: Update to 0.78

Changelog:
 These features are new in 0.78 (released 2022-10-29):

    Support for OpenSSH certificates, for both user authentication keys and host keys.
    New SSH proxy modes, for running a custom shell command or subsystem on the proxy server instead of forwarding a port through it.
    New plugin system to allow a helper program to provide responses in keyboard-interactive authentication, intended to automate one-time password systems.
    Support for NTRU Prime post-quantum key exchange,
    Support for AES-GCM (in the OpenSSH style rather than RFC 5647).
    Support for more forms of Diffie-Hellman key exchange: new larger integer groups (such as group16 and group18), and support for using those and ECDH with GSSAPI.
    SSH configuration panels slightly reorganised. In particular, the configuration option 'Private key file for authentication' has moved to a new 'Credentials' panel alongside controls for some of the above new features.
    Bug fix: the 32-bit Windows build now runs on Windows XP again.
    Bug fix: server-controlled window title setting now works again even if the character set is ISO 8859 (or a few other affected single-byte character sets).
    Bug fix: certain forms of OSC escape sequences (sent by some real servers) could cause PuTTY to crash.
    Bug fix: the -pwfile/-pw options no longer affect local key passphrase prompts, and no longer suppress Plink's anti-spoofing measures.
    Note: installing the 0.78 or later Windows installer will not automatically uninstall 0.77 or earlier, due to a change we've made to work around a bug. We recommend uninstalling the old version first, if possible. If both end up installed, uninstalling both and then re-installing the new version will fix things up.

These features were new in 0.77 (released 2022-05-27):

    Major improvements to network proxy support:
        Support for interactively prompting the user if the proxy server requires authentication.
        Built-in support for proxying via another SSH server, so that PuTTY will SSH to the proxy and then automatically forward a port through it to the destination host. (Similar to running plink -nc as a subprocess, but more convenient to set up, and allows you to answer interactive prompts presented by the proxy.)
        Support for HTTP Digest authentication, when talking to HTTP proxies.
    Introduced pterm.exe, a PuTTY-like wrapper program for Windows command prompts (or anything else running in a Windows console). Not yet included in the installer, but available as a .exe file from the Download page.
    Updated Unicode and bidi support to Unicode 14.0.0.
    New command-line option -pwfile, like -pw except that it reads the password from a file so that it doesn't show up on the command line.
    Windows Pageant: option --openssh-config to allow easy interoperation with Windows's ssh.exe.
    -pw (and -pwfile) now do not fall back to interactively prompting for a password if the provided password fails. (That was the original intention.)
    New configuration options for keyboard handling:
        Option to control handling of Shift + arrow keys
        Extra mode in the function-keys option, for modern xterm (v216 and above).
    Bug workaround flag to wait for the server's SSH greeting before sending our own, for servers (or proxies) that lose outgoing data before seeing any incoming data.
    Crypto update: added side-channel resistance in probabilistic RSA key generation.
    Crypto update: retired the use of short Diffie-Hellman exponents (just in case).
    Bug fix: reconfiguring remote port forwardings more than once no longer crashes.
    Bug fix: terminal output processing is now paused while handling a remote-controlled terminal resize, so that the subsequent screen redraw is interpreted relative to the new terminal size instead of the old.
    Bug fix: Windows PuTTYgen's mouse-based entropy collection now handles high-frequency mice without getting confused.
    Bug fix: Windows Pageant can now handle large numbers of concurrent connections without hanging or crashing.
    Bug fix: if Windows Pageant is started multiple times simultaneously, the instances should reliably agree on one of them to be the persistent server.
    Bug fix: remote-controlled changes of window title are now interpreted according to the configured character set.
    Bug fix: remote-controlled changes of window title no longer get confused by UTF-8 characters whose encoding includes the byte 0x9C (which terminates the control sequence in non-UTF-8 contexts).
    Bug fix: popping up the window context menu in the middle of a drag-select now no longer leaves the drag in a stuck state.
    Bug fix: extensive use of true colour in the terminal no longer slows down window redraws unnecessarily.
    Bug fix: when PSCP reports the server sending a disallowed compound pathname, it correctly reports the replacement name it's using for the downloaded file.
    Bug fix: enabling X11 forwarding in psusan failed to fall back through possible port numbers for the forwarded X display.
    For developers: migrated the build system to CMake, removing the old idiosyncratic mkfiles.pl and the autotools system.


(ryoon)
diff -r1.73 -r1.74 pkgsrc/security/putty/Makefile
diff -r1.2 -r1.3 pkgsrc/security/putty/PLIST
diff -r1.34 -r1.35 pkgsrc/security/putty/distinfo
diff -r1.5 -r1.6 pkgsrc/security/putty/patches/patch-terminal.c
diff -r1.4 -r0 pkgsrc/security/putty/patches/patch-unix_Makefile.gtk
diff -r1.2 -r0 pkgsrc/security/putty/patches/patch-unix_uxnet.c
diff -r1.3 -r0 pkgsrc/security/putty/patches/patch-unix_uxpgnt.c

cvs diff -r1.73 -r1.74 pkgsrc/security/putty/Makefile (expand / switch to unified diff)

--- pkgsrc/security/putty/Makefile 2023/01/29 21:17:41 1.73
+++ pkgsrc/security/putty/Makefile 2023/02/14 03:28:07 1.74
@@ -1,33 +1,29 @@ @@ -1,33 +1,29 @@
1# $NetBSD: Makefile,v 1.73 2023/01/29 21:17:41 ryoon Exp $ 1# $NetBSD: Makefile,v 1.74 2023/02/14 03:28:07 ryoon Exp $
2# 2#
3 3
4DISTNAME= putty-0.76 4DISTNAME= putty-0.78
5PKGREVISION= 4 
6CATEGORIES= security 5CATEGORIES= security
7MASTER_SITES= http://the.earth.li/~sgtatham/putty/${PKGVERSION_NOREV}/ 6MASTER_SITES= http://the.earth.li/~sgtatham/putty/${PKGVERSION_NOREV}/
8 7
9MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= https://www.chiark.greenend.org.uk/~sgtatham/putty/ 9HOMEPAGE= https://www.chiark.greenend.org.uk/~sgtatham/putty/
11COMMENT= Free implementation of Telnet and SSH for Win32 and Unix platforms 10COMMENT= Free implementation of Telnet and SSH for Win32 and Unix platforms
12LICENSE= mit 11LICENSE= mit
13 12
14USE_TOOLS+= gmake pkg-config 13USE_CMAKE= yes
15BUILD_DIRS= unix 14USE_TOOLS+= perl pkg-config
16 15
17MAKE_FILE= Makefile.gtk 16#INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
18MAKE_FLAGS+= mandir=${PREFIX}/${PKGMANDIR} 
19 
20INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 
21 17
22.include "options.mk" 18.include "options.mk"
23 19
24.if !empty(OPSYS:M*BSD) || ${OPSYS} == "DragonFly" || ${OPSYS} == "Darwin" 20.if !empty(OPSYS:M*BSD) || ${OPSYS} == "DragonFly" || ${OPSYS} == "Darwin"
25CFLAGS+= -DOMIT_UTMP 21CFLAGS+= -DOMIT_UTMP
26.endif 22.endif
27 23
28# Unix98 ptys were added some time ago in NetBSD -current, 24# Unix98 ptys were added some time ago in NetBSD -current,
29# so use it if we have the device, otherwise use the old style. 25# so use it if we have the device, otherwise use the old style.
30.if !exists(/dev/ptmx) 26.if !exists(/dev/ptmx)
31CFLAGS+= -DBSD_PTYS 27CFLAGS+= -DBSD_PTYS
32.endif 28.endif
33 29

cvs diff -r1.2 -r1.3 pkgsrc/security/putty/PLIST (expand / switch to unified diff)

--- pkgsrc/security/putty/PLIST 2017/05/04 12:52:35 1.2
+++ pkgsrc/security/putty/PLIST 2023/02/14 03:28:07 1.3
@@ -1,17 +1,17 @@ @@ -1,17 +1,17 @@
1@comment $NetBSD: PLIST,v 1.2 2017/05/04 12:52:35 ryoon Exp $ 1@comment $NetBSD: PLIST,v 1.3 2023/02/14 03:28:07 ryoon Exp $
2bin/pageant 2bin/pageant
3bin/plink 3bin/plink
4bin/pscp 4bin/pscp
5bin/psftp 5bin/psftp
 6bin/psusan
6bin/pterm 7bin/pterm
7bin/putty 8bin/putty
8bin/puttygen 9bin/puttygen
9bin/puttytel 
10man/man1/pageant.1 10man/man1/pageant.1
11man/man1/plink.1 11man/man1/plink.1
12man/man1/pscp.1 12man/man1/pscp.1
13man/man1/psftp.1 13man/man1/psftp.1
 14man/man1/psusan.1
14man/man1/pterm.1 15man/man1/pterm.1
15man/man1/putty.1 16man/man1/putty.1
16man/man1/puttygen.1 17man/man1/puttygen.1
17man/man1/puttytel.1 

cvs diff -r1.34 -r1.35 pkgsrc/security/putty/distinfo (expand / switch to unified diff)

--- pkgsrc/security/putty/distinfo 2021/10/26 11:17:40 1.34
+++ pkgsrc/security/putty/distinfo 2023/02/14 03:28:07 1.35
@@ -1,11 +1,8 @@ @@ -1,11 +1,8 @@
1$NetBSD: distinfo,v 1.34 2021/10/26 11:17:40 nia Exp $ 1$NetBSD: distinfo,v 1.35 2023/02/14 03:28:07 ryoon Exp $
2 2
3BLAKE2s (putty-0.76.tar.gz) = bb6ba61b99336a5f86b32a82050b50e2b8fee36ae70e9a9f41d823a609b624a2 3BLAKE2s (putty-0.78.tar.gz) = 0cd36ac355085e34c7e03afb93add0d00d55bfe055d5aec565d04eb3b9d3a8f6
4SHA512 (putty-0.76.tar.gz) = 4576b359593928c6eba923f2d7b66ac0f2cf00e0c217cdbbb124471c3b35feb090e623847bfc507a4ef106cb3067aac47419e241b11dd8bf4ae554061fa93c25 4SHA512 (putty-0.78.tar.gz) = d7a3e2eabd5f1f65fc0f3f1ee0789c30fbe891b57f63ddeac0b92befcb6aecd4a748f04a21c76ee42d992deb77c2e1a0454a71cc620ef26fbf23af660bd84bb5
5Size (putty-0.76.tar.gz) = 2735687 bytes 5Size (putty-0.78.tar.gz) = 2811628 bytes
6SHA1 (patch-ldisc.c) = cf31a65f920a3ea9b4a70602e4b2fd4d5df8d3e8 6SHA1 (patch-ldisc.c) = cf31a65f920a3ea9b4a70602e4b2fd4d5df8d3e8
7SHA1 (patch-terminal.c) = 30d6196e371b5369f9ea69e193662a47dbefaa10 7SHA1 (patch-terminal.c) = 690d9021b14947ae24c68ecff6781ad255ab7a70
8SHA1 (patch-timing.c) = a6a492fc8b22c58e2973c854bffa4c8bf71eb6a7 8SHA1 (patch-timing.c) = a6a492fc8b22c58e2973c854bffa4c8bf71eb6a7
9SHA1 (patch-unix_Makefile.gtk) = 47cde3590b7e5ebe30a1ad5fcb6c9e4ce6c25eed 
10SHA1 (patch-unix_uxnet.c) = 2d1c2939721993fe5616c2fe3f1935c03a31bb35 
11SHA1 (patch-unix_uxpgnt.c) = 64da7ac0b5f02de7d5e03858b0ea69c8662cc07a 

cvs diff -r1.5 -r1.6 pkgsrc/security/putty/patches/patch-terminal.c (expand / switch to unified diff)

--- pkgsrc/security/putty/patches/patch-terminal.c 2019/12/19 22:22:33 1.5
+++ pkgsrc/security/putty/patches/patch-terminal.c 2023/02/14 03:28:07 1.6
@@ -1,26 +1,26 @@ @@ -1,26 +1,26 @@
1$NetBSD: patch-terminal.c,v 1.5 2019/12/19 22:22:33 joerg Exp $ 1$NetBSD: patch-terminal.c,v 1.6 2023/02/14 03:28:07 ryoon Exp $
2 2
3Make the home/end keys work on BSD servers as well as Linux ones 3Make the home/end keys work on BSD servers as well as Linux ones
4 4
5--- terminal.c.orig 2019-09-22 09:14:51.000000000 +0000 5--- terminal/terminal.c.orig 2022-10-28 17:19:48.000000000 +0000
6+++ terminal.c 6+++ terminal/terminal.c
7@@ -6892,8 +6892,17 @@ int format_small_keypad_key(char *buf, T 7@@ -7508,8 +7508,17 @@ int format_small_keypad_key(char *buf, T
8 } else { 8 } else {
9 p += sprintf(p, "\x1B[%c", codes[code-1]); 9 p += sprintf(p, "\x1B[%c", codes[code-1]);
10 } 10 }
11- } else if ((code == 1 || code == 4) && term->rxvt_homeend) { 11- } else if ((code == 1 || code == 4) && term->rxvt_homeend) {
12- p += sprintf(p, code == 1 ? "\x1B[H" : "\x1BOw"); 12- p += sprintf(p, code == 1 ? "\x1B[H" : "\x1BOw");
13+ } else if (code == 1 || code == 4) { 13+ } else if (code == 1 || code == 4) {
14+ /* Home/End */ 14+ /* Home/End */
15+ /* Send the correct XTerm or rxvt codes for home/end 15+ /* Send the correct XTerm or rxvt codes for home/end
16+ * We used to send ^[1~ and [4~ for Xterm, 16+ * We used to send ^[1~ and [4~ for Xterm,
17+ * but those are Linux console */ 17+ * but those are Linux console */
18+ const char *he; 18+ const char *he;
19+ if (term->rxvt_homeend) 19+ if (term->rxvt_homeend)
20+ he = code == 1 ? "\x1B[7~" : "\x1B[8~"; 20+ he = code == 1 ? "\x1B[7~" : "\x1B[8~";
21+ else 21+ else
22+ he = code == 1 ? "\x1BOH" : "\x1BOF"; 22+ he = code == 1 ? "\x1BOH" : "\x1BOF";
23+ p += sprintf((char *) p, "%s", he); 23+ p += sprintf((char *) p, "%s", he);
24 } else { 24 } else {
25 p += sprintf(p, "\x1B[%d~", code); 25 if (term->vt52_mode) {
26 } 26 p += sprintf(p, "\x1B[%d~", code);

File Deleted: pkgsrc/security/putty/patches/Attic/patch-unix_Makefile.gtk

File Deleted: pkgsrc/security/putty/patches/Attic/patch-unix_uxnet.c

File Deleted: pkgsrc/security/putty/patches/Attic/patch-unix_uxpgnt.c