Skip to content

RELEASE-NOTES: announce libssh2_base64_decode(), libssh2_poll() going no-ops - #2452

Closed
vszakats wants to merge 2 commits into
libssh2:masterfrom
vszakats:deprfunc
Closed

vszakats wants to merge 2 commits into
libssh2:masterfrom
vszakats:deprfunc

Conversation

@vszakats

@vszakats vszakats commented Jul 29, 2026 •

Copy link
Copy Markdown
Member

They have been deprecated for almost 2 decades. Debian code search shows
two uses, by Perl and PHP bindings. GitHub code search turns up a couple
more bindings.

After the next release these functions turn into no-ops, and will return
permanent failure, and NULL pointer/size. Along with compile-time
warnings (added in earlier commits).

Note, libssh2_base64_decode() causes an unfixable memory leak in user
code. Dropping libssh2_poll() code helps dropping its internal
dependencies, and simplifies maintenance.

Two users of libssh2_poll() are example/ssh2_echo.c and
examples/x11.c. They'll break and will ideally need a revamp, or
dropped, after this.

Follow-up to 94d4a2d #1838
Follow-up to cf3aac1
Follow-up to 2b8038e
Follow-up to ba79d6b

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Updates the project’s release notes to warn users that two long-deprecated public APIs will change behavior in the next release, helping downstream bindings and applications prepare for the upcoming breaking behavioral change.

Changes:

  • Add a deprecation notice stating libssh2_base64_decode() and libssh2_poll() will become no-ops that permanently fail in the next release.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread RELEASE-NOTES Resolved

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@vszakats vszakats closed this in f84a56d Jul 29, 2026
@vszakats
vszakats deleted the deprfunc branch July 29, 2026 15:47
vszakats added a commit that referenced this pull request Jul 31, 2026
…oing no-ops (revert)

It turned out that the `poll()` and `select()` dependencies are used not
just from `libssh2_poll()` but from another internal function, which
makes the no-opping pointless.

Revert to keep the deprecation process simple.

Follow-up to f84a56d #2452

Closes #2465
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants