Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/crypto/krb5/src/plugins/audit/kdc_j_encode.h
34878 views
1
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2
/* plugins/audit/kdc_j_encode.h - Declarations for KDC audit json encoders */
3
/*
4
* Copyright 2013 by the Massachusetts Institute of Technology.
5
*
6
* Redistribution and use in source and binary forms, with or without
7
* modification, are permitted provided that the following conditions
8
* are met:
9
*
10
* * Redistributions of source code must retain the above copyright
11
* notice, this list of conditions and the following disclaimer.
12
*
13
* * Redistributions in binary form must reproduce the above copyright
14
* notice, this list of conditions and the following disclaimer in
15
* the documentation and/or other materials provided with the
16
* distribution.
17
*
18
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
21
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
22
* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
23
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
24
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25
* 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 ADVISED
29
* OF THE POSSIBILITY OF SUCH DAMAGE.
30
*/
31
32
#ifndef KRB5_KDC_J_ENCODE_H_INCLUDED
33
#define KRB5_KDC_J_ENCODE_H_INCLUDED
34
35
#include <krb5/audit_plugin.h>
36
37
/* Maximum length of the name of preauth type. */
38
#define MAX_PATYPE_NAME_LEN 32
39
40
krb5_error_code
41
kau_j_kdc_stop(const krb5_boolean ev_success, char **jout);
42
43
krb5_error_code
44
kau_j_kdc_start(const krb5_boolean ev_success, char **jout);
45
46
krb5_error_code
47
kau_j_as_req(const krb5_boolean ev_success, krb5_audit_state *state,
48
char **jout);
49
50
krb5_error_code
51
kau_j_tgs_req(const krb5_boolean ev_success, krb5_audit_state *state,
52
char **jout);
53
54
krb5_error_code
55
kau_j_tgs_s4u2self(const krb5_boolean ev_success, krb5_audit_state *state,
56
char **jout);
57
58
krb5_error_code
59
kau_j_tgs_s4u2proxy(const krb5_boolean ev_success, krb5_audit_state *state,
60
char **jout);
61
62
krb5_error_code
63
kau_j_tgs_u2u(const krb5_boolean ev_success, krb5_audit_state *state,
64
char **jout);
65
66
#endif /* KRB5_KDC_J_ENCODE_H_INCLUDED */
67
68