k5-int-pkinit.h revision 159d09a20817016f09b3ea28d1bdada4a336bb91
/*
* COPYRIGHT (C) 2006
* THE REGENTS OF THE UNIVERSITY OF MICHIGAN
* ALL RIGHTS RESERVED
*
* Permission is granted to use, copy, create derivative works
* and redistribute this software and such derivative works
* for any purpose, so long as the name of The University of
* Michigan is not used in any advertising or publicity
* pertaining to the use of distribution of this software
* without specific, written prior authorization. If the
* above copyright notice or any other identification of the
* University of Michigan is included in any copy of any
* portion of this software, then the disclaimer below must
* also be included.
*
* THIS SOFTWARE IS PROVIDED AS IS, WITHOUT REPRESENTATION
* FROM THE UNIVERSITY OF MICHIGAN AS TO ITS FITNESS FOR ANY
* PURPOSE, AND WITHOUT WARRANTY BY THE UNIVERSITY OF
* MICHIGAN OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING
* WITHOUT LIMITATION THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
* REGENTS OF THE UNIVERSITY OF MICHIGAN SHALL NOT BE LIABLE
* FOR ANY DAMAGES, INCLUDING SPECIAL, INDIRECT, INCIDENTAL, OR
* CONSEQUENTIAL DAMAGES, WITH RESPECT TO ANY CLAIM ARISING
* OUT OF OR IN CONNECTION WITH THE USE OF THE SOFTWARE, EVEN
* IF IT HAS BEEN OR IS HEREAFTER ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGES.
*/
#ifndef _KRB5_INT_PKINIT_H
#define _KRB5_INT_PKINIT_H
/*
* pkinit structures
*/
/* PKAuthenticator */
typedef struct _krb5_pk_authenticator {
/* PKAuthenticator draft9 */
typedef struct _krb5_pk_authenticator_draft9 {
/* AlgorithmIdentifier */
typedef struct _krb5_algorithm_identifier {
/* SubjectPublicKeyInfo */
typedef struct _krb5_subject_pk_info {
/* AuthPack */
typedef struct _krb5_auth_pack {
/* AuthPack draft9 */
typedef struct _krb5_auth_pack_draft9 {
/* ExternalPrincipalIdentifier */
typedef struct _krb5_external_principal_identifier {
/* TrustedCas */
typedef struct _krb5_trusted_ca {
enum {
} choice;
union {
} u;
/* typed data */
typedef struct _krb5_typed_data {
unsigned int length;
/* PA-PK-AS-REQ (Draft 9 -- PA TYPE 14) */
typedef struct _krb5_pa_pk_as_req_draft9 {
/* PA-PK-AS-REQ (rfc4556 -- PA TYPE 16) */
typedef struct _krb5_pa_pk_as_req {
/* DHRepInfo */
typedef struct _krb5_dh_rep_info {
/* KDCDHKeyInfo */
typedef struct _krb5_kdc_dh_key_info {
/* KDCDHKeyInfo draft9*/
typedef struct _krb5_kdc_dh_key_info_draft9 {
/* ReplyKeyPack */
typedef struct _krb5_reply_key_pack {
/* ReplyKeyPack */
typedef struct _krb5_reply_key_pack_draft9 {
/* PA-PK-AS-REP (Draft 9 -- PA TYPE 15) */
typedef struct _krb5_pa_pk_as_rep_draft9 {
enum {
} choice;
union {
} u;
/* PA-PK-AS-REP (rfc4556 -- PA TYPE 17) */
typedef struct _krb5_pa_pk_as_rep {
enum {
} choice;
union {
} u;
/*
* Begin "asn1.h"
*/
/*************************************************************************
* Prototypes for pkinit asn.1 encode routines
*************************************************************************/
/*************************************************************************
* Prototypes for pkinit asn.1 decode routines
*************************************************************************/
(const krb5_data *, krb5_pa_pk_as_req **);
(const krb5_data *, krb5_pa_pk_as_req_draft9 **);
(const krb5_data *, krb5_pa_pk_as_rep **);
(const krb5_data *, krb5_pa_pk_as_rep_draft9 **);
(const krb5_data *, krb5_auth_pack **);
(const krb5_data *, krb5_auth_pack_draft9 **);
(const krb5_data *, krb5_kdc_dh_key_info **);
(const krb5_data *, krb5_principal_data **);
(const krb5_data *, krb5_reply_key_pack **);
(const krb5_data *, krb5_reply_key_pack_draft9 **);
(const krb5_data *, krb5_typed_data ***);
(const krb5_data *, krb5_external_principal_identifier ***);
(const krb5_data *, krb5_algorithm_identifier ***);
#endif /* _KRB5_INT_PKINIT_H */