| 1 |
.TH "AUDIT_ENCODE_VALUE" "3" "May 2021" "Red Hat" "Linux Audit API" |
| 2 |
.SH NAME |
| 3 |
audit_encode_value \- encode input string to ASCII code string |
| 4 |
.SH "SYNOPSIS" |
| 5 |
.nf |
| 6 |
.B #include <libaudit.h> |
| 7 |
.PP |
| 8 |
.BI "char *audit_encode_value(char *" final ", const char *" buf ", unsigned int " size "); |
| 9 |
.fi |
| 10 |
.SH "DESCRIPTION" |
| 11 |
.BR audit_encode_value () |
| 12 |
encodes a string given by |
| 13 |
.I buf |
| 14 |
to a ASCII code string. |
| 15 |
.I final |
| 16 |
is the hexadecimal string encoded to ASCII code. |
| 17 |
.I size |
| 18 |
is the length of the string given by |
| 19 |
.IR buf . |
| 20 |
|
| 21 |
e.g.: "foo bar" is encoded as "666F6F20626172". "\\1\\2\\3\\4" is encoded as "01020304". |
| 22 |
|
| 23 |
.SH "RETURN VALUE" |
| 24 |
|
| 25 |
Returns a encoded string same as |
| 26 |
.I final |
| 27 |
or, NULL on error. |
| 28 |
|
| 29 |
.SH "SEE ALSO" |
| 30 |
|
| 31 |
.BR audit_encode_nv_string (3), |
| 32 |
.BR audit_value_needs_encoding (3). |
| 33 |
|
| 34 |
.SH AUTHOR |
| 35 |
Steve Grubb |
| 36 |
|