mei_rt2mei_rt2_fix_1
Last change
on this file since d037f54 was
d037f54,
checked in by Mei <mei@…>, 12 years ago
|
1) able to programmatially build structure, bake attribute credential
write it out to a .der file and use prover to bring it back and
process just like other .der files.
-- tested with rt1 like policy without constraint.
2) changed abac_term structure alittle to ready it for 2 pass code
gen.
|
-
Property mode set to
100644
|
File size:
985 bytes
|
Line | |
---|
1 | #ifndef __ABAC_I_H__ |
---|
2 | #define __ABAC_I_H__ |
---|
3 | |
---|
4 | #include <credentials/certificates/x509.h> |
---|
5 | #include <credentials/certificates/certificate.h> |
---|
6 | #include <credentials/certificates/ac.h> |
---|
7 | #include <credentials/keys/private_key.h> |
---|
8 | |
---|
9 | #include "abac.h" |
---|
10 | |
---|
11 | certificate_t *abac_attribute_issuer_cert(abac_attribute_t *ptr); |
---|
12 | certificate_t *abac_attribute_cert(abac_attribute_t *ptr); |
---|
13 | abac_attribute_t *abac_attribute_new(abac_id_t *issuer, certificate_t *cert, certificate_t *issuer_cert); |
---|
14 | abac_id_t *abac_id_new(int idtype,char *keyid, char *cn, certificate_t *cert); |
---|
15 | private_key_t *abac_id_privkey(abac_id_t *id); |
---|
16 | certificate_t *abac_id_cert(abac_id_t *id); |
---|
17 | abac_id_t *abac_id_keyid_new(char *keyid, char *cn, certificate_t *cert); |
---|
18 | |
---|
19 | char *abac_termtype_string(int i); |
---|
20 | char *abac_idtype_string(int); |
---|
21 | |
---|
22 | extern int ABAC_IN_PROLOG; |
---|
23 | extern char *prologIt(char*); |
---|
24 | |
---|
25 | #define PROLOG(BODY) { \ |
---|
26 | ABAC_IN_PROLOG++; \ |
---|
27 | { BODY } \ |
---|
28 | ABAC_IN_PROLOG--; \ |
---|
29 | } |
---|
30 | |
---|
31 | |
---|
32 | #endif /* __ABAC_I_H__ */ |
---|
33 | |
---|
Note: See
TracBrowser
for help on using the repository browser.