Merge branch 'master' into feat/rss-feed

This commit is contained in:
Maël Gangloff 2025-08-30 19:25:21 +02:00
commit a7b563c856
No known key found for this signature in database
GPG Key ID: 11FDC81C24A7F629
2 changed files with 16 additions and 8 deletions

View File

@ -44,12 +44,8 @@
[ [ "co" ], [ "https://rdap.nic.co/" ] ],
[ [ "de" ], [ "https://rdap.denic.de/" ] ],
[ [ "ga" ], [ "https://rdap.nic.ga/" ] ],
[ [ "ht" ], [ "https://rdap.nic.ht/" ] ],
[ [ "in" ], [ "https://rdap.registry.in/" ] ],
[ [ "ke" ], [ "https://rdap.kenic.or.ke/" ] ],
[ [ "kn" ], [ "https://rdap.nic.kn/" ] ],
[ [ "li" ], [ "https://rdap.nic.li/" ] ],
[ [ "ml" ], [ "https://rdap.nic.ml/" ] ],
[ [ "mr" ], [ "https://rdap.nic.mr/" ] ],
[ [ "mz" ], [ "https://rdap.nic.mz/" ] ],
[ [ "ng" ], [ "https://rdap.nic.net.ng/" ] ],

View File

@ -62,9 +62,15 @@ class DnsKey
return $this;
}
public function getKeyTag()
public function getKeyTag(): string
{
return unpack('n', $this->keyTag)[1];
$value = $this->keyTag;
if (is_resource($value)) {
$value = stream_get_contents($value);
}
return unpack('n', $value)[1];
}
public function setKeyTag($keyTag): static
@ -86,9 +92,15 @@ class DnsKey
return $this;
}
public function getDigest()
public function getDigest(): string
{
return strtoupper(bin2hex($this->digest));
$value = $this->digest;
if (is_resource($value)) {
$value = stream_get_contents($value);
}
return strtoupper(bin2hex($value));
}
public function setDigest($digest): static