Skip to content
Browse files

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

…code
  • Loading branch information...
1 parent 28883e9 commit 6b27edcc47e482fc4265be0e41d7d5a6d4bd1cf9 @mudrd8mz mudrd8mz committed with stronk7 Aug 28, 2011
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';
}

0 comments on commit 6b27edc

Please sign in to comment.
Something went wrong with that request. Please try again.