source:
creddy/keyid.c
@
aa33ad9
Last change on this file since aa33ad9 was 3131b19, checked in by , 14 years ago | |
---|---|
|
|
File size: 325 bytes |
Rev | Line | |
---|---|---|
[fd0febd] | 1 | #include "creddy.h" |
[3131b19] | 2 | #include "libcreddy.h" |
[fd0febd] | 3 | |
4 | void keyid_main(options_t *opts) { | |
5 | if (opts->cert == NULL) | |
6 | usage(opts); | |
7 | ||
[3131b19] | 8 | creddy_id_t *id = creddy_id_from_file(opts->cert); |
9 | if (id == NULL) | |
10 | errx(1, "Couldn't load ID cert from %s", opts->cert); | |
[fd0febd] | 11 | |
[3131b19] | 12 | puts(creddy_id_keyid(id)); |
[fd0febd] | 13 | |
[3131b19] | 14 | creddy_id_free(id); |
[fd0febd] | 15 | } |
Note: See TracBrowser
for help on using the repository browser.