1
0
mirror of https://github.com/winscp/winscp.git synced 2026-10-24 02:28:55 +03:00

115 Commits

Author SHA1 Message Date
Martin Prikryl
b5f56bd2d4 Unused code
Inspired by PR #68

Source commit: 9c96e906501d8a22d305aa24ccf3162a287feb40
2026-10-13 10:47:52 +02:00
Martin Prikryl
cc81f2c3fc Updating code to PuTTY 0.84
Source commit: 71b0bdd5bb7ff22e916234fffeedf5db87668460
2026-05-30 01:07:44 +02:00
Martin Prikryl
17e9b96fac Refactoring
Source commit: 81ebf92fcad32efbe622f753af7c32b554b8fce1
2026-04-22 07:33:56 +02:00
Martin Prikryl
69ea522611 Reusing EncodeStrToBase64
Source commit: e31dd55472dcec1eae8fee52c3c6c19247fd2446
2026-04-10 01:12:59 +02:00
Martin Prikryl
a2119a7eac Types and casts safe in respect to pointer size for forward 64-bit compatibility
Also GetWindowLongPtr and GWLP_USERDATA

https://winscp.net/tracker/618

Source commit: c85fdf15e50ce8a6f35b1c4d2a0125a0b9c4f1f0
2026-01-22 14:51:13 +01:00
Martin Prikryl
e5efed8955 Refactoring old-style casts
Source commit: 3c37b3a958525c595ad44b081b2e0f3b288b8eb0
2025-12-18 01:20:33 +01:00
Martin Prikryl
a5dcb5f03c Using std::size instead of custom macro
Source commit: 1a89c80dd42426351f261526b617534bab664208
2025-12-07 01:17:54 +01:00
Martin Prikryl
1d9fe8c955 Changing compiler to Clang/bcc32c
- regarding the ILINK_LibraryPath for Cfg_1_Win32 (Debug):
Win32\Debug (not only Win32c\Debug) needs to be before Win32c\Release, as win32c does not include debug builds of Pascal code - so without that VCL debugging won't work
- IDE insist on adding CC_Suffix to all projects once switched to Clang, although it is only used in WinSCP.cbproj
- UNICODE define: Not needed for build (it's implicit), but CodeInsight does not know it it somehow

Source commit: da06d73eb86caff5ca9cac0185bed54da0da8f07
2025-09-04 07:53:01 +02:00
Martin Prikryl
3817bbd736 Preparing for separate pre-compiled header file required by Clang
- Once doing that, including more headers to PCH, not just vcl.h
- Clang won't need explicit include, but we will probably keep it anyway.
- #pragma hdrstop has no effect in Clang

Source commit: adc8a268b6907c5337ccaa430cca7526793a3019
2025-08-22 15:43:55 +02:00
Martin Prikryl
92ba1e3f0e Some (hopefully noop) refactoring to solve Clang internal compiler error when using new variable in __finally block + Some other small code changes imposed by Clang
Source commit: eef61854e4463990c6e823a08451a9e229a8c54b
2025-03-14 16:17:09 +01:00
Martin Prikryl
7b54dde3a6 Clang identifies some functions as "noreturn" + one noexcept(false)
Source commit: fc0c35fdddcd50a10d9ca13fc515164885325f81
2025-03-14 16:15:03 +01:00
Martin Prikryl
23f7ce72d8 BCB11 has strtoumax
Source commit: 8f39df83ecbe435ec1c30cda1bedf1ccbe0eb773
2025-03-14 09:52:20 +01:00
Martin Prikryl
3f4e41fee0 Clang imposed changes that should be noop and have no effect on classic compiler
Mostly:
– incorrectly identified uninitialized variables
– explicit static global variables
– const, sign and down casts and safety
– typename use
– semicolon after function implementation
– unused variables, fields, arguments and macros
– field initialization order
– exact include filename case
– redundant in code macros already defined at project level

(cherry picked from commit f7f00c631e)

Source commit: 90ad9390853aba308abe73cf02e0281238c53c87
2025-03-13 16:46:26 +01:00
Martin Prikryl
59a148c152 Updating code to PuTTY Pre-release 0.83:2025-01-03.1e45199 + Updating PuTTY code to C++ Builder
Source commit: f19842107de91d45c4a819260d5d335a7635980c
2025-01-05 01:04:26 +01:00
Martin Prikryl
2c16441f95 Bug fix: Failure when opening two SSH sessions at the same time
The primary cause was concurrent use of buffer-like MontyContext::scratch member.
But other non-thread-safe code was fixed along.

Found while implementing Issue 2318 which involves adding multiple queue items at the same moment

Source commit: f08842701165b662e475d249d0612a4404731a39
2024-12-21 01:19:41 +01:00
Martin Prikryl
25df2381f1 Updating code to PuTTY 0.82
Source commit: ddf59fef3b75f5efff8bf82fecdd61ef49970fd2
2024-12-05 16:51:39 +01:00
Martin Prikryl
6c36444701 Memory leak when parsing of public key fails
Source commit: f3ead13d4f12625882856c7c0211a62608f03e9f
2024-05-27 15:32:45 +02:00
Martin Prikryl
9f9d4655f1 Easier use of TValueRestorer
Source commit: 605e98cefaa62284f2b1150fdc355e88d48bdbd3
2024-03-20 13:56:00 +01:00
Martin Prikryl
acd1e545e2 Invalid assertion
from a6adfa0a

Source commit: f0fa3b67ef9170639a9bfae15e9f95f16e51161d
2024-01-23 14:55:22 +01:00
Mikhail Lukashov
a8e6220b88 fix typos 2024-01-05 10:37:32 +01:00
Martin Prikryl
48890aab85 Unused parameter
Source commit: ab1c2db73509269a565f41032b49bdd0ecb26222
2023-12-20 17:59:20 +01:00
Martin Prikryl
a6adfa0ad3 Updating to PuTTY 0.80 – mostly Issue 2246 – Mitigations for SSH protocol "Terrapin" vulnerability
https://winscp.net/tracker/2246

Source commit: f7b34a47547af9b0b4bd32fb66d6d278c8b6b342
2023-12-20 13:48:13 +01:00
Martin Prikryl
804ec9c9c9 Bug 52: Use file hash as criterion for synchronization
https://winscp.net/tracker/52

Source commit: 66fd353f8e26a7bd3317ee7cc4e6d15e7d6cfb52
2023-11-07 02:03:32 +01:00
Martin Prikryl
323b110246 Bug 2223: Some DLLs were not protected against hijacking
https://winscp.net/tracker/2223

Source commit: 7969689de8d933eb76d7646d8c867f4e1cbfa697
2023-09-28 01:04:24 +02:00
Martin Prikryl
fa89d3764e Trusted host certification authorities can be loaded from PuTTY (Bug 2145)
Source commit: 89ce74adb56ae374f5e0e3930f107dd2b5d2b67e
2023-09-23 07:19:59 +02:00
Martin Prikryl
db87bc1810 Bug 2145: Support for OpenSSH certificates for host verification
https://winscp.net/tracker/2145

Source commit: 9dda484bf38f9a72b61a2c3d8e7dd8892ee96c2b
2023-09-08 08:59:22 +02:00
Martin Prikryl
f03d94d6c4 Unused code
Source commit: c1fbc8af76d8e2116aaf6d2026dba2ea3e5e1c8f
2023-09-05 01:12:41 +02:00
Martin Prikryl
0a5981b619 Logging random seed file
Source commit: 3b9328482a89e63e295e9c9100c7981a1b4d54c7
2023-06-23 09:08:50 +02:00
Martin Prikryl
390246710d Typos in comments
Source commit: 740d9dd055b223ae63fa830787d850a66c02765f
2023-01-31 13:23:38 +01:00
Martin Prikryl
bccf1948fd Added GSSAPI key exchange algorithms to /info
Source commit: 4ae8c347967b903db9200cfdb7aa6bb71f178a78
2023-01-09 17:12:27 +01:00
Martin Prikryl
29b6be6f0a Support for NTRU Prime post-quantum key exchange
https://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/ntru.html

Source commit: 33d0e948a119c5cbdc61f22b30b0d5d2ed1b96d2
2023-01-07 00:54:35 +01:00
Martin Prikryl
952e9a2226 SSH ciphers usage counters
Source commit: 56b2213d85271f67c870d95061068c319bbd23d1
2023-01-05 19:29:15 +01:00
Martin Prikryl
282143321d Certificate can be added to ppk key with /keygen
Source commit: bfa55a5809e2d72e17c9ed223247daf44f79b014
2023-01-04 00:55:38 +01:00
Martin Prikryl
48106ee1b6 Bug 1873: Support for OpenSSH certificates for user authentication
https://winscp.net/tracker/1873

Source commit: fc13a226065092a102456a27242ac69151cb1d15
2022-12-14 01:00:41 +01:00
Martin Prikryl
68a4dd04b7 Reimplementing host key algorithm display for /info in a way that does not need reorganizing PuTTY code to show them in the preference order
Side effect of this is that Ed448 is put correctly on the top

Source commit: da86732db01cdd2c7bd228ec7596097590af1ce9
2022-12-08 00:52:21 +01:00
Martin Prikryl
74266d15ae Fixing order of new PuTTY 0.78 KEX DH Group algorithms
Source commit: 30e7e34fc4e683759bca6f647843439236beadd4
2022-12-07 01:09:53 +01:00
Martin Prikryl
0a6f1ba5d4 Unused variable
Source commit: f4d3a0cf45448481661a122f292c70d01d348b78
2022-12-03 11:07:56 +01:00
Martin Prikryl
ec808580ce Minimal changes needed to compile against PuTTY 0.78 and pass tests
Source commit: c717fcdc41b9be7bb3a88e06fc49d45eaf0cfa44
2022-12-03 00:57:29 +01:00
Martin Prikryl
e4bc3b1cca Further updates to PuTTY 0.77 (particularly to restore HTTP proxy support)
Source commit: 7cc78ce744077ee25b4acd8bb395d97221240138
2022-02-24 01:11:06 +01:00
Martin Prikryl
24a683d1dd Incorrect assertion
Source commit: 47f04bfdd82c4d78313ba4b5e0dfb71c6d96c36b
2022-02-24 01:06:18 +01:00
Martin Prikryl
6c8cf9ae8d Updating code to PuTTY 0.77
Source commit: da47a0c8a6347ce05fd02167b644c05cef61dc28
2022-02-07 09:57:39 +01:00
Martin Prikryl
7a9a31484f Warning when selecting too new key file + Fixing selecting PPK files and error message when selecting SSH-1 keys, both broken by 5dfcf1eb
(cherry picked from commit 2a355b95b1)

Source commit: 49dc88d07bf774f9b2eee826d1f0f1617f8a3e31
2021-11-25 01:05:45 +01:00
Martin Prikryl
cda4ea8a81 Removing support for SSH-1
(cherry picked from commit 5dfcf1eb9f)

Source commit: 1fd4286a576bf4525c8dd00849cdcf958cbf5eb8
2021-11-23 20:54:18 +01:00
Martin Prikryl
736a447c64 Generate PPK3 keys + Optimizing work with PPK3 keys.
(cherry picked from commit da478400c4)

Source commit: 19e6137e12d7db252c597e6f72e23d4d8928b6ec
2021-11-23 19:37:31 +01:00
Martin Prikryl
91552ab570 Memory leak
(cherry picked from commit 63dccac950)

Source commit: 0072d3f0a6f6131c2921eaaa7e8701e66d588a07
2021-11-23 19:32:51 +01:00
Martin Prikryl
542b4ead44 Updating code to PuTTY 0.75
(cherry picked from commit b69328d92d)

# Conflicts:
#	source/putty/sshecc.c

Source commit: 93ff727e4e428f747ab8f6b0d2db8147905b9e26
2021-11-23 19:09:04 +01:00
Martin Prikryl
a13b8f9ac3 Memory leak from PuTTY 0.76 (2514e9cd, on master branch c3783817)
(cherry picked from commit efe319a03f)

Source commit: 16ed4c873f53af2a63f50ae0433cdecf9494d6e6
2021-07-20 17:44:34 +02:00
Martin Prikryl
307619dd88 Bug 1986: Support for PPK version 3 keys
https://winscp.net/tracker/1986

Source commit: 96acc7e21d3a9ef78274bcda7e380d2660b585d0
2021-05-20 00:49:37 +02:00
Martin Prikryl
6fd78072e0 Bug 1917: List encrypt-then-MAC algorithms in /info listing
https://winscp.net/tracker/1917
(cherry picked from commit 1cc7db77ed)

Source commit: d1da74a7edf9bb6b04b0ac01d847458496696d50
2020-11-26 16:23:35 +01:00
Martin Prikryl
8645873789 Adjusting parameter names to PuTTY 0.74
(cherry picked from commit c91bc6945b)

Source commit: 06ba917f7d6e590acd1a5891cf9eadced389b996
2020-11-26 13:24:44 +01:00