* Small bugfix * Changes Tested locally
In addressing Daniel's comments on https://github.com/kamailio/kamailio/pull/2268#issuecomment-609935161, I realized that I misunderstood how select variables get resolved to data structures.
This patch fixes the sel_ssl_cert() implementation so that $sel(@tls.my.raw_cert), $sel(@tls.my.urlencoded_cert), $sel(@tls.peer.raw_cert), and $sel(@tls.peer.urlencoded_cert) all evaluate to expected outputs. You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2291
-- Commit Summary --
* tls: fix raw vs urlencoded behavior in sel_ssl_cert()
-- File Changes --
M src/modules/tls/tls_select.c (28)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2291.patch https://github.com/kamailio/kamailio/pull/2291.diff