Path: blob/main/crypto/krb5/src/plugins/audit/kdc_j_encode.h
34878 views
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */1/* plugins/audit/kdc_j_encode.h - Declarations for KDC audit json encoders */2/*3* Copyright 2013 by the Massachusetts Institute of Technology.4*5* Redistribution and use in source and binary forms, with or without6* modification, are permitted provided that the following conditions7* are met:8*9* * Redistributions of source code must retain the above copyright10* notice, this list of conditions and the following disclaimer.11*12* * Redistributions in binary form must reproduce the above copyright13* notice, this list of conditions and the following disclaimer in14* the documentation and/or other materials provided with the15* distribution.16*17* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS18* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT19* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS20* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE21* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,22* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES23* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR24* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)25* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,26* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)27* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED28* OF THE POSSIBILITY OF SUCH DAMAGE.29*/3031#ifndef KRB5_KDC_J_ENCODE_H_INCLUDED32#define KRB5_KDC_J_ENCODE_H_INCLUDED3334#include <krb5/audit_plugin.h>3536/* Maximum length of the name of preauth type. */37#define MAX_PATYPE_NAME_LEN 323839krb5_error_code40kau_j_kdc_stop(const krb5_boolean ev_success, char **jout);4142krb5_error_code43kau_j_kdc_start(const krb5_boolean ev_success, char **jout);4445krb5_error_code46kau_j_as_req(const krb5_boolean ev_success, krb5_audit_state *state,47char **jout);4849krb5_error_code50kau_j_tgs_req(const krb5_boolean ev_success, krb5_audit_state *state,51char **jout);5253krb5_error_code54kau_j_tgs_s4u2self(const krb5_boolean ev_success, krb5_audit_state *state,55char **jout);5657krb5_error_code58kau_j_tgs_s4u2proxy(const krb5_boolean ev_success, krb5_audit_state *state,59char **jout);6061krb5_error_code62kau_j_tgs_u2u(const krb5_boolean ev_success, krb5_audit_state *state,63char **jout);6465#endif /* KRB5_KDC_J_ENCODE_H_INCLUDED */666768