reciprocal verification on notify, poll
This commit is contained in:
parent
b294ff6302
commit
40a06771ff
5 changed files with 41 additions and 6 deletions
|
@ -174,7 +174,15 @@ function dfrn_poll_content(&$a) {
|
|||
|
||||
openssl_private_encrypt($hash,$challenge,$r[0]['prvkey']);
|
||||
$challenge = bin2hex($challenge);
|
||||
echo '<?xml version="1.0" encoding="UTF-8"?><dfrn_poll><status>' .$status . '</status><dfrn_id>' . $_GET['dfrn_id'] . '</dfrn_id>'
|
||||
|
||||
$encrypted_id = '';
|
||||
$id_str = $_GET['dfrn_id'] . '.' . mt_rand(1000,9999);
|
||||
|
||||
openssl_private_encrypt($id_str,$encrypted_id,$r[0]['prvkey']);
|
||||
$encrypted_id = bin2hex($encrypted_id);
|
||||
|
||||
|
||||
echo '<?xml version="1.0" encoding="UTF-8"?><dfrn_poll><status>' .$status . '</status><dfrn_id>' . $encrypted_id . '</dfrn_id>'
|
||||
. '<challenge>' . $challenge . '</challenge></dfrn_poll>' . "\r\n" ;
|
||||
session_write_close();
|
||||
exit;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue