2019-07-10 15:40:28 -04:00
|
|
|
# Set default values for email_smime settings
|
|
|
|
class SmimeSignatureSettings
|
|
|
|
def self.parse(email_smime)
|
|
|
|
email_smime ||= Settingslogic.new({})
|
|
|
|
email_smime['enabled'] = false unless email_smime['enabled']
|
|
|
|
email_smime['key_file'] ||= Rails.root.join('.gitlab_smime_key')
|
|
|
|
email_smime['cert_file'] ||= Rails.root.join('.gitlab_smime_cert')
|
2020-04-21 11:21:10 -04:00
|
|
|
email_smime['ca_certs_file'] ||= nil
|
2019-07-10 15:40:28 -04:00
|
|
|
|
|
|
|
email_smime
|
|
|
|
end
|
|
|
|
end
|