Commit b7c5c469 authored by Diego Louzán's avatar Diego Louzán Committed by Roger Meier

fix: smime specs fail because of new Gitlab::X509 module scoping

parent 50aa5234
......@@ -8,8 +8,8 @@ module Gitlab
# Tooling for signing and verifying data with SMIME
class Signer
def self.sign(cert:, key:, data:)
signed_data = PKCS7.sign(cert, key, data, nil, PKCS7::DETACHED)
PKCS7.write_smime(signed_data)
signed_data = OpenSSL::PKCS7.sign(cert, key, data, nil, OpenSSL::PKCS7::DETACHED)
OpenSSL::PKCS7.write_smime(signed_data)
end
# return nil if data cannot be verified, otherwise the signed content data
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment