projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rt 4.2.16
[freeside.git]
/
rt
/
lib
/
RT
/
Crypt
/
SMIME.pm
diff --git
a/rt/lib/RT/Crypt/SMIME.pm
b/rt/lib/RT/Crypt/SMIME.pm
index
743ab2b
..
d6dc92b
100644
(file)
--- a/
rt/lib/RT/Crypt/SMIME.pm
+++ b/
rt/lib/RT/Crypt/SMIME.pm
@@
-2,7
+2,7
@@
#
# COPYRIGHT:
#
#
# COPYRIGHT:
#
-# This software is Copyright (c) 1996-201
6
Best Practical Solutions, LLC
+# This software is Copyright (c) 1996-201
9
Best Practical Solutions, LLC
# <sales@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
# <sales@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
@@
-184,6
+184,14
@@
sub Probe {
\$buf, \$err
) };
\$buf, \$err
) };
+ if ($err && $err =~ /Invalid command/) {
+ ($buf, $err) = ('', '');
+ safe_run_child { run3( [$bin, "list", "-commands"],
+ \undef,
+ \$buf, \$err
+ ) };
+ }
+
if ($? or $err) {
$RT::Logger->warning(
"RT's SMIME libraries couldn't successfully execute openssl.".
if ($? or $err) {
$RT::Logger->warning(
"RT's SMIME libraries couldn't successfully execute openssl.".