Skip to content

Commit

Permalink
secsipid: note that get url function is doing caching
Browse files Browse the repository at this point in the history
- use get url function in example for verify
  • Loading branch information
miconda committed Mar 21, 2024
1 parent eca79b0 commit 01ec19f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/modules/secsipid/doc/secsipid_admin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ request_route {
...
request_route {
...
http_client_query("https://provider.com/stir-shaken/cert.pem", "$var(pubkey)");
secsipid_get_url("https://provider.com/stir-shaken/cert.pem", "$var(pubkey)");
if(secsipid_verify("$hdr(Identity)", "$var(pubkey)", "A")) { ... }
...
}
Expand All @@ -356,7 +356,8 @@ request_route {
<function moreinfo="none">secsipid_get_url(url, ovar)</function>
</title>
<para>
Get the content of a URL and store the result in a variable.
Get the content of a URL and store the result in a variable. The result
is cached by libsecsipid, if caching is enabled.
</para>
<para>
The url parameters can contain pseudo-variables and ovar has to be
Expand Down

0 comments on commit 01ec19f

Please sign in to comment.