Story #107192666 - bug fix. ds.alg=key.alg, move default logic to gen-digest

This commit is contained in:
Matt Farnsworth 2015-11-24 12:38:14 +02:00
parent 67fd99b9af
commit c414838383
2 changed files with 8 additions and 9 deletions

View file

@ -387,13 +387,8 @@ class Epp::Domain < Domain
end
def key_data_from(frame)
result = xm_copy frame, KEY_INTERFACE
# TODO: can these defaults go where they belong?
result.merge({
ds_alg: 3, # DSA/SHA-1 [DSA] RFC2536
ds_digest_type: Setting.ds_algorithm # only 1
})
end
xm_copy frame, KEY_INTERFACE
end
def ds_data_from(frame)
frame.css('dsData').each do |ds_data|