blob: b11708a326192b2565d8769b8650873f6a84fb2a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<?php
$user = $vars['user'];
if ($user) {
$options = array('types'=>'object','subtypes'=>'sslkey','owner_guid'=>$user->getGUID());
$userkeys = elgg_get_entities($options);
foreach($userkeys as $key) {
?>
<rsa:RSAPublicKey>
<cert:identity rdf:resource="#me"/>
<rsa:public_exponent cert:decimal="<?php echo $key->exponent; ?>"/>
<rsa:modulus cert:hex="<?php echo $key->modulus; ?>"/>
</rsa:RSAPublicKey>
<?php
}
}
?>
|