mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 17:01:44 +02:00
Merge pull request #2047 from internetee/2033-adding-unsupported-dnskey-alg-response
fixed dnskey invalid alg response
This commit is contained in:
commit
33bbc0ed42
3 changed files with 38 additions and 4 deletions
|
@ -34,9 +34,12 @@ class Dnskey < ApplicationRecord
|
|||
def epp_code_map
|
||||
{
|
||||
'2005' => [
|
||||
[:alg, :invalid, { value: { obj: 'alg', val: alg }, values: ALGORITHMS.join(', ') }],
|
||||
[:protocol, :invalid, { value: { obj: 'protocol', val: protocol }, values: PROTOCOLS.join(', ') }],
|
||||
[:flags, :invalid, { value: { obj: 'flags', val: flags }, values: FLAGS.join(', ') }]
|
||||
[:alg, :invalid, { value: { obj: 'alg', val: alg },
|
||||
values: "Valid algorithms are: #{ALGORITHMS.join(', ')}" }],
|
||||
[:protocol, :invalid, { value: { obj: 'protocol', val: protocol },
|
||||
values: "Valid protocols are: #{PROTOCOLS.join(', ')}" }],
|
||||
[:flags, :invalid, { value: { obj: 'flags', val: flags },
|
||||
values: "Valid protocols are: #{PROTOCOLS.join(', ')}" }],
|
||||
],
|
||||
'2302' => [
|
||||
[:public_key, :taken, { value: { obj: 'pubKey', val: public_key } }]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue