2019 年 macOS 上的 SASL 状态如何?

What is the status of SASL on macOS in 2019?

我有一个 linux 应用程序正在尝试在 macOS 上编译。它依赖于 Cyrus SASL 库。

在编译期间,我收到与 SASL 相关的弃用警告,但该应用程序编译并且似乎可以正常工作。

/Users/travis/build/apache/qpid-proton/c/src/sasl/cyrus_sasl.c:101:30: warning: 'sasl_errdetail' is deprecated: first deprecated in macOS 10.11 [-Wdeprecated-declarations]
    const char* err = conn ? sasl_errdetail(conn) : sasl_errstring(r, NULL, NULL);

linux 上的 Cyrus SASL 带有实用程序 saslpasswd2。这在 macOS 上似乎不存在。

我想问一下 Apple 推荐的在 macOS 上提供 SASL 的方法是什么,它会给我编译库和 saslpasswd2 实用程序。

Cyrus SASL 可以使用 MacPorts 安装,https://www.macports.org/

sudo port install cyrus-sasl2

完成后,/opt/local/sbin/saslpasswd2 将添加到系统中。因为 /opt/local/{bin,sbin} 是 MacPorts 安装东西的默认路径。

使用 Homebrew 安装时,位置为 /usr/local/Cellar/cyrus-sasl/2.1.27/sbin/