X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FPublicRSAKey.php;h=810a9210cdbe72f9399590c6a851864065d3bc53;hb=53aba7b37e019d4093d0985e394d393ae77ef0df;hp=d159255eee22d2b009704d3a1af540c61ddda2ce;hpb=3bae52074a644b0ade3808bed9fc1268e1baa4e3;p=friendica.git diff --git a/src/Module/PublicRSAKey.php b/src/Module/PublicRSAKey.php index d159255eee..810a9210cd 100644 --- a/src/Module/PublicRSAKey.php +++ b/src/Module/PublicRSAKey.php @@ -1,6 +1,6 @@ parameters['nick'])) { throw new BadRequestException(); @@ -46,11 +45,10 @@ class PublicRSAKey extends BaseModule throw new BadRequestException(); } - Crypto::pemToMe($user['spubkey'], $modulus, $exponent); - - header('Content-type: application/magic-public-key'); - echo 'RSA' . '.' . Strings::base64UrlEncode($modulus, true) . '.' . Strings::base64UrlEncode($exponent, true); - - exit(); + System::httpExit( + Salmon::salmonKey($user['spubkey']), + Response::TYPE_BLANK, + 'application/magic-public-key' + ); } }