Changeset 34565bf


Ignore:
Timestamp:
Jun 17, 2013 5:48:39 PM (6 years ago)
Author:
Ted Faber <faber@…>
Branches:
abac0-leak, abac0-mei, master, tvf-new-xml
Children:
968a3db
Parents:
f520b1e
Message:

INterface additions

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • doc/ABAC.hh

    rafcafea r34565bf  
    119119                return credentials;
    120120            }
     121/***
     122f  void set_nickname(char *key, char *nick)
     123     Set the nickname (value printed) for keyid.  The substitution is made
     124     in Role::short_string(Context) and when bake(Context) is called on a new
     125     attribute.
     126***/
     127        void set_nickname(char *key, char *nick) {
     128            abac_context_set_nickname(m_ctx, key, nick);
     129        }
    121130        private:
    122131            abac_context_t *m_ctx;
     
    568577
    569578/***
     579f  get_output_format(char *fmt)
     580     Get the attribute's output format.  Do not delete the string/
     581***/
     582            char *get_output_format() {
     583                return abac_attribute_get_output_format(m_attr);
     584            }
     585
     586/***
    570587f  void write(FILE *)
    571588     write an attribute certificate in XML to an open file handle
  • doc/API

    rafcafea r34565bf  
    6666     (C:abac_context_credentials)
    6767     (C::abac_context_credentials_free)
     68
     69   void set_nickname(char *key, char *nick)
     70     Set the nickname (value printed) for keyid.  The substitution is made
     71     in Role::short_string(Context) and when bake(Context) is called on a new
     72     attribute.
    6873
    6974ABAC::Role
     
    329334     GENIV1.1.  Default is GENIv1.1.
    330335
     336   get_output_format(char *fmt)
     337     Get the attribute's output format.  Do not delete the string/
     338
    331339   void write(FILE *)
    332340     write an attribute certificate in XML to an open file handle
  • libabac/abac.h

    rafcafea r34565bf  
    5252void abac_context_credentials_free(abac_credential_t **credentials);
    5353/* Used to pretty print */
     54int abac_context_set_nickname(abac_context_t *ctxt, char *key, char*nick);
    5455char *abac_context_expand_key(abac_context_t *ctxt, char *s );
    5556char *abac_context_expand_nickname(abac_context_t *ctxt, char *s );
     
    243244abac_id_t *abac_attribute_issuer_id(abac_attribute_t *ptr);
    244245
    245 // get the attribute output format (internal)
     246// get the attribute output format
    246247char *abac_attribute_get_output_format(abac_attribute_t *);
    247248
  • libabac/abac.hh

    rafcafea r34565bf  
    6262                return credentials;
    6363            }
     64        void set_nickname(char *key, char *nick) {
     65            abac_context_set_nickname(m_ctx, key, nick);
     66        }
    6467        private:
    6568            abac_context_t *m_ctx;
     
    247250            }
    248251
     252            char *get_output_format() {
     253                return abac_attribute_get_output_format(m_attr);
     254            }
     255
    249256            void write(FILE *out) {
    250257                int ret = abac_attribute_write(m_attr, out);
Note: See TracChangeset for help on using the changeset viewer.