1c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org/* krb5_asn.h */ 2c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org/* Written by Vern Staats <staatsvr@asc.hpc.mil> for the OpenSSL project, 3c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** using ocsp/{*.h,*asn*.c} as a starting point 4c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org*/ 5c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org 6c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org/* ==================================================================== 7c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * Copyright (c) 1998-2000 The OpenSSL Project. All rights reserved. 8c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * 9c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * Redistribution and use in source and binary forms, with or without 10c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * modification, are permitted provided that the following conditions 11c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * are met: 12c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * 13c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * 1. Redistributions of source code must retain the above copyright 14c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * notice, this list of conditions and the following disclaimer. 15c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * 16c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * 2. Redistributions in binary form must reproduce the above copyright 17c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * notice, this list of conditions and the following disclaimer in 18c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * the documentation and/or other materials provided with the 19c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * distribution. 20c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * 21c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * 3. All advertising materials mentioning features or use of this 22c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * software must display the following acknowledgment: 23c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * "This product includes software developed by the OpenSSL Project 24c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" 25c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * 26c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to 27c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * endorse or promote products derived from this software without 28c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * prior written permission. For written permission, please contact 29c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * openssl-core@openssl.org. 30c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * 31c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * 5. Products derived from this software may not be called "OpenSSL" 32c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * nor may "OpenSSL" appear in their names without prior written 33c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * permission of the OpenSSL Project. 34c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * 35c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * 6. Redistributions of any form whatsoever must retain the following 36c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * acknowledgment: 37c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * "This product includes software developed by the OpenSSL Project 38c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * for use in the OpenSSL Toolkit (http://www.openssl.org/)" 39c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * 40c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY 41c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 42c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 43c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR 44c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 45c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 46c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 47c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 48c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 49c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 50c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 51c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * OF THE POSSIBILITY OF SUCH DAMAGE. 52c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * ==================================================================== 53c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * 54c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * This product includes cryptographic software written by Eric Young 55c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * (eay@cryptsoft.com). This product includes software written by Tim 56c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * Hudson (tjh@cryptsoft.com). 57c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * 58c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org */ 59c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org 60c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org#ifndef HEADER_KRB5_ASN_H 61c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org#define HEADER_KRB5_ASN_H 62c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org 63c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org/* 64c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org#include <krb5.h> 65c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org*/ 66c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org#include <openssl/safestack.h> 67c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org 68c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org#ifdef __cplusplus 69c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.orgextern "C" { 70c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org#endif 71c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org 72c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org 73c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org/* ASN.1 from Kerberos RFC 1510 74c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org*/ 75c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org 76c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org/* EncryptedData ::= SEQUENCE { 77c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** etype[0] INTEGER, -- EncryptionType 78c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** kvno[1] INTEGER OPTIONAL, 79c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** cipher[2] OCTET STRING -- ciphertext 80c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** } 81c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org*/ 82c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.orgtypedef struct krb5_encdata_st 83c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org { 84c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org ASN1_INTEGER *etype; 85c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org ASN1_INTEGER *kvno; 86c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org ASN1_OCTET_STRING *cipher; 87c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org } KRB5_ENCDATA; 88c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org 89c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.orgDECLARE_STACK_OF(KRB5_ENCDATA) 90c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org 91c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org/* PrincipalName ::= SEQUENCE { 92c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** name-type[0] INTEGER, 93c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** name-string[1] SEQUENCE OF GeneralString 94c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** } 95c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org*/ 96c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.orgtypedef struct krb5_princname_st 97c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org { 98c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org ASN1_INTEGER *nametype; 99c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org STACK_OF(ASN1_GENERALSTRING) *namestring; 100c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org } KRB5_PRINCNAME; 101c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org 102c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.orgDECLARE_STACK_OF(KRB5_PRINCNAME) 103c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org 104c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org 105c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org/* Ticket ::= [APPLICATION 1] SEQUENCE { 106c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** tkt-vno[0] INTEGER, 107c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** realm[1] Realm, 108c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** sname[2] PrincipalName, 109c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** enc-part[3] EncryptedData 110c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** } 111c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org*/ 112c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.orgtypedef struct krb5_tktbody_st 113c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org { 114c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org ASN1_INTEGER *tktvno; 115c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org ASN1_GENERALSTRING *realm; 116c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org KRB5_PRINCNAME *sname; 117c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org KRB5_ENCDATA *encdata; 118c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org } KRB5_TKTBODY; 119c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org 120c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.orgtypedef STACK_OF(KRB5_TKTBODY) KRB5_TICKET; 121c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.orgDECLARE_STACK_OF(KRB5_TKTBODY) 122c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org 123c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org 124c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org/* AP-REQ ::= [APPLICATION 14] SEQUENCE { 125c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** pvno[0] INTEGER, 126c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** msg-type[1] INTEGER, 127c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** ap-options[2] APOptions, 128c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** ticket[3] Ticket, 129c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** authenticator[4] EncryptedData 130c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** } 131c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** 132c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** APOptions ::= BIT STRING { 133c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** reserved(0), use-session-key(1), mutual-required(2) } 134c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org*/ 135c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.orgtypedef struct krb5_ap_req_st 136c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org { 137c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org ASN1_INTEGER *pvno; 138c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org ASN1_INTEGER *msgtype; 139c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org ASN1_BIT_STRING *apoptions; 140c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org KRB5_TICKET *ticket; 141c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org KRB5_ENCDATA *authenticator; 142c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org } KRB5_APREQBODY; 143c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org 144c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.orgtypedef STACK_OF(KRB5_APREQBODY) KRB5_APREQ; 145c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.orgDECLARE_STACK_OF(KRB5_APREQBODY) 146c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org 147c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org 148c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org/* Authenticator Stuff */ 149c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org 150c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org 151c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org/* Checksum ::= SEQUENCE { 152c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** cksumtype[0] INTEGER, 153c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** checksum[1] OCTET STRING 154c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** } 155c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org*/ 156c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.orgtypedef struct krb5_checksum_st 157c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org { 158c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org ASN1_INTEGER *ctype; 159c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org ASN1_OCTET_STRING *checksum; 160c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org } KRB5_CHECKSUM; 161c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org 162c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.orgDECLARE_STACK_OF(KRB5_CHECKSUM) 163c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org 164c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org 165c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org/* EncryptionKey ::= SEQUENCE { 166c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** keytype[0] INTEGER, 167c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** keyvalue[1] OCTET STRING 168c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** } 169c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org*/ 170c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.orgtypedef struct krb5_encryptionkey_st 171c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org { 172c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org ASN1_INTEGER *ktype; 173c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org ASN1_OCTET_STRING *keyvalue; 174c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org } KRB5_ENCKEY; 175c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org 176c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.orgDECLARE_STACK_OF(KRB5_ENCKEY) 177c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org 178c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org 179c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org/* AuthorizationData ::= SEQUENCE OF SEQUENCE { 180c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** ad-type[0] INTEGER, 181c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** ad-data[1] OCTET STRING 182c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** } 183c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org*/ 184c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.orgtypedef struct krb5_authorization_st 185c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org { 186c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org ASN1_INTEGER *adtype; 187c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org ASN1_OCTET_STRING *addata; 188c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org } KRB5_AUTHDATA; 189c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org 190c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.orgDECLARE_STACK_OF(KRB5_AUTHDATA) 191c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org 192c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org 193c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org/* -- Unencrypted authenticator 194c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** Authenticator ::= [APPLICATION 2] SEQUENCE { 195c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** authenticator-vno[0] INTEGER, 196c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** crealm[1] Realm, 197c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** cname[2] PrincipalName, 198c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** cksum[3] Checksum OPTIONAL, 199c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** cusec[4] INTEGER, 200c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** ctime[5] KerberosTime, 201c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** subkey[6] EncryptionKey OPTIONAL, 202c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** seq-number[7] INTEGER OPTIONAL, 203c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** authorization-data[8] AuthorizationData OPTIONAL 204c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** } 205c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org*/ 206c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.orgtypedef struct krb5_authenticator_st 207c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org { 208c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org ASN1_INTEGER *avno; 209c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org ASN1_GENERALSTRING *crealm; 210c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org KRB5_PRINCNAME *cname; 211c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org KRB5_CHECKSUM *cksum; 212c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org ASN1_INTEGER *cusec; 213c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org ASN1_GENERALIZEDTIME *ctime; 214c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org KRB5_ENCKEY *subkey; 215c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org ASN1_INTEGER *seqnum; 216c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org KRB5_AUTHDATA *authorization; 217c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org } KRB5_AUTHENTBODY; 218c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org 219c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.orgtypedef STACK_OF(KRB5_AUTHENTBODY) KRB5_AUTHENT; 220c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.orgDECLARE_STACK_OF(KRB5_AUTHENTBODY) 221c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org 222c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org 223c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org/* DECLARE_ASN1_FUNCTIONS(type) = DECLARE_ASN1_FUNCTIONS_name(type, type) = 224c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** type *name##_new(void); 225c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** void name##_free(type *a); 226c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** DECLARE_ASN1_ENCODE_FUNCTIONS(type, name, name) = 227c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** DECLARE_ASN1_ENCODE_FUNCTIONS(type, itname, name) = 228c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** type *d2i_##name(type **a, const unsigned char **in, long len); 229c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** int i2d_##name(type *a, unsigned char **out); 230c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org** DECLARE_ASN1_ITEM(itname) = OPENSSL_EXTERN const ASN1_ITEM itname##_it 231c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org*/ 232c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org 233c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.orgDECLARE_ASN1_FUNCTIONS(KRB5_ENCDATA) 234c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.orgDECLARE_ASN1_FUNCTIONS(KRB5_PRINCNAME) 235c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.orgDECLARE_ASN1_FUNCTIONS(KRB5_TKTBODY) 236c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.orgDECLARE_ASN1_FUNCTIONS(KRB5_APREQBODY) 237c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.orgDECLARE_ASN1_FUNCTIONS(KRB5_TICKET) 238c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.orgDECLARE_ASN1_FUNCTIONS(KRB5_APREQ) 239c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org 240c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.orgDECLARE_ASN1_FUNCTIONS(KRB5_CHECKSUM) 241c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.orgDECLARE_ASN1_FUNCTIONS(KRB5_ENCKEY) 242c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.orgDECLARE_ASN1_FUNCTIONS(KRB5_AUTHDATA) 243c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.orgDECLARE_ASN1_FUNCTIONS(KRB5_AUTHENTBODY) 244c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.orgDECLARE_ASN1_FUNCTIONS(KRB5_AUTHENT) 245c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org 246c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org 247c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org/* BEGIN ERROR CODES */ 248c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org/* The following lines are auto generated by the script mkerr.pl. Any changes 249c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org * made after this point may be overwritten when the script is next run. 250c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org */ 251c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org 252c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org#ifdef __cplusplus 253c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org} 254c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org#endif 255c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org#endif 256c9490d33b98b7affb729b5f1db13cb0a348471aagl@chromium.org 257