[naviserver-devel] Verifying HMAC signature [ns_crypto::hmac ... ]

2020-05-23 Thread iuri
Hi there,How can I verify HMAC signatures, using [ns_crypto::hmac ...]?For example, one has sent an encrypted message:set secret_message [ns_crypto::hmac string -digest sha256 "Abracadabra" "What is the magic word?"]... and another wants to verify integrity and authenticity of that message in t

[naviserver-devel] Registering/Allowing request method HTTP PUT

2020-05-23 Thread iuri
Hi there,In attempt to register PUT in my NS instalation  ( ie. HTTP PUT method), I added the following line, within  /tcl/http-handlers-init.tcl library :ns_register_tcl -options {stream stricterror} -- PUT /REST/*.tclI also try the simplest call:  ns_register_tcl PUT /REST/*.tclThen, within /REST