1AUDIT_ENCODE_VALUE(3) Linux Audit API AUDIT_ENCODE_VALUE(3)
2
3
4
6 audit_encode_value - encode input string to ASCII code string
7
9 #include <libaudit.h>
10
11 char *audit_encode_value(char *final, const char *buf, unsigned int size);
12
14 audit_encode_value() encodes a string given by buf to a ASCII code
15 string. final is the hexadecimal string encoded to ASCII code. size
16 is the length of the string given by buf.
17
18 e.g.: "foo bar" is encoded as "666F6F20626172". "\1\2\3\4" is encoded
19 as "01020304".
20
21
23 Returns a encoded string same as final or, NULL on error.
24
25
27 audit_encode_nv_string(3), audit_value_needs_encoding(3).
28
29
31 Steve Grubb
32
33
34
35
36Red Hat May 2021 AUDIT_ENCODE_VALUE(3)