Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Sympa
Commits
ee72f3b3
Commit
ee72f3b3
authored
Mar 07, 2019
by
IKEDA Soji
Browse files
Crash with broken S/MIME user certificate.
parent
16aa7767
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/Sympa/Message.pm
View file @
ee72f3b3
...
...
@@ -1117,7 +1117,12 @@ sub smime_encrypt {
# encrypt the incoming message parse it.
my
$smime
=
Crypt::
SMIME
->
new
();
#FIXME: Add intermediate CA certificates if any.
$smime
->
setPublicKey
(
$cert
);
eval
{
$smime
->
setPublicKey
(
$cert
);
};
if
(
$EVAL_ERROR
)
{
$log
->
syslog
('
err
',
'
Unable to encrypt message to %s: %s
',
$email
,
$EVAL_ERROR
);
return
undef
;
}
# don't; cf RFC2633 3.1. netscape 4.7 at least can't parse encrypted
# stuff that contains a whole header again... since MIME::Tools has
...
...
Write
Preview
Supports
Markdown
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