Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <2163D6C3-B7D6-4E35-890A-EDFCB4A48BAC@gmail.com>
Date: Wed, 2 Dec 2026 21:25:07 +0300
From: Kitotavrik <kitotavrik.s@...il.com>
To: musl@...ts.openwall.com
Subject: Adding readpassphrase(3) to musl

Hi,

Would it make sense to add readpassphrase(3) to musl as an alternative to the obsolete getpass(3)?

The interface is available on the BSDs and macOS and provides caller-managed storage and explicit control over terminal input.

The Linux getpass(3) manual page explicitly recommends readpassphrase(3bsd) from libbsd:

https://man7.org/linux/man-pages/man3/getpass.3.html

For example, libvirt introduced a libbsd dependency when migrating away from getpass(). Providing readpassphrase() in musl would allow applications that depend on libbsd solely for this interface to avoid that dependency on musl-based systems.

I encountered the same issue while developing a small portable password manager.

Would this interface be considered within the scope of musl? If so, I would be happy to adapt the OpenBSD implementation and submit a patch.

Regards,
Andrey Kriulin

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.