Last change
on this file since 8200a9c was
4721618,
checked in by Mei <mei@…>, 11 years ago
|
1) tested out python and perl test scripts along with
abac_chunk_t calls in libabac's abac.hh
|
-
Property mode set to
100644
|
File size:
362 bytes
|
Line | |
---|
1 | |
---|
2 | /* keyid.c */ |
---|
3 | #include <err.h> |
---|
4 | |
---|
5 | #include "libabac_common.h" |
---|
6 | #include "creddy_common.h" |
---|
7 | |
---|
8 | void keyid_main(options_t *opts) { |
---|
9 | if (opts->cert == NULL) |
---|
10 | usage(opts); |
---|
11 | |
---|
12 | abac_id_t *id = abac_id_from_file(opts->cert); |
---|
13 | if (id == NULL) |
---|
14 | errx(1, "Couldn't load ID cert from %s", opts->cert); |
---|
15 | |
---|
16 | puts(abac_id_keyid(id)); |
---|
17 | |
---|
18 | abac_id_free(id); |
---|
19 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.