der2pem only works with multiples of 64?

3 views
Skip to first unread message

Stephen Paul Weber

unread,
Nov 5, 2024, 9:59:02 PM11/5/24
to prosody-dev

When passing in data whose encoded length (minus one?) isn't an exact multiple of 64, this function complains that (#data-1)/64 is not an integer.

Kim Alvefur

unread,
Nov 7, 2024, 7:54:16 AM11/7/24
to proso...@googlegroups.com
Most likely a Lua 5.3+ integer issue. Should be easily fixed by
`math.floor()` on the division result. I see no tests for this nor any
uses of this function in Prosody itself, so not surprising that any
breakage has gone unnoticed.

--
Zash
Reply all
Reply to author
Forward
0 new messages