aboutsummaryrefslogtreecommitdiff
path: root/mod/foafssl/views/foaf/foafssl/profile.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/foafssl/views/foaf/foafssl/profile.php')
-rw-r--r--mod/foafssl/views/foaf/foafssl/profile.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/mod/foafssl/views/foaf/foafssl/profile.php b/mod/foafssl/views/foaf/foafssl/profile.php
new file mode 100644
index 000000000..b11708a32
--- /dev/null
+++ b/mod/foafssl/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
+ }
+}
+?>