audit_value_needs_encoding - Man Page

check a string to see if it needs encoding

Synopsis

#include <libaudit.h>

int audit_value_needs_encoding(const char *str, unsigned int size);

Description

audit_value_needs_encoding() checks a string to see if it needs encoding. Specifically, this function checks if the string contains a space, a double-quote, or a control character. str is the string to check if encoding is needed. size is the length of str.

Return Value

The return value if encoding is needed is 1. If not needed is 0.

See Also

audit_encode_nv_string(3).

Author

Steve Grubb

Referenced By

audit_encode_value(3).

Apr 2021 Red Hat Linux Audit API