mirror of
https://gh.wpcy.net/https://github.com/CaptainCore/captaincore-manager.git
synced 2026-04-18 08:42:15 +08:00
6.8 KiB
6.8 KiB
CHANGELOG for 4.x
4.2.1
4.2.0
- Deprecate support for PHP 7
- Issue #104 Support EDNS (Thank you, yeganemehr)
- Pull #110 Bumped PHP-IP to version 3 (Thank you, necrogami)
4.1.1
- Issue #96 - Use the correct version of rlanvin/php-ip for PHP 8.0. (Thank you, AdnanHussainTurki)
- Switch to Github Workflows from Travis and Scrutinizer.
4.1
- Issue #88 - TXT Rdata now supports unquoted contiguous strings. (Thank you, Lorenz Bausch - for bringing this to issue to light).
- Issue #89 - Fixes issue where TXT record with number as value throws exception (Thank you, Lorenz Bausch for bringing this to issue to light).
- PR #90 - Do not add double dot when
$ORIGINis the root domain ("."). (Thank you, Cedric Dubois) - Issue #91 - Use
christian-riesen/base32instead ofademarre/binary-to-text-php. - Explicit support for PHP 8.
- Throw exception if unpack() returns false. This fixes a litany of new PHPStan errors that are being seen in development.
4.0
Badcow\DNS\Rdata\RdataInterface::fromWireis no longer static and does not return an instance of the class. You now must instantiate the object first, and then callfromWiremethod. All parameters are the same.Badcow\DNS\Rdata\RdataInterface::fromTextis no longer static and does not return an instance of the class. You now must instantiate the object first, and then callfromTextmethod. All parameters are the same.- Deleted
Bacow\DNS\Rdata\Algorithms, useBacow\DNS\Algorithmsinstead. - PR #73 Resolves issue where records with integers are not parsed correctly. (Thank you, Hossein Taleghani)
- Issue #63 - Consistent handling ok keys, signatures and digests.
KEY::setPublicKey($key)now expects the raw binary form of the public key. SimilarlyKEY::getPublicKey()returns a raw binary public key.base64_decode()andbase64_encode()should be used on the setter and getter, respectively, if you want to handle Base64 encoded string. These changes apply to all child classes as well (DNSKEYandCDNSKEY).DS::setDigest($digest)now expects the raw binary form of the digest. SimilarlyDS::getDigestreturns a raw binary digest.hex2bin()andbin2hex()should be used on the setter and getter, respectively, if you want to handle hexadecimal encoded strings. These changes apply to all child classes as well (CDS,DLVandTA).CERT::setCertificate($cert)now expects the raw binary form of the certificate. SimilarlyCERT::getCertificate()returns a raw binary certificate.base64_decode()andbase64_encode()should be used on the setter and getter, respectively, if you want to handle Base64 encoded strings.DHCID::setDigest($digest)now expects the raw binary form of the digest. SimilarlyDHCID::getDigestreturns a raw binary digest.hex2bin()andbin2hex()should be used on the setter and getter, respectively, if you want to handle hexadecimal encoded strings.IPSECKEY::setPublicKey($key)now expects the raw binary form of the public key. SimilarlyIPSECKEY::getPublicKey()returns a raw binary public key.base64_decode()andbase64_encode()should be used on the setter and getter, respectively, if you want to handle Base64 encoded strings.NSEC3::setNextHashedOwner($key)now expects the raw binary form of the hash. SimilarlyNSEC3::getNextHashedOwner()returns a raw binary hash.NSEC3::base32decode()andNSEC3::base32encode()should be used on the setter and getter, respectively, if you want to handle Base32 encoded strings.RRSIG::setSignature($signature)now expects the raw binary form of the signature. SimilarlyRRSIG::getSignature()returns a raw binary signature.base64_decode()andbase64_encode()should be used on the setter and getter, respectively, if you want to handle Base64 encoded string. These changes apply to the child classSIGas well.SSHFP::setFingerprint($fingerprint)now expects the raw binary form of the fingerprint. SimilarlySSHFP::getFingerprintreturns a raw binary fingerprint.hex2bin()andbin2hex()should be used on the setter and getter, respectively, if you want to handle hexadecimal encoded strings.
- New method
DS::calculateDigest(string $owner, DNSKEY $dnskey)will calculate and set the digest using the DNSKEY rdata object. - Issue #75 - Resolves issue where RRSIG records are not process correctly. (Thank you, emkookmer)
- NSEC3 has new parameter
$nextOwnerNamewith respective setter and gettersNSEC3::setNextOwnerName($nextOwnerName)andNSEC3::getNextOwnerName(). This new parameter will not be rendered in the rdata text or wire formats, but can be used to calculate thenextOwnerHashedName. - NSEC3 has new method
NSEC3::calculateNextOwnerHash()to calculate and setNSEC3::nextOwnerHash. RequiresNSEC3::salt,NSEC3::nextOwnerName, andNSEC3::iterationsto be set before calling method. Factory::NSEC3()has been changed to take only the following parameters:[bool]$unsignedDelegationsCovered[int]$iterations[string]$salt[string]$nextOwnerName[array] $types
- Issue #70 - Multiple $ORIGIN declarations are now supported. (Thank you, MikeAT)
- Issue #80 - Parser now supports the $INCLUDE directive to import and parse child or subdomain zone files.
- PR #82 - Fix character escaping in TXT records. (Thank you, @fbett)
- Issue #84 -
TXT::toText()now splits string into 255-byte chunks. (Thank you, @fbett) - Issue #85 -
Badow\DNS\AlignedBuildernow has finer controls. You can now define the order of rendering Resource Records and add or change Rdata output formatters (seeDocs/AlignedZoneBuilder). Badow\DNS\AlignedBuildercannot be called statically anymore. It must be instantiated.