WARNING - This is a TSIG draft specification, currently under review.
Name
t6set_attr_domain, t6get_attr_domain, t6domainbyaddr - TSIX(re) 1.1 interfaces
for setting and retrieving the Domain of Translation used in converting
security attributes to and from external representation.
Synopsis
#include
char *t6domainbyaddr (
t6attr_id_t id, struct sockaddr *remote_addr, struct
sockaddr *local_addr)
int t6set_attr_domain (
t6attr_id_t id, t6attr_t *attr, char
*domain_name)
char *t6get_attr_domain (
t6attr_id_t id, t6attr_t *attr)
The t6domainbyaddr function returns the name of the preferred
Domain of
Translation (DOT) to be used when communicating with the
host and port
identified by remote_addr. The local_addr may be used as an additional
local host and port qualifier or it may be NULL. For hosts which implement
the
satmp(7)
, the DOT may likely be, but does not necessarily have to be, the DOT negotiated
between the local host and the host identified by remote_addr. The interpretation
of the port in the remote and local host addresses is vendor-specific.
The t6set_attr_domain function establishes domain_name as
the DOT for an
attribute. The t6get_attr_domain returns the domain name assigned
to an attribute. The id selects the particular attribute within the attribute
list, specified by attr, to which the functions apply.
The DOT for an attribute determines how the attribute in question
is inter
preted by the
t6export_attr(3n)
and t6import_attr(3n) functions when converting the attribute to and from
external representation. Depending upon the DOT, either sender or receiver
(or both) may perform a mapping between the host internal representation
of the attribute and the system-independent external representation. For
more details on domains of translation please refer to the TSIX(re)
1.1 Security Attribute Token Mapping Protocol ,
satmp(7)
.
The t6domainbyaddr function returns the address of a null-terminated
string
if a DOT is configured for the selected attribute and host combination.
It returns s NULL pointer if no DOT is configured.
The t6set_attr_domain function returns zero(0) if
the DOT is successfully
assigned to the attribute. The function returns -1 if an invalid
DOT name is given or if for any reason the DOT name cannot be assigned.
pointer if no DOT is assigned.
1. Programs using these routines must be compiled with -lt6 .
2. It is recommended that DOT naming conventions follow those described in satmp(7)
libt6(3n) , t6export_attr(3n), t6import_attr(3n), tsix(7), satmp(7)