Subversion Repositories oidplus

Compare Revisions

Regard whitespace Rev 1142 → Rev 1143

/trunk/plugins/viathinksoft/publicPages/100_whois/whois/json/security.inc.php
65,7 → 65,7
* @param string $json_content
* @param string $privkey
* @param string $pubkey
* @return false|string
* @return string
* @throws Exception
*/
function oidplus_json_sign(string $json_content, string $privkey, string $pubkey) {
101,6 → 101,7
 
// Self-test and output
$json_signed = json_encode($output);
if (!$json_signed) throw new Exception("JSON Encoding failed");
oidplus_json_verify($json_signed, $pubkey);
return $json_signed;
}