Re: [sr-dev] [kamailio/kamailio] jwt module: HS256 secret inside a file kdata.len is off by one (Issue #3282)

2022-11-23 Thread Daniel-Constantin Mierla
For the records, I just added a function that get the key value as parameter, that should allow getting it from env variable, without need to go through a file storage. It is in master branch. -- Reply to this email directly or view it on GitHub:

Re: [sr-dev] [kamailio/kamailio] jwt module: HS256 secret inside a file kdata.len is off by one (Issue #3282)

2022-11-22 Thread Daniel-Constantin Mierla
Indeed, I also expect to be some whitespace/EoL at the end of the file. I just pushed a patch to trim the key value. If still not working, re-open. -- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/3282#issuecomment-1323322164 You are receiving

Re: [sr-dev] [kamailio/kamailio] jwt module: HS256 secret inside a file kdata.len is off by one (Issue #3282)

2022-11-22 Thread Daniel-Constantin Mierla
Closed #3282 as completed. -- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/3282#event-7865519828 You are receiving this because you are subscribed to this thread. Message ID: ___ Kamailio (SER) -

Re: [sr-dev] [kamailio/kamailio] jwt module: HS256 secret inside a file kdata.len is off by one (Issue #3282)

2022-11-22 Thread Henning Westerholt
Looks like an easy fix, but might be something related to line/file endings coming from different platforms. Maybe @miconda can comment as well. -- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/3282#issuecomment-1323300777 You are receiving this