Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## [2.22.5] - 2026-07-30
- Exported `src/ssh_userauth.dart` in `lib/dartssh2.dart` to expose `SSHUserInfoRequest`, `SSHUserInfoPrompt`, `SSHAuthMethod`, and `SSHChangePasswordResponse` [#188]. Thanks [@vicajilau].

## [2.22.4] - 2026-07-27
- Advertised standard RFC 8731 key exchange name `curve25519-sha256` alongside legacy `curve25519-sha256@libssh.org` [#187]. Thanks [@nickn17].

Expand Down Expand Up @@ -279,6 +282,7 @@
[#175]: https://github.com/TerminalStudio/dartssh2/pull/175
[#176]: https://github.com/TerminalStudio/dartssh2/pull/176
[#1]: https://github.com/TerminalStudio/dartssh/pull/1/files
[#188]: https://github.com/TerminalStudio/dartssh2/issues/188

[@linhanyu]: https://github.com/linhanyu
[@Migarl]: https://github.com/Migarl
Expand Down
1 change: 1 addition & 0 deletions lib/dartssh2.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export 'src/ssh_pem.dart';
export 'src/ssh_session.dart';
export 'src/ssh_signal.dart';
export 'src/ssh_transport.dart';
export 'src/ssh_userauth.dart';

export 'src/socket/ssh_socket.dart';

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: dartssh2
version: 2.22.4
version: 2.22.5
description: SSH and SFTP client written in pure Dart, aiming to be feature-rich as well as easy to use.
homepage: https://github.com/TerminalStudio/dartssh2

Expand Down
25 changes: 25 additions & 0 deletions test/src/ssh_userauth_export_test.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import 'package:dartssh2/dartssh2.dart';
import 'package:test/test.dart';

void main() {
test(
'SSHUserInfoRequest and related userauth classes are exported by dartssh2.dart',
() {
final prompt = SSHUserInfoPrompt('Password:', false);
expect(prompt.promptText, equals('Password:'));
expect(prompt.echo, isFalse);

final request = SSHUserInfoRequest('Title', 'Instruction', [prompt]);
expect(request.name, equals('Title'));
expect(request.instruction, equals('Instruction'));
expect(request.prompts.length, equals(1));
expect(request.prompts.first.promptText, equals('Password:'));

final changePasswordResponse = SSHChangePasswordResponse('old', 'new');
expect(changePasswordResponse.oldPassword, equals('old'));
expect(changePasswordResponse.newPassword, equals('new'));

expect(
SSHAuthMethod.keyboardInteractive.name, equals('keyboard-interactive'));
});
}