Path: blob/main/crypto/krb5/src/plugins/preauth/pkinit/pkinit_accessor.h
34923 views
/*1* COPYRIGHT (C) 2006,20072* THE REGENTS OF THE UNIVERSITY OF MICHIGAN3* ALL RIGHTS RESERVED4*5* Permission is granted to use, copy, create derivative works6* and redistribute this software and such derivative works7* for any purpose, so long as the name of The University of8* Michigan is not used in any advertising or publicity9* pertaining to the use of distribution of this software10* without specific, written prior authorization. If the11* above copyright notice or any other identification of the12* University of Michigan is included in any copy of any13* portion of this software, then the disclaimer below must14* also be included.15*16* THIS SOFTWARE IS PROVIDED AS IS, WITHOUT REPRESENTATION17* FROM THE UNIVERSITY OF MICHIGAN AS TO ITS FITNESS FOR ANY18* PURPOSE, AND WITHOUT WARRANTY BY THE UNIVERSITY OF19* MICHIGAN OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING20* WITHOUT LIMITATION THE IMPLIED WARRANTIES OF21* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE22* REGENTS OF THE UNIVERSITY OF MICHIGAN SHALL NOT BE LIABLE23* FOR ANY DAMAGES, INCLUDING SPECIAL, INDIRECT, INCIDENTAL, OR24* CONSEQUENTIAL DAMAGES, WITH RESPECT TO ANY CLAIM ARISING25* OUT OF OR IN CONNECTION WITH THE USE OF THE SOFTWARE, EVEN26* IF IT HAS BEEN OR IS HEREAFTER ADVISED OF THE POSSIBILITY OF27* SUCH DAMAGES.28*/2930#ifndef _PKINIT_ACCESSOR_H31#define _PKINIT_ACCESSOR_H3233/*34* Function prototypes35*/36krb5_error_code pkinit_accessor_init(void);3738#define DEF_EXT_FUNC_PTRS(type) \39extern krb5_error_code (*k5int_encode_##type)(const type *, krb5_data **); \40extern krb5_error_code (*k5int_decode_##type)(const krb5_data *, type **)4142#define DEF_EXT_FUNC_PTRS_ARRAY(type) \43extern krb5_error_code (*k5int_encode_##type)(const type **, krb5_data **); \44extern krb5_error_code (*k5int_decode_##type)(const krb5_data *, type ***)4546DEF_EXT_FUNC_PTRS(krb5_auth_pack);47DEF_EXT_FUNC_PTRS(krb5_kdc_dh_key_info);48DEF_EXT_FUNC_PTRS(krb5_pa_pk_as_rep);49DEF_EXT_FUNC_PTRS(krb5_pa_pk_as_req);50DEF_EXT_FUNC_PTRS(krb5_reply_key_pack);5152/* special cases... */53extern krb5_error_code (*k5int_decode_krb5_principal_name)54(const krb5_data *, krb5_principal_data **);5556extern krb5_error_code (*k5int_encode_krb5_td_dh_parameters)57(krb5_algorithm_identifier *const *, krb5_data **code);58extern krb5_error_code (*k5int_decode_krb5_td_dh_parameters)59(const krb5_data *, krb5_algorithm_identifier ***);6061extern krb5_error_code (*k5int_encode_krb5_td_trusted_certifiers)62(krb5_external_principal_identifier *const *, krb5_data **code);63extern krb5_error_code (*k5int_decode_krb5_td_trusted_certifiers)64(const krb5_data *, krb5_external_principal_identifier ***);6566extern krb5_error_code (*k5int_encode_krb5_kdc_req_body)67(const krb5_kdc_req *rep, krb5_data **code);68extern void (KRB5_CALLCONV *k5int_krb5_free_kdc_req)69(krb5_context, krb5_kdc_req * );70extern void (*k5int_set_prompt_types)71(krb5_context, krb5_prompt_type *);7273#endif /* _PKINIT_ACCESSOR_H */747576