Welcome to mirror list, hosted at ThFree Co, Russian Federation.

x509_name.rb « secure_files « ci « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 659959b8ae5f560e01f360e3269153b2c37f2dfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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