diff options
author | root <root@diekershoff.homeunix.net> | 2011-01-03 09:27:13 +0100 |
---|---|---|
committer | root <root@diekershoff.homeunix.net> | 2011-01-03 09:27:13 +0100 |
commit | f3005918aff04fc435d0f526bf235bd95468294c (patch) | |
tree | f334d76dbd89093d8448e13e62f8b094159e576c /mod/register.php | |
parent | 0b4a6f8eaca0d1396e7e944cd4735a573bd1d111 (diff) | |
parent | d92659560b8edd0594b587103b43ad5bd5012639 (diff) | |
download | volse-hubzilla-f3005918aff04fc435d0f526bf235bd95468294c.tar.gz volse-hubzilla-f3005918aff04fc435d0f526bf235bd95468294c.tar.bz2 volse-hubzilla-f3005918aff04fc435d0f526bf235bd95468294c.zip |
Merge branch 'master' of git://github.com/friendika/friendika
Diffstat (limited to 'mod/register.php')
-rw-r--r-- | mod/register.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mod/register.php b/mod/register.php index bd169fbbb..68c7297c9 100644 --- a/mod/register.php +++ b/mod/register.php @@ -123,7 +123,20 @@ function register_post(&$a) { $pkey = openssl_pkey_get_details($res); $pubkey = $pkey["key"]; + /** + * + * Create another keypair for signing/verifying + * salmon protocol messages. We have to use a slightly + * less robust key because this won't be using openssl + * but the phpseclib. Since it is PHP interpreted code + * it is not nearly as efficient, and the larger keys + * will take several minutes each to process. + * + */ + $sres=openssl_pkey_new(array( + 'digest_alg' => 'sha1', + 'private_key_bits' => 512, 'encrypt_key' => false )); // Get private key |