X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Flib%2FRT%2FCrypt%2FSMIME.pm;h=d6dc92b25cb4f37f8a32efd806eb6683697cc630;hb=44dd00a3ff974a17999e86e64488e996edc71e3c;hp=a676d8bffe336718ae35eb20b95e2cfffdc991c8;hpb=9aee669886202be7035e6c6049fc71bc99dd3013;p=freeside.git diff --git a/rt/lib/RT/Crypt/SMIME.pm b/rt/lib/RT/Crypt/SMIME.pm index a676d8bff..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-2015 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.".