dns_rdata_fromtext and dns_rdata_fromwire now checks that there is a valid name or oid at the start of the keydata when the key algorithm is PRIVATEDNS and PRIVATEOID respectively. dns_rdata_totext now prints out the oid if the algorithm is PRIVATEOID.