source: swig/abac.i @ 461541a

abac0-leakabac0-meimei-idmei-rt0-nmei_rt0tvf-new-xml
Last change on this file since 461541a 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: 963 bytes
Line 
1%module ABAC
2
3// Accessing these overloaded functions confuses perl and python.
4// We ignore the string version and rename the char * version to
5// member_name.  The bare name takes an open file.
6
7%ignore ABAC::ID::write_cert(const std::string&);
8%rename(write_cert_name) ABAC::ID::write_cert(const char *);
9
10%ignore ABAC::ID::write_privkey(const std::string&);
11%rename(write_privkey_name) ABAC::ID::write_privkey(const char *);
12
13%ignore ABAC::Attribute::write(const std::string&);
14%rename(write_name) ABAC::Attribute::write(const char *);
15
16%rename(ID_chunk) ABAC::ID::ID(abac_chunk_t);
17
18%{
19#include "abac.hh"
20using namespace ABAC;
21%}
22
23%include "language.i"
24
25%ignore std::vector<ABAC::Credential>::vector(size_type);
26%ignore std::vector<ABAC::Credential>::resize(size_type);
27%ignore std::vector<ABAC::Credential>::pop();
28%include "std_vector.i"
29
30namespace std {
31    %template(CredentialVector) vector<ABAC::Credential>;
32};
33
34%include "abac.h"
35%include "abac.hh"
Note: See TracBrowser for help on using the repository browser.