aboutsummaryrefslogtreecommitdiffstats
path: root/mod/dfrn_confirm.php
diff options
context:
space:
mode:
authorMichael Vogel <icarus@dabo.de>2012-05-25 16:19:10 +0200
committerMichael Vogel <icarus@dabo.de>2012-05-25 16:19:10 +0200
commita71e3134bf7250b60cafd1e51098eea70c3459de (patch)
tree456f59d30e5f4b8d22f4bfdac0c55e7323cd0427 /mod/dfrn_confirm.php
parent8c80fe0bf51fa472ddf9bf225490e47ea1bf4a7f (diff)
parentd1345e505406b1a1cdc3fc26a1734916c8abc89d (diff)
downloadvolse-hubzilla-a71e3134bf7250b60cafd1e51098eea70c3459de.tar.gz
volse-hubzilla-a71e3134bf7250b60cafd1e51098eea70c3459de.tar.bz2
volse-hubzilla-a71e3134bf7250b60cafd1e51098eea70c3459de.zip
Merge remote branch 'upstream/master'
Diffstat (limited to 'mod/dfrn_confirm.php')
-rw-r--r--mod/dfrn_confirm.php15
1 files changed, 4 insertions, 11 deletions
diff --git a/mod/dfrn_confirm.php b/mod/dfrn_confirm.php
index 227d72cbf..093993bbc 100644
--- a/mod/dfrn_confirm.php
+++ b/mod/dfrn_confirm.php
@@ -144,19 +144,12 @@ function dfrn_confirm_post(&$a,$handsfree = null) {
* worried about key leakage than anybody cracking it.
*
*/
+ require_once('include/crypto.php');
- $res = openssl_pkey_new(array(
- 'digest_alg' => 'sha1',
- 'private_key_bits' => 4096,
- 'encrypt_key' => false )
- );
-
- $private_key = '';
-
- openssl_pkey_export($res, $private_key);
+ $res = new_keypair(1024);
- $pubkey = openssl_pkey_get_details($res);
- $public_key = $pubkey["key"];
+ $private_key = $res['prvkey'];
+ $public_key = $res['pubkey'];
// Save the private key. Send them the public key.