X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Flib%2FRT%2FCrypt%2FSMIME.pm;h=d6dc92b25cb4f37f8a32efd806eb6683697cc630;hb=44dd00a3ff974a17999e86e64488e996edc71e3c;hp=743ab2bb8fe3ae8bb67f5aa4f92c862932ed7398;hpb=7322f2afedcc2f427e997d1535a503613a83f088;p=freeside.git diff --git a/rt/lib/RT/Crypt/SMIME.pm b/rt/lib/RT/Crypt/SMIME.pm index 743ab2bb8..d6dc92b25 100644 --- a/rt/lib/RT/Crypt/SMIME.pm +++ b/rt/lib/RT/Crypt/SMIME.pm @@ -2,7 +2,7 @@ # # COPYRIGHT: # -# This software is Copyright (c) 1996-2016 Best Practical Solutions, LLC +# This software is Copyright (c) 1996-2019 Best Practical Solutions, LLC # # # (Except where explicitly superseded by other copyright notices) @@ -184,6 +184,14 @@ sub Probe { \$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.".