| 1 |
/* |
| 2 |
* proc-sanitize.h - Shared terminal sanitization helpers for proc text |
| 3 |
* Copyright (c) 2026 Steve Grubb |
| 4 |
* All Rights Reserved. |
| 5 |
* |
| 6 |
* This software may be freely redistributed and/or modified under the |
| 7 |
* terms of the GNU General Public License as published by the Free |
| 8 |
* Software Foundation; either version 2, or (at your option) any |
| 9 |
* later version. |
| 10 |
* |
| 11 |
* This program is distributed in the hope that it will be useful, |
| 12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 |
* GNU General Public License for more details. |
| 15 |
* |
| 16 |
* You should have received a copy of the GNU General Public License |
| 17 |
* along with this program; see the file COPYING. If not, write to the |
| 18 |
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor |
| 19 |
* Boston, MA 02110-1335, USA. |
| 20 |
* |
| 21 |
* Authors: |
| 22 |
* Steve Grubb <[email protected]> |
| 23 |
*/ |
| 24 |
|
| 25 |
#ifndef PROC_SANITIZE_H |
| 26 |
#define PROC_SANITIZE_H |
| 27 |
|
| 28 |
char *sanitize_untrusted_field(const char *src); |
| 29 |
int sanitize_untrusted_owned(char **s); |
| 30 |
|
| 31 |
#endif |