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