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