Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-29148 MNet - improved handling of a verification function return …

…code
  • Loading branch information...
commit 6b27edcc47e482fc4265be0e41d7d5a6d4bd1cf9 1 parent 28883e9
@mudrd8mz mudrd8mz authored stronk7 committed
Showing with 2 additions and 1 deletion.
  1. +2 −1  mnet/xmlrpc/client.php
View
3  mnet/xmlrpc/client.php
@@ -295,7 +295,8 @@ function send($mnet_peer) {
// ok, it's signed, but is it signed with the right certificate ?
// do this *after* we check for an out of date key
- if (!openssl_verify($this->xmlrpcresponse, base64_decode($sig_parser->signature), $mnet_peer->public_key)) {
+ $verified = openssl_verify($this->xmlrpcresponse, base64_decode($sig_parser->signature), $mnet_peer->public_key);
+ if ($verified != 1) {
$this->error[] = 'Invalid signature';
}
Please sign in to comment.
Something went wrong with that request. Please try again.