xref: /freebsd/crypto/krb5/src/plugins/audit/j_dict.h (revision f1c4c3daccbaf3820f0e2224de53df12fc952fcc)
1 /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2 /* j_dict.h - Dictionary file for json implementation of audit system */
3 /*
4  * Copyright (C) 2013 by the Massachusetts Institute of Technology.
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions
9  * are met:
10  *
11  * * Redistributions of source code must retain the above copyright
12  *   notice, this list of conditions and the following disclaimer.
13  *
14  * * Redistributions in binary form must reproduce the above copyright
15  *   notice, this list of conditions and the following disclaimer in
16  *   the documentation and/or other materials provided with the
17  *   distribution.
18  *
19  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
22  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
23  * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
24  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
25  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
28  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
30  * OF THE POSSIBILITY OF SUCH DAMAGE.
31  */
32 
33 #ifndef KRB5_J_DICT_H_INCLUDED
34 #define KRB5_J_DICT_H_INCLUDED
35 
36 /* Dictionary for KDC events */
37 #define AU_STAGE              "stage"
38 #define AU_EVENT_NAME         "event_name"
39 #define AU_EVENT_STATUS       "event_success"
40 #define AU_TKT_IN_ID          "tkt_in_id"
41 #define AU_TKT_OUT_ID         "tkt_out_id"
42 #define AU_REQ_ID             "req_id"
43 #define AU_KDC_STATUS         "kdc_status"
44 #define AU_FROMPORT           "fromport"
45 #define AU_FROMADDR           "fromaddr"
46 #define AU_TYPE               "type" /* used by fromaddr */
47 #define AU_IP                 "ip" /* used by fromaddr */
48 #define AU_PATH               "path" /* used by fromaddr */
49 #define AU_SESS_ETYPE         "sess_etype"
50 #define AU_SRV_ETYPE          "srv_etype"
51 #define AU_REP_ETYPE          "rep_etype"
52 #define AU_REALM              "realm"
53 #define AU_LENGTH             "length"
54 #define AU_COMPONENTS         "components"
55 #define AU_TKT_RENEWED        "tkt_renewed"
56 #define AU_TKT_VALIDATED      "tkt_validated"
57 /* referrals */
58 #define AU_CREF_REALM         "clreferral_realm"
59 /* request */
60 #define AU_REQ_KDC_OPTIONS    "req.kdc_options"
61 #define AU_REQ_SERVER         "req.server"
62 #define AU_REQ_CLIENT         "req.client"
63 #define AU_REQ_AVAIL_ETYPES   "req.avail_etypes"
64 #define AU_EVIDENCE_TKT       "evidence_tkt"
65 #define AU_REQ_ADDRESSES      "req.addresses"
66 #define AU_REQ_TKT_START      "req.tkt_start"
67 #define AU_REQ_TKT_END        "req.tkt_end"
68 #define AU_REQ_TKT_RENEW_TILL "req.tkt_renew_till"
69 #define AU_REQ_PA_TYPE        "req.pa_type"
70 /* reply */
71 #define AU_REP_TICKET         "rep.ticket"
72 #define AU_REP_PA_TYPE        "rep.pa_type"
73 /* ticket */
74 #define AU_SNAME              "sname"
75 #define AU_CNAME              "cname"
76 #define AU_FLAGS              "flags"
77 #define AU_START              "start"
78 #define AU_END                "end"
79 #define AU_RENEW_TILL         "renew_till"
80 #define AU_AUTHTIME           "authtime"
81 #define AU_TR_CONTENTS        "tr_contents"
82 #define AU_CADDRS             "caddrs"
83 /* S4U and U2U */
84 #define AU_VIOLATION       "violation"   /* policy or protocol restrictions */
85 #define AU_REQ_S4U2S_USER  "s4u2self_user"
86 #define AU_REQ_S4U2P_USER  "s4u2proxy_user"
87 #define AU_REQ_U2U_USER    "u2u_user"
88 #define AU_EVIDENCE_TKT_ID "evidence_tkt_id" /* 2nd ticket in s4u2proxy req */
89 #endif /* KRB5_J_DICT_H_INCLUDED */
90