Skip to content

Migrate to callback-based authentication for libssh 0.12 - #622

Merged
michalvasko merged 1 commit into
CESNET:develfrom
HanzlikPetr:pr_libssh_deprecated_functions
Aug 20, 2026
Merged

Migrate to callback-based authentication for libssh 0.12#622
michalvasko merged 1 commit into
CESNET:develfrom
HanzlikPetr:pr_libssh_deprecated_functions

Conversation

@HanzlikPetr

Copy link
Copy Markdown

No description provided.

@HanzlikPetr
HanzlikPetr force-pushed the pr_libssh_deprecated_functions branch from c069926 to 4020c09 Compare August 10, 2026 11:40
Comment thread src/session.c
Comment thread src/session.c
Comment thread src/session_p.h
Comment thread src/session_server_ssh.c
@HanzlikPetr
HanzlikPetr force-pushed the pr_libssh_deprecated_functions branch 2 times, most recently from 30a5925 to a818cb1 Compare August 10, 2026 13:14

@Roytak Roytak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks okay, most of the comments were small things. I also noticed there is now significant code duplication between the callback and message paths (e.g. shadow kbdint, pubkey comparison and such), these could probably be moved to session_server_ssh.c and shared between the two.

Comment thread src/session_server_ssh.c Outdated
Comment thread src/session.c Outdated
Comment thread src/session_server_ssh_auth_callback.c Outdated
Comment thread src/session_server.c Outdated
Comment thread src/session_server_ssh_auth_callback.c
Comment thread src/session_server_ssh_wrapper.h
Comment thread src/session_server_ssh_auth_callback.c Outdated
Comment thread src/session_server_ssh_auth_callback.c
Comment thread src/session_server_ssh_auth_callback.c Outdated
Comment thread src/session_server_ssh_auth_callback.c Outdated
@HanzlikPetr
HanzlikPetr force-pushed the pr_libssh_deprecated_functions branch 2 times, most recently from 8cd5fc1 to ec1f8ed Compare August 18, 2026 15:17

@Roytak Roytak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed. We should also eventually add more tests for PAM, since only the 'happy' path is tested now, without any timeouts/cancels/more prompts. But not in this PR, just noting it down

Comment thread src/session.c
Comment thread src/session_server_ssh.c
Comment thread src/session_server_ssh_auth_callback.c
Comment thread src/session_server_ssh_auth_callback.c Outdated
Comment thread src/session_server_ssh.c Outdated
Comment thread src/session.c Outdated
Comment thread src/session_server_ssh_wrapper.h Outdated
Comment thread src/session_server_ssh.c
Comment thread src/session_server_ssh.c Outdated
Comment thread src/session_server_ssh_auth_callback.c
@HanzlikPetr
HanzlikPetr force-pushed the pr_libssh_deprecated_functions branch from ec1f8ed to b6722c2 Compare August 20, 2026 10:29
Comment thread src/session_server_ssh.c Outdated
Comment thread src/session_server_ssh.c Outdated
@HanzlikPetr
HanzlikPetr force-pushed the pr_libssh_deprecated_functions branch from b6722c2 to 39f7447 Compare August 20, 2026 11:58
@michalvasko
michalvasko merged commit eb8fabc into CESNET:devel Aug 20, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants