Subversion Repositories oidplus

Compare Revisions

Regard whitespace Rev 870 → Rev 871

/trunk/plugins/viathinksoft/publicPages/100_whois/whois/json/security.inc.php
78,9 → 78,10
// 3. Sign the canonized JSON using a JSON Web Signature (JWS, RFC 7515)
 
// For JWS registered header parameter names see (RFC 7515, Section 4.1)
// Note that the required "alg" argument will be added automatically
$header = [
"typ" => "JSON",
"cty" => "text/json"
"typ" => "OID-IP", // optional (unused)
"cty" => "text/json" // optional
];
$payload = $canonical;
$jws->setPrivateKey($privkey, '');