Commit b12a19d6 authored by Jonathon Duerig's avatar Jonathon Duerig
Browse files

Revert previous change.

parent dbf6298e
......@@ -375,14 +375,12 @@ sub Sign($$)
print STDERR "No target certificate attached to $self\n";
return -1;
}
my $target_urn = $self->target_uuid();
my $target_cert = $self->target_cert()->cert();
if (!defined($self->owner_cert())) {
print STDERR "No owner certificate attached to $self\n";
return -1;
}
my $owner_urn = $self->owner_uuid();
my $owner_cert = $self->owner_cert()->cert();
# Credential expiration: hard-code to 24 hours from now.
......@@ -400,9 +398,7 @@ sub Sign($$)
" <type>privilege</type>\n".
" <serial>$idx</serial>\n".
" <owner_gid>$owner_cert</owner_gid>\n".
" <owner_urn>$owner_urn</owner_urn>\n".
" <target_gid>$target_cert</target_gid>\n".
" <target_urn>$target_urn</target_urn>\n".
" <uuid>$cred_uuid</uuid>\n".
" <expires>$expiry</expires>\n".
" $cap_xml\n".
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment