debian-mirror-gitlab/lib/gitlab/ci/secure_files/x509_name.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
282 B
Ruby
Raw Normal View History

2022-11-25 23:54:43 +05:30
# frozen_string_literal: true
module Gitlab
module Ci
module SecureFiles
class X509Name
def self.parse(x509_name)
x509_name.to_utf8.split(',').to_h { |a| a.split('=') }
rescue StandardError
{}
end
end
end
end
end