1hextob(3TSOL) Trusted Extensions Library Functions hextob(3TSOL)
2
3
4
6 hextob, htobsl, htobclear - convert hexadecimal string to binary label
7
9 cc [flag...] file... -ltsol [library...]
10
11
12 #include <tsol/label.h>
13
14 int htobsl(const char *s, m_label_t *label);
15
16
17 int htobclear(const char *s, m_label_t *clearance);
18
19
21 These functions convert hexadecimal string representations of internal
22 label values into binary labels.
23
24
25 The htobsl() function converts into a binary sensitivity label, a hexa‐
26 decimal string of the form:
27
28 0xsensitivity_label_hexadecimal_value
29
30
31
32
33 The htobclear() function converts into a binary clearance, a hexadeci‐
34 mal string of the form:
35
36 0xclearance_hexadecimal_value
37
38
39
41 These functions return non-zero if the conversion was successful, oth‐
42 erwise zero is returned.
43
45 See attributes(5) for descriptions of the following attributes:
46
47
48
49
50 ┌─────────────────────────────┬─────────────────────────────┐
51 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
52 ├─────────────────────────────┼─────────────────────────────┤
53 │Interface Stability │Obsolete │
54 ├─────────────────────────────┼─────────────────────────────┤
55 │MT-Level │MT-Safe │
56 └─────────────────────────────┴─────────────────────────────┘
57
58
59 These functions are obsolete and retained for ease of porting. They
60 might be removed in a future Solaris Trusted Extensions release. Use
61 the str_to_label(3TSOL) function instead.
62
64 libtsol(3LIB), str_to_label(3TSOL), attributes(5), labels(5)
65
67 The functionality described on this manual page is available only if
68 the system is configured with Trusted Extensions.
69
70
71
72SunOS 5.11 20 Jul 2007 hextob(3TSOL)