Commit 65c7d20
committed
Refactor SSH authentication handling
- Moved SSH utility functions from `ssh_utils.rs` to platform-specific modules.
- Created a new `ssh` module to encapsulate platform-specific implementations for SSH agent management.
- Implemented Unix-specific SSH agent functions in `src/auth/ssh/unix.rs`.
- Implemented Windows-specific SSH agent functions in `src/auth/ssh/windows.rs`.
- Added an unsupported module for platforms that do not support SSH agents in `src/auth/ssh/unsupported.rs`.
- Updated the main authentication module to use the new `ssh` module instead of the deprecated `ssh_utils.rs`.
- Enhanced error handling in the unsupported module to provide clear feedback for unsupported operations.
- Updated the `BGitErrorWorkflowType` enum to include an `Authentication` variant for better error categorization.1 parent 9991c47 commit 65c7d20
File tree
8 files changed
+858
-494
lines changed- src
- auth
- ssh
8 files changed
+858
-494
lines changedLarge diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
0 commit comments