Made message signing in Cryptography use SHA512 as the message content for... #1
1 changed files with 6 additions and 1 deletions
|
@ -127,8 +127,13 @@
|
|||
* @param DnsRecord $record The DNS record to be associated with the specified domain.
|
||||
* @return void
|
||||
*/
|
||||
public static function mockRecord(string $domain, DnsRecord $record): void
|
||||
public static function addMock(string $domain, DnsRecord|string $record): void
|
||||
{
|
||||
if(is_string($record))
|
||||
{
|
||||
$record = DnsHelper::parseTxt($record);
|
||||
}
|
||||
|
||||
self::$mockedRecords[$domain] = $record;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue