source: creddy/keyid.c @ 8200a9c

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
RevLine 
[04f5da1]1
[461541a]2/* keyid.c */
3#include <err.h>
4
[4721618]5#include "libabac_common.h"
[04f5da1]6#include "creddy_common.h"
[fd0febd]7
8void keyid_main(options_t *opts) {
9    if (opts->cert == NULL)
10        usage(opts);
11
[461541a]12    abac_id_t *id = abac_id_from_file(opts->cert);
[3131b19]13    if (id == NULL)
14        errx(1, "Couldn't load ID cert from %s", opts->cert);
[fd0febd]15
[461541a]16    puts(abac_id_keyid(id));
[fd0febd]17
[461541a]18    abac_id_free(id);
[fd0febd]19}
Note: See TracBrowser for help on using the repository browser.