diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-15 15:09:48 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-15 15:09:48 -0300 |
commit | 4fb376687dc1546f51e637cae1478582309f85f0 (patch) | |
tree | 8dd99abb6a221fd10bd86b00d5dd431ebcba4e0a /views/foaf/foafssl | |
download | elgg-4fb376687dc1546f51e637cae1478582309f85f0.tar.gz elgg-4fb376687dc1546f51e637cae1478582309f85f0.tar.bz2 |
Squashed 'mod/foafssl/' content from commit 3c1da1e
git-subtree-dir: mod/foafssl
git-subtree-split: 3c1da1eaff8f61049b45ad99528f8f4e09ac7e62
Diffstat (limited to 'views/foaf/foafssl')
-rw-r--r-- | views/foaf/foafssl/profile.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/views/foaf/foafssl/profile.php b/views/foaf/foafssl/profile.php new file mode 100644 index 000000000..b11708a32 --- /dev/null +++ b/views/foaf/foafssl/profile.php @@ -0,0 +1,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 + } +} +?> |