This latest commit implements some of the TODO's in the curl module.
Here are some followup questions for @oej or anyone else who may use the curl module.
Should the verify_host parameter be configurable as well as verify_peer?
Is the intention to make the client cert/key configurable per-connection?
If we add more parameters to the curlcon modparam, it will easily get unmanageable.
I suggest two modparams, curlcon and curlcon_param. The first sets up the url and parameters (this is unchanged). The second will add parameters to a curlcon that is already defined. E.g.
modparam("curl", "curlcon", "apione=>https://myserver.example.com/url;timeout=12")
modparam("curl", "curlcon_param", "apione=>verifyserver=1")
modparam("curl", "curlcon_param", "apione=>clientkey=/var/certs/myserver.example.com.pem")
Any thoughts? Have I missed anything else in this area?
https://github.com/kamailio/kamailio/pull/481
—
Reply to this email directly or view it on GitHub.