s3:utils: let smbstatus report anonymous signing/encryption explicitly
[samba.git] / source3 / utils / status.h
1 /*
2  * Samba Unix/Linux SMB client library
3  * State struct
4  * Copyright (C) Jule Anger 2022
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 3 of the License, or
9  * (at your option) any 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.  If not, see <http://www.gnu.org/licenses/>.
18  */
19
20 #ifdef HAVE_JANSSON
21 #include <jansson.h>
22 #include "audit_logging.h" /* various JSON helpers */
23 #include "auth/common_auth.h"
24 #endif /* HAVE_JANSSON */
25
26 #ifndef STATUS_H
27 #define STATUS_H
28
29 struct traverse_state {
30         bool json_output;
31         bool first;
32         bool resolve_uids;
33 #ifdef HAVE_JANSSON
34         struct json_object root_json;
35 #endif /* HAVE_JANSSON */
36 };
37
38 enum crypto_degree {
39         CRYPTO_DEGREE_NONE,
40         CRYPTO_DEGREE_PARTIAL,
41         CRYPTO_DEGREE_FULL
42 };
43
44 #endif