Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
b7c5c469
Commit
b7c5c469
authored
Oct 22, 2019
by
Diego Louzán
Committed by
Roger Meier
Jan 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: smime specs fail because of new Gitlab::X509 module scoping
parent
50aa5234
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/gitlab/email/smime/signer.rb
lib/gitlab/email/smime/signer.rb
+2
-2
No files found.
lib/gitlab/email/smime/signer.rb
View file @
b7c5c469
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment