Path: blob/main/crypto/krb5/src/ccapi/common/cci_cred_union.h
39536 views
/* ccapi/common/cci_cred_union.h */1/*2* Copyright 2006 Massachusetts Institute of Technology.3* All Rights Reserved.4*5* Export of this software from the United States of America may6* require a specific license from the United States Government.7* It is the responsibility of any person or organization contemplating8* export to obtain such a license before exporting.9*10* WITHIN THAT CONSTRAINT, permission to use, copy, modify, and11* distribute this software and its documentation for any purpose and12* without fee is hereby granted, provided that the above copyright13* notice appear in all copies and that both that copyright notice and14* this permission notice appear in supporting documentation, and that15* the name of M.I.T. not be used in advertising or publicity pertaining16* to distribution of the software without specific, written prior17* permission. Furthermore if you modify this software you must label18* your software as modified software and not distribute it in such a19* fashion that it might be confused with the original M.I.T. software.20* M.I.T. makes no representations about the suitability of21* this software for any purpose. It is provided "as is" without express22* or implied warranty.23*/2425#ifndef CCI_CRED_UNION_H26#define CCI_CRED_UNION_H2728#include "cci_types.h"29#include <CredentialsCache2.h>3031cc_uint32 cci_credentials_union_release (cc_credentials_union *io_credentials);3233cc_uint32 cci_credentials_union_read (cc_credentials_union **out_credentials_union,34k5_ipc_stream io_stream);3536cc_uint32 cci_credentials_union_write (const cc_credentials_union *in_credentials_union,37k5_ipc_stream io_stream);3839cc_uint32 cci_cred_union_release (cred_union *io_cred_union);4041cc_uint32 cci_credentials_union_to_cred_union (const cc_credentials_union *in_credentials_union,42cred_union **out_cred_union);4344cc_uint32 cci_cred_union_to_credentials_union (const cred_union *in_cred_union,45cc_credentials_union **out_credentials_union);4647cc_uint32 cci_cred_union_compare_to_credentials_union (const cred_union *in_cred_union_compat,48const cc_credentials_union *in_credentials_union,49cc_uint32 *out_equal);5051#endif /* CCI_CRED_UNION_H */525354