source: creddy/keyid.c @ 9ac7fb4

abac0-leakabac0-meimei-idmei-rt0-nmei_rt0tvf-new-xml
Last change on this file since 9ac7fb4 was 461541a, checked in by Mei <mei@…>, 11 years ago

1) updated original rt0 to remove libstrongswan dependency

a) identity credential being made/accessed with openssl api calls

(X509/EVP_PKEY pem)

b) attribute credential being made/access via xmlsec1 (custom XML

structure)

2) refactored libcreddy into libabac and now one ABAC namespace for

libabac

3) added attribute_rule suboption to creddy's attribute as another way

to insert access rule

4) added some regression tests into example directory
5) updated some docs.

  • Property mode set to 100644
File size: 352 bytes
Line 
1
2/* keyid.c */
3#include <err.h>
4
5#include <abac.h>
6#include "creddy_common.h"
7
8void 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.