abac0-leakabac0-meicompt_changesgec13mei-idmei-rt0-nmei_rt0mei_rt2mei_rt2_fix_1meiyap-rt1meiyap1rt2tvf-new-xml
Last change
on this file since ff81abb was
04f5da1,
checked in by Mike Ryan <mikeryan@…>, 14 years ago
|
-lcreddy extracted
|
-
Property mode set to
100644
|
File size:
452 bytes
|
Rev | Line | |
---|
[04f5da1] | 1 | #include "creddy_common.h" |
---|
[9410b51] | 2 | |
---|
| 3 | #include <credentials/certificates/ac.h> |
---|
| 4 | |
---|
| 5 | void roles_main(options_t *opts) { |
---|
| 6 | if (opts->cert == NULL) |
---|
| 7 | usage(opts); |
---|
| 8 | |
---|
[784a398] | 9 | certificate_t *cert = attr_cert_from_file(opts->cert); |
---|
[9410b51] | 10 | |
---|
| 11 | ac_t *ac = (ac_t *)cert; |
---|
| 12 | ietf_attributes_t *attr = ac->get_groups(ac); |
---|
| 13 | if (attr == NULL) |
---|
| 14 | errx(1, "Couldn't get attributes from cert"); |
---|
| 15 | |
---|
| 16 | puts(attr->get_string(attr)); |
---|
| 17 | |
---|
| 18 | DESTROY_IF(attr); |
---|
| 19 | DESTROY_IF(cert); |
---|
| 20 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.