-
Notifications
You must be signed in to change notification settings - Fork 21
/
Changes
571 lines (476 loc) · 22.9 KB
/
Changes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
Revision history for Perl extension Net::SSH2.
0.75
- Add more constants from libssh2.h
- Handle hostkey hashes of type SHA256
- Some deprecation warnings can not be silenced anymore.
- Documentation fixes
- net_ss_auth_publickey_frommemory is only available when
- libssh2 is compiled with OpenSSL backend (#gh55 reported by
Sergiy Zuban).
0.74 2024-09-02
- Add a cast to fix an error on some compilations.
- Update README.pod.
0.73 2022-08-03
- Switch to -std=c11 because Perl uses thread_local now #58
0.72 2020-12-22
- Add support for some new error codes in latest libssh2
versions.
- Improve error reporting on "auth" method.
- Fix crypto backend selection at build time.
0.71 2020-04-10
- Fix building on Windows.
- Fix installation on macOS with Homebrew.
- Rewrite synopsis to be more relevant to usual use-cases.
0.70 2019-3-17
- Documentation improvements.
- SFTP stat was not reporting errors correctly (bug report and
patch by Thomas Lochmatter).
0.69 2018-2-24
- Fix META.yml generation (bug report by Slaven Rezic).
0.68 2017-12-13
- Fix build when using perl 5.26 which doesn't have "." in
@INC anymore (patch by Marc-Philip Werner).
0.67 2017-12-02
- Fix Net::SSH2::Listener "accept" method (patch by
Marc-Philip Werner).
- Fix Net::SSH2::SFTP "readlink" and "realpath" methods (patch
by Marc-Philip Werner).
0.66 2017-07-19
- Warn about readline being called in non-blocking mode.
0.65 2017-06-14
- Improve Travis CI testing
- Fix perl 5.8 support
- Warn when check_hostkey is called in void context.
0.64 2017-06-14
- Accept debug flag on the constructor.
- Ensure the crypto libraries are positioned after libssh2 on
the link line (bug report and patch by Jacques Germishuys).
- Channel "pty" method now accepts mode modifiers passed as a
hash.
- In connect, warnif was clobbering $! (bug report and patch
by ikegami).
- t/Net-SSH2.t: add support for TEST_NET_SSH2_TRACE
0.63 2016-10-13
- die_with_error errors pointed to that method instead of its
caller.
- Fix case in user message.
- Silence warning in perl 5.10.
0.62 2016-06-07
- Code handling the conversion of arguments accepting both
integers and constant names was broken for undef.
0.61 2016-06-03
- "auth" method was skipping agent authentication always (bug
report and patch by NIkolay A. Fetisov).
0.60 2016-05-23
- Fix connecting to a custom port (bug report by Jan Gehring).
0.59_23 2016-05-19
- Fix handling of eof in Channel read2 method.
- Several documentation corrections.
- Add example/benchmark.pl to the distribution.
0.59_22 2016-05-18
- Add support for some additional constants.
- Make remote login name default to be the same as the local
one.
- Several documentation improvements.
0.59_21 2016-05-13
- Conversion of stream_id arguments has been moved to a
typemap.
- Channel 'flush' was not handling 'all' properly.
0.59_20 2016-05-11
- Method timeout is not available in old libssh2 versions.
0.59_19 2016-05-10
- Honour timeout setting from _ask_user method.
0.59_18 2016-05-09
- Fix failing test caused by a remote SIGPIPE (bug report by
Ferenc Erki).
- Work-around libssh2_channel_wait_closed bug.
- Fix channel and file PRINTF methods.
- Improve tests.
0.59_17 2016-05-06
- Port Channel "readline" method to File class.
- Implement File getc in XS for improved performance.
- Add workaround for perl bug around EOF method of tied file
handles.
- Add more tests.
- Several documentation improvements.
0.59_16 2016-05-04
- Save EAGAIN errors after every libssh2 channel and session
call.
- Extend exit_signal method to return the tree values comming
back from libssh2_channel_exit_signal.
- Make Channel blocking method be just a wrapper for session
blocking method.
- Add channel wait_eof method.
- Make exit_signal and exit_status call wait_closed under the
hood, otherwise they could return a wrong result.
- Make wait_closed call wait_eof under the hood to avoid bad
usage errors.
- Add method exit_signal_number that translates the result of
exit_signal to the matching local signal number (note that
on the remote machine the signal number may be different).
- Channel CLOSE now mimics real file handles better and sets
$?.
- Improve the test script so that it can be better automated.
0.59_15 2016-05-03
- Channel and SFTP READLINE and readline methods were not
handling correctly undef as the end of line marker
(i.e. $/=undef).
- SFTP and Channel BINMODE methods were returning undef
instead of 1.
- Add even more tests!
- Add more tests (contributed by Chris Kirke).
- SFTP file READ was broken (reported by Chris Kirke).
0.59_14 2016-04-28
- READLINE was not clearing the error code correctly.
0.59_13 2016-04-26
- Detect EOF in most cases (cannot be done always due to
libssh2 limitations) in "readline" and "getc".
- Clear error before returning from "readline" as it returns
undef for compatibility with Perl builtin even when no error
has happened.
- Several documentation improvements.
0.59_12 2016-04-26
*** WARNING: backward incompatible change: "READLINE" had an
undocumented hard coded timeout of 250ms which made the
method unreliable. That timeout has been removed. If
desired, the old behaviour can be attained setting
non-blocking mode or with a global timeout.
- Add Channel "readline" method.
- Add Channel "getc" method.
- Cleanup of the channel tie interface.
0.59_11 2016-04-22
- Add channel method "read2".
- Do not retry read operations when "libssh2_channel_read_ex"
returns 0 (bug report by Ferenc Erki).
- Fix definitions for LIBSSH2_ERROR_NONE,
LIBSSH2_SESSION_BLOCK_INBOUND and
LIBSSH2_SESSION_BLOCK_OUTBOUND.
- Scale timeout values passed between IO::Socket::* (using
seconds) and libssh2 (using miliseconds).
- Several documentation improvements.
0.59_10 2016-04-19
- Don't warn when undef is passed to method "timeout".
- Add more tests.
- Several documentation improvements.
0.59_09 2016-04-18
- Method "read" was not returning errors correctly.
- Typemaps for 64bit integers were broken
- Restrict the channel type to "session" in method "channel".
- The realclean target of the generated Makefile was deleting
const-c.inc and const-xs.inc which are not generated
anymore.
- Several documentation improvements.
0.59_08 2016-04-18
- Get extended diagnosis messages when $ENV{AUTOMATED_TESTING}
is set.
0.59_07 2016-04-17
- In auth, do not call authentications methods unless they are
supported by the server.
- Fix minor scp_get issue
- Add workaround for getpwuid not being available on MS
Windows.
- Several documentation fixes.
0.59_06 2016-04-17
- Add method die_with_error into Net::SSH2::SFTP
- Several documentation improvements.
0.59_05 2016-04-16
- Switch the order of "policy" and "known_host_path" arguments
in method "check_hostkey".
- Improve "check_hostkey" method adding support for using a
callback as policy.
- Rename "remote_port" to "port", "remote_hostname" to
"hostname" and "check_remote_hostkey" to "check_hostkey".
- Rewrite constant generation code
- Several documentation improvements.
0.59_04 2016-04-13
- Use libssh2 function "libssh2_scp_send64" when available. It
allows sending files bigger than 4GB.
- Improve the way the user is prompted.
- Improve "check_remote_hostkey" method (WIP).
- Add scat.pl sample script
- Several documentation improvements.
- Remove File::Slurp dependency in test script.
0.59_03 2016-04-12
- Fix Channel "read" method that was hanging in blocking mode.
- Add "check_remote_hostkey" method for easy remote host key
verification (WIP)
- Add "die_with_error" method.
- Several documentation improvements.
0.59_02 2016-04-12
- Fix "auth_list" method.
- Fix handling of "lib" argument in Makefile.PL.
- Compilation was broken for perls 5.8.0 .. 5.8.3.
- Several documentation improvements.
0.59_01 2016-04-11
*** WARNING: this release includes lots of changes, some
visible, most internal. Regressions are expected. Also,
it introduces some minor backward incompatible changes -
but in those cases, the old behavior was broken or insane
anyway.
- libssh2 version 1.7.0 is now recommended. The module would
still compile against older versions, but not all its
features will be available.
- Makefile.PL has been refactored and improved. Now it is
better able to find the library libssh2 and compile code
using it.
- Lots of XS code refactoring has been performed in order to
simplify the module internals. Specifically, now typemaps
are used extensively to convert between C and Perl
types. Also, some complex non-performance-critical functions
have been moved to the Perl side or broken in a high level
Perl wrapper and a low level simpler C wrapper.
- KnownHost methods now return undef on error instead of
die'ing. Note that this submodule is still marked as
experimental.
- Die when data containing wide characters is passed
(i.e. outside the latin1 range). In previous versions,
methods on this module would happily accept strings
internally encoded as latin1 or utf8 and pass then along
untouched, resulting in unreliable behavior.
- In 32bit perls, return offsets and file sizes as NVs when
required to avoid overflow.
- Method "new" now also accepts the options "compress" and
"sigpipe".
- Passing options to "connect" is now deprecated.
- Passing a file descriptor number to "connect" is not
supported anymore (it was already broken).
- Method "connect" consistently returns undef on error. The
error code can be retrieved calling the "error" method
(requires libssh2 1.7.0). In previous versions, some errors
made the method die.
- Timeouts are handled correctly inside "connect".
- Report EAGAIN in the same way as any other error. This
introduces a minor backward incompatibility, but the old
behavior was utterly insane and undocumented, and so
probably, nobody was using it right anyway!
- Use libssh2_session_set_last_error function for storage of
the Perl level errors (required libssh2 1.7.0). This may
introduce some minor backward incompatibilities, but the old
code was broken and unreliable anyway.
0.58 2015-12-20
- re-released as stable
0.57_03 2015-12-5
- remove MYMETA.* from distribution (fixes #rt108717, reported
by Alexandr Ciornii)
- workaround bug in libssh2_agent_disconnect (fixes #28,
reported by Tore Anderson)
0.57_02 2015-10-29
- Module::Install::CheckLib was missing
0.57_01 2015-10-26
- reimplement scp_put and scp_get methods fixing several issues
- add support for Mac Homebrew and its keg-only OpenSSL
0.56 2015-10-9
- add support for auth_publickey_frommemory method (patch by
Adam Osuchowski)
- several documentation improvements
- fix broken test, rsa were not used for authentication
(#rt107382 reported by sisyphus)
- fix broken test, sock method can return both IO::Socket::IP
and IO::Socket::INET objects (#rt107381 reported by
sisyphus)
- improves docs for Net::SFTP::File::write method (#rt58911
reported by Salvatore Bonaccorso).
0.55 2015-09-27
- rerelease as stable
- fix errors in test script
0.54_02 2015-09-13
- channel write method was concealing errors
- several doc improvements (patches by Jason Lewis)
0.54_01 2015-08-27
- on auth method use key passphrase instead of password to
refer to the private key passphrase - using password will be
deprecated in future releases and is now warned
- add support for IPv6 via IO::Socket::IP (patch submitted by
Baldur Kristinsson)
- use binmode when transferring data from/to the local
filesystem in SCP methods
- add support for password-interact authentication
- add fallback option to auth method
- allow undef as the publickey path (patch submitted by Yuni
Kim)
- on channel write method, when blocking mode is set, call
libssh2_channel_write repeatly until the buffer is empty
- on channel read method, when non-blocking mode is set, don't
call libssh2_channel_read repeatly until the buffer is
filled
- add Net::SSH2 known_hosts method and Net::SSH2::KnownHosts
class
- add keepalive_config and keepalive_send methods
- add channel methods "window_write", "window_read" and
"receive_window_adjust"
- add "Compress" option into "connect" method
- add "flags" method
- exit_signal was generating SIGSEGV
- improve callback handling
- several documentation clarifications added
- fix several memory leaks
- fix several file descriptor leaks
- Lots of other minor tweaks
0.53 2013-09-01 06:05:17
- add support for ldargs, and LIBSSH2_LIB, LIBSSH2_INCLUDE,
LIBSSH2_LDARGS env vars while building (RT#88265)
0.52 2013-08-14 02:43:11
- detect scp not being installed on the remote and return undef from
scp_put (krimdomu: Jan) (GitHub PR: #17)
0.51 2013-08-03 21:17:47
- turn off -std=c89 -pedantic-errors for all builds except authors not
on mingw or solaris
0.50 2013-07-29 10:25:13
- remove #warning, not standard C89, throws an error on non-threaded
builds due to -pedantic-errors (RT#87398)
0.49 2013-07-22 20:11:25
- compile on gcc with '-DPERL_GCC_PEDANTIC -std=c89 -pedantic-errors -Wno-long-long' to enforce maximum compatibility with C89 (RT#87069)
0.48 2013-02-20 20:58:18
- fix builds on non-threaded perls (mauke: Lukas Mai)
- set default extra libs for Win32 (kmx)
0.47 2013-02-10 19:06:42
- timeout method to set a global timeout for every action (uses
libssh2_session_set_timeout) (pullreq from Thierry Treyer: zehkae)
- threads support for OpenSSL and libgcrypt (pullreq from James Mccoy:
jamessan)
- support for building with libgcrypt (pass gcrypt to Makefile.PL)
(pullreq from James Mccoy: jamessan)
0.46 2012-11-10 01:33:14
- patch from Robert-Jean Denault ([email protected]) to fix
segfault when releasing sftp object in debug mode
0.45 2012-05-27 09:18:49
- add 64bit instructions to BUILDING.WIN32 and clarify some things
0.44 2012-04-25 16:27:55
- update to latest ppport.h
- fix memory leak in password auth (RT#76701) (salva)
0.43 2012-04-24 07:47:21
- correct fix for (RT#73659) (remove inc=/lib= from @ARGV)
- add BUILDING.WIN32 guide for building on Windows from scratch
0.42 2012-04-19 14:05:44
- add LD_RUN_PATH/LD_LIBRARY_PATH to search paths (RT#74747)
- fix order of search paths for libs/includes
0.41 2012-04-18 22:12:07
- fix missing -I for include directory with inc= option to Makefile.PL
(RT#73659)
0.40 2011-10-23 18:41:17
- add ssh-agent support (krimdomu)
0.39 2011-07-17 18:24:30
- fix double free in auth_password (RT#69444)
0.38 2011-06-02 14:52:30
- add version check for block_directions
0.37 2011-06-02 14:34:26
- update ppport.h
- use correct libssh2 version check for exit_signal support
0.36 2011-05-27 21:28:00
- allow setting lib and inc paths on the command line (salva)
0.35 2011-05-10 17:43:17
- fix for segfault due to auth_list() (RT#68060)
0.34 2011-05-07 08:34:35
- fix trace option to ->new
- handle partial writes for scp_put
- add $chan->exit_signal (patch from [email protected])
- add $ssh->block_directions
- add new constants (socket, trace and ERROR_EAGAIN)
0.33 2010-07-13 07:59:22
- change trace option to use bitmask, so it becomes trace => -1, also
added ->trace method
0.32 2010-07-13 07:47:12
- add trace => 1 option to ->new (RT#59292)
0.31 2010-06-13 09:35:38
- remove eval $VERSION, was confusing some testers
0.30 2010-05-20 10:43:14
- rename symbol libssh2_error to xs_libssh2_error to avoid symbol
clashes (sisyphus)
0.29 2010-04-14 20:25:37
- fix splice warning when connecting with a socket handle (RT#56592)
0.28 2009-10-24 07:27:42
- added patch to find 64bit libs from H.Merijn Brand
- fix breakage on versions < 1.0 related to the pty functions
0.27 2009-09-10 06:54:58
- reverting a bad release
0.25 2009-09-07 01:07:58
- fix an unitialized warning
0.24 2009-08-20 19:55:28
- include patch for $chan->pty_size($w, $h) from Rubio Vaughan
0.23 2009-08-18 04:00:42
- Fix timeout option (forgot key)
0.22 2009-08-15 11:10:03
- "or die" semantics for ->connect (in non-void context)
- Timeout option for ->connect
0.21 2009-06-06 21:02:34
- some fixes for Cygwin
0.20 2009-06-01 04:17:37
- Added patch from sisyphus for win32 support for tests.
- Link to some extra libs in case of static build (also from sisyphus.)
- Added Timeout to socket options.
- Added "sock" accessor for underlying socket.
0.19 2009-04-11 01:03:39
- Updated for perl 5.10 and 5.6 compatibility.
0.18 2007-11-10 dbr (svn revision 56)
- Note version change: synced to libssh2. Should be compatible with
libssh2 0.16+, including future versions provided API remains stable.
- Documented Net::SSH2::version class method.
- Removed references to LIBSSH2_APINO (removed in libssh2 0.16);
fixes rt.cpan.org #28722.
- Fixed memory leak in poll (rt.cpan.org #27368, based on patch
from David Sullivan).
- Fixed 0-valued POSIX flag translation bug (based on patch from Joseph
Galbraith).
- Check lib64 as well as lib for libraries (patch from Leo Eraly).
- Add blocking method to Net::SSH2 object.
0.10 2007-02-24 dbr (svn revision 52)
- Net::SSH2::SFTP::realpath fix (Hugues Lafarge).
- Make compatible with perl 5.6 (rt.cpan.org #22821, SISYPHUS); required
minimal changes to typemap and use <version> lines (untested).
- libssh2 0.13 seems to work, libssh2 0.14 still fails some tests.
- Add missing Net::SSH2::PublicKey object.
- Use (arbitrary) 8K buffer in scp_get and scp_put methods, rather
than trying to transfer the whole file at once (rt.cpan.org #20679).
- Remove 'use Term::ReadKey'; it's already 'require'd in the keyboard
authentication callback (rt.cpan.org #22786).
- Provide libssh2 with Perl's allocator callbacks and use Perl_malloc/
Perl_mfree instead of bare malloc/free (rt.cpan.org #23930).
0.09 2006-09-25 dbr (svn revision 50)
- scp_get fixes: mode mask, truncate on create (Stephen Clouse).
- Fix O_CREATE to O_CREAT in perldoc.
- Fix typo: wait_close -> wait_closed (rt.cpan.org #20117).
- Add example/ directory and read.pl example to manifest so that it
gets included in the distribution (Danny Thomas).
- Add Net::SSH2::debug class method to enable debugging output at
runtime (used to require recompile to enable).
- Have poll of empty array return 0 early to fix architectures that
return 0 for malloc(0) (L. Adrian Griffis).
- WARNING: latest libssh2 builds (0.13, 0.14) don't pass module
tests any more; if you have problems try 0.12 or earlier.
0.08 2006-05-06 dbr (svn revision 46)
- Fix refcount bug (objects not destroyed) (Stephen Clouse).
0.07 2006-03-17 dbr (svn revision 44)
- Remove incorrect statement that poll with timeout of 0 will block.
- Fix scp_put read size (fix by Pier Hegeman, rt.cpan.org #17370).
- Fix Win32 check (rt.cpan.org #17656).
- Fix scp_get buffer overrun (Rutger Ovidus, rt.cpan.org #16886).
- Update Net::SSH2 SYNOPSIS (thanks to Roy Smith).
- NOTE: CPAN alias AWA (Vandana Awasthi) released an unauthorized
"0.07" version of Net::SSH2; you can recognize it because it says
0.06 in the changelog. I have not been able to contact AWA.
0.06 2006-01-14 dbr (svn revision 42)
- Win32 modifications (thanks to Eric Lam for research and patches).
- Use MAXPATHLEN instead of PATH_MAX; add some casts (thanks to
bug report from Freddy Soderlund).
- Update exec documentation to clarify that it runs a single command
and closes the channel (thanks to Mike Schmidt).
- Use '' for tied PRINT output separator if undefined (stop warnings).
0.05 2005-11-11 dbr (svn revision 40)
- More C89 fixes (-ansi -pedantic); thanks to Chuck Carson for testing.
- Remove "inline" (Solaris cc doesn't like it) (rt.cpan.org #15707).
- Various minor cleanups.
0.04 2005-11-07 dbr (svn revision 38)
- Fix c89 compile errors and warnings (-Wall).
- Make example/read.pl available as first sample script.
- Add public key objects (libssh2 0.12+ only).
0.03 2005-11-02 dbr (svn revision 36)
- Use poll in Net::SSH2::Channel::GETC (250 ms timeout).
- Change SCP interface; don't return a channel.
0.02 2005-11-01 dbr (svn revision 35)
- Add tie support to Net::SSH2::File objects.
0.01 2005-11-01 dbr (svn revision 30)
- First alpha release with full SSH2/SFTP support (uses libSSH2).
- Original version; created by h2xs 1.23 with options
-A -n Net::SSH2 -b 5.8.0.
0.00 2005-10-23
- Project started in Redmond, Washington, USA.