mirror of
https://github.com/darlinghq/darling-Heimdal.git
synced 2024-11-27 06:00:33 +00:00
Build krb5
This commit is contained in:
parent
2a0216ef38
commit
6dd9e4d7a9
182
CMakeLists.txt
182
CMakeLists.txt
@ -6,14 +6,24 @@ add_compile_options(
|
||||
|
||||
add_definitions(
|
||||
-D__GSSAPI_APPLE_API_PRIVATE
|
||||
-DBUILD_KRB5_LIB=1
|
||||
)
|
||||
|
||||
include_directories(BEFORE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/packages/mac/SnowLeopard10A
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/base
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/lib/roken
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/lib/asn1
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/lib/com_err
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/lib/heimcred
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/lib/krb5
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/lib/gssapi/gssapi
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/lib
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/lib/gssapi/cf
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/lib/hx509
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/lib/ipc
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/lib/wind
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/gen/include
|
||||
)
|
||||
|
||||
@ -40,22 +50,168 @@ add_darling_library(heimdal-asn1 SHARED
|
||||
make_fat(heimdal-asn1)
|
||||
target_link_libraries(heimdal-asn1 system)
|
||||
|
||||
add_library(heim_heimcred OBJECT
|
||||
lib/heimcred/common.c
|
||||
lib/heimcred/client.c
|
||||
)
|
||||
make_fat(heim_heimcred)
|
||||
|
||||
add_library(heim_krb5 OBJECT
|
||||
lib/krb5/add_et_list.c
|
||||
lib/krb5/addr_families.c
|
||||
lib/krb5/aname_to_localname.c
|
||||
lib/krb5/appdefault.c
|
||||
lib/krb5/asn1_glue.c
|
||||
lib/krb5/auth_context.c
|
||||
lib/krb5/build_ap_req.c
|
||||
lib/krb5/build_auth.c
|
||||
lib/krb5/cache.c
|
||||
lib/krb5/changepw.c
|
||||
lib/krb5/codec.c
|
||||
lib/krb5/config_file.c
|
||||
lib/krb5/constants.c
|
||||
lib/krb5/context.c
|
||||
lib/krb5/convert_creds.c
|
||||
lib/krb5/copy_host_realm.c
|
||||
lib/krb5/crc.c
|
||||
lib/krb5/creds.c
|
||||
lib/krb5/crypto.c
|
||||
lib/krb5/data.c
|
||||
lib/krb5/deprecated.c
|
||||
lib/krb5/derived-key-test.c
|
||||
lib/krb5/doxygen.c
|
||||
lib/krb5/xcache.c
|
||||
lib/krb5/eai_to_heim_errno.c
|
||||
lib/krb5/error_string.c
|
||||
lib/krb5/expand_hostname.c
|
||||
lib/krb5/fcache.c
|
||||
lib/krb5/free_host_realm.c
|
||||
lib/krb5/free.c
|
||||
lib/krb5/generate_seq_number.c
|
||||
lib/krb5/generate_subkey.c
|
||||
lib/krb5/get_addrs.c
|
||||
lib/krb5/get_cred.c
|
||||
lib/krb5/get_default_principal.c
|
||||
lib/krb5/get_default_realm.c
|
||||
lib/krb5/get_for_creds.c
|
||||
lib/krb5/get_host_realm.c
|
||||
lib/krb5/stat-kerberos.m
|
||||
lib/krb5/get_in_tkt.c
|
||||
lib/krb5/get_port.c
|
||||
lib/krb5/init_creds_pw.c
|
||||
lib/krb5/init_creds.c
|
||||
lib/krb5/kcm.c
|
||||
lib/krb5/keyblock.c
|
||||
lib/krb5/keytab_any.c
|
||||
lib/krb5/keytab_file.c
|
||||
lib/krb5/keytab_keyfile.c
|
||||
lib/krb5/keytab_memory.c
|
||||
lib/krb5/keytab.c
|
||||
lib/krb5/krbhst-test.c
|
||||
lib/krb5/krbhst.c
|
||||
lib/krb5/tkt.c
|
||||
lib/krb5/kuserok.c
|
||||
lib/krb5/log.c
|
||||
lib/krb5/stat.m
|
||||
lib/krb5/mcache.c
|
||||
lib/krb5/misc.c
|
||||
lib/krb5/mit_glue.c
|
||||
lib/krb5/mk_error.c
|
||||
lib/krb5/mk_priv.c
|
||||
lib/krb5/mk_rep.c
|
||||
lib/krb5/mk_req_ext.c
|
||||
lib/krb5/mk_req.c
|
||||
lib/krb5/mk_safe.c
|
||||
lib/krb5/n-fold.c
|
||||
lib/krb5/net_read.c
|
||||
lib/krb5/net_write.c
|
||||
lib/krb5/pac.c
|
||||
lib/krb5/padata.c
|
||||
lib/krb5/pkinit.c
|
||||
lib/krb5/plugin.c
|
||||
lib/krb5/principal.c
|
||||
lib/krb5/prompter_posix.c
|
||||
lib/krb5/rd_cred.c
|
||||
lib/krb5/rd_error.c
|
||||
lib/krb5/rd_priv.c
|
||||
lib/krb5/kkdcp.c
|
||||
lib/krb5/rd_rep.c
|
||||
lib/krb5/rd_req.c
|
||||
lib/krb5/rd_safe.c
|
||||
lib/krb5/read_message.c
|
||||
lib/krb5/recvauth.c
|
||||
lib/krb5/replay.c
|
||||
lib/krb5/send_to_kdc.c
|
||||
lib/krb5/sendauth.c
|
||||
lib/krb5/set_default_realm.c
|
||||
lib/krb5/sock_principal.c
|
||||
lib/krb5/store_emem.c
|
||||
lib/krb5/pfs.c
|
||||
lib/krb5/store_fd.c
|
||||
lib/krb5/store_mem.c
|
||||
lib/krb5/store.c
|
||||
lib/krb5/ticket.c
|
||||
lib/krb5/time.c
|
||||
lib/krb5/transited.c
|
||||
lib/krb5/verify_init.c
|
||||
lib/krb5/verify_user.c
|
||||
lib/krb5/version.c
|
||||
lib/krb5/warn.c
|
||||
lib/krb5/write_message.c
|
||||
lib/krb5/expand_path.c
|
||||
lib/krb5/crypto-aes.c
|
||||
lib/krb5/crypto-algs.c
|
||||
lib/krb5/crypto-arcfour.c
|
||||
lib/krb5/crypto-des-common.c
|
||||
lib/krb5/crypto-des.c
|
||||
lib/krb5/crypto-des3.c
|
||||
lib/krb5/crypto-evp.c
|
||||
lib/krb5/crypto-null.c
|
||||
lib/krb5/crypto-pk.c
|
||||
lib/krb5/crypto-rand.c
|
||||
lib/krb5/crypto-stubs.c
|
||||
lib/krb5/salt-aes.c
|
||||
lib/krb5/salt-arcfour.c
|
||||
lib/krb5/salt-des.c
|
||||
lib/krb5/salt-des3.c
|
||||
lib/krb5/salt.c
|
||||
lib/krb5/store-int.c
|
||||
lib/krb5/test_rfc3961.c
|
||||
lib/krb5/pcache.c
|
||||
lib/krb5/fast.c
|
||||
)
|
||||
make_fat(heim_krb5)
|
||||
|
||||
# Same version as above
|
||||
#add_framework(Heimdal
|
||||
# FAT
|
||||
# CURRENT_VERSION
|
||||
# PRIVATE
|
||||
# VERSION "A"
|
||||
add_framework(Heimdal
|
||||
FAT
|
||||
CURRENT_VERSION
|
||||
PRIVATE
|
||||
VERSION "A"
|
||||
|
||||
# SOURCES
|
||||
# functions.c
|
||||
# copy.c
|
||||
SOURCES
|
||||
$<TARGET_OBJECTS:heim_heimcred>
|
||||
$<TARGET_OBJECTS:heim_krb5>
|
||||
|
||||
# DEPENDENCIES
|
||||
# system
|
||||
#)
|
||||
#make_fat(Heimdal)
|
||||
base/test_base.c
|
||||
gen/sym_hcrypto.c
|
||||
gen/sym_hx509.c
|
||||
gen/sym_krb5.c
|
||||
gen/sym_pkinit.c
|
||||
gen/sym_roken.c
|
||||
gen/sym_asn1.c
|
||||
gen/sym_base.c
|
||||
|
||||
#target_link_libraries(Heimdal sqlite3 resolv.9 Security CoreFoundation CFNetwork icucore heimdal-asn1)
|
||||
DEPENDENCIES
|
||||
system
|
||||
sqlite3
|
||||
resolv-darwin
|
||||
#Security
|
||||
CoreFoundation
|
||||
#CFNetwork
|
||||
icucore
|
||||
heimdal-asn1
|
||||
)
|
||||
make_fat(Heimdal)
|
||||
|
||||
install(TARGETS heimdal-asn1 DESTINATION libexec/darling/usr/lib)
|
||||
|
1
gen/include/HeimCred.h
Symbolic link
1
gen/include/HeimCred.h
Symbolic link
@ -0,0 +1 @@
|
||||
../../lib/heimcred/heimcred.h
|
1
gen/include/Heimdal
Symbolic link
1
gen/include/Heimdal
Symbolic link
@ -0,0 +1 @@
|
||||
.
|
0
gen/include/NEHelperClient.h
Normal file
0
gen/include/NEHelperClient.h
Normal file
744
gen/include/cms_asn1.h
Executable file
744
gen/include/cms_asn1.h
Executable file
@ -0,0 +1,744 @@
|
||||
/* Generated from /Users/andyhyatt/Downloads/Heimdal-498.50.8/lib/asn1/cms.asn1 */
|
||||
/* Do not edit */
|
||||
|
||||
#ifndef __cms_asn1_h__
|
||||
#define __cms_asn1_h__
|
||||
|
||||
#include <stddef.h>
|
||||
#include <time.h>
|
||||
|
||||
#ifndef __asn1_common_definitions__
|
||||
#define __asn1_common_definitions__
|
||||
|
||||
#ifndef __HEIM_BASE_DATA__
|
||||
#define __HEIM_BASE_DATA__ 1
|
||||
struct heim_base_data {
|
||||
size_t length;
|
||||
void *data;
|
||||
};
|
||||
#endif
|
||||
|
||||
typedef struct heim_integer {
|
||||
size_t length;
|
||||
void *data;
|
||||
int negative;
|
||||
} heim_integer;
|
||||
|
||||
typedef struct heim_base_data heim_octet_string;
|
||||
|
||||
typedef char *heim_general_string;
|
||||
|
||||
typedef char *heim_utf8_string;
|
||||
|
||||
typedef struct heim_base_data heim_printable_string;
|
||||
|
||||
typedef struct heim_base_data heim_ia5_string;
|
||||
|
||||
typedef struct heim_bmp_string {
|
||||
size_t length;
|
||||
uint16_t *data;
|
||||
} heim_bmp_string;
|
||||
|
||||
typedef struct heim_universal_string {
|
||||
size_t length;
|
||||
uint32_t *data;
|
||||
} heim_universal_string;
|
||||
|
||||
typedef char *heim_visible_string;
|
||||
|
||||
typedef struct heim_oid {
|
||||
size_t length;
|
||||
unsigned *components;
|
||||
} heim_oid;
|
||||
|
||||
typedef struct heim_bit_string {
|
||||
size_t length;
|
||||
void *data;
|
||||
} heim_bit_string;
|
||||
|
||||
typedef struct heim_base_data heim_any;
|
||||
typedef struct heim_base_data heim_any_set;
|
||||
|
||||
#define ASN1_MALLOC_ENCODE(T, B, BL, S, L, R) \
|
||||
do { \
|
||||
(BL) = length_##T((S)); \
|
||||
(B) = malloc((BL)); \
|
||||
if((B) == NULL) { \
|
||||
(R) = ENOMEM; \
|
||||
} else { \
|
||||
(R) = encode_##T(((unsigned char*)(B)) + (BL) - 1, (BL), \
|
||||
(S), (L)); \
|
||||
if((R) != 0) { \
|
||||
free((B)); \
|
||||
(B) = NULL; \
|
||||
} \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#define ASN1_ENCODE_CFMutableData(_TYPE, _CFDATA, S, R) \
|
||||
do { \
|
||||
size_t __length##_TYPE; \
|
||||
size_t __size##_TYPE = length_##_TYPE((S)); \
|
||||
(_CFDATA) = CFDataCreateMutable(NULL, (__size##_TYPE)); \
|
||||
if((_CFDATA) == NULL) { \
|
||||
(R) = ENOMEM; \
|
||||
} else { \
|
||||
CFDataSetLength((_CFDATA), (__size##_TYPE)); \
|
||||
(R) = encode_##_TYPE(((unsigned char*)(CFDataGetMutableBytePtr((_CFDATA)))) + (__size##_TYPE) - 1, (__size##_TYPE), \
|
||||
(S), &(__length##_TYPE)); \
|
||||
if((R) != 0) { \
|
||||
CFRelease((_CFDATA)); \
|
||||
(_CFDATA) = NULL; \
|
||||
} \
|
||||
if((__size##_TYPE) != (__length##_TYPE)) { \
|
||||
asn1_abort("internal asn1 error"); \
|
||||
} \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#ifdef _WIN32
|
||||
#ifndef ASN1_LIB
|
||||
#define ASN1EXP __declspec(dllimport)
|
||||
#else
|
||||
#define ASN1EXP
|
||||
#endif
|
||||
#define ASN1CALL __stdcall
|
||||
#else
|
||||
#define ASN1EXP
|
||||
#define ASN1CALL
|
||||
#endif
|
||||
struct units;
|
||||
|
||||
#endif
|
||||
|
||||
#include <Heimdal/rfc2459_asn1.h>
|
||||
#include <Heimdal/heim_asn1.h>
|
||||
/* OBJECT IDENTIFIER id-pkcs7 ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs7(7) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pkcs7;
|
||||
#define ASN1_OID_ID_PKCS7 (&asn1_oid_id_pkcs7)
|
||||
|
||||
/* OBJECT IDENTIFIER id-pkcs7-data ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs7(7) label-less(1) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pkcs7_data;
|
||||
#define ASN1_OID_ID_PKCS7_DATA (&asn1_oid_id_pkcs7_data)
|
||||
|
||||
/* OBJECT IDENTIFIER id-pkcs7-signedData ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs7(7) label-less(2) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pkcs7_signedData;
|
||||
#define ASN1_OID_ID_PKCS7_SIGNEDDATA (&asn1_oid_id_pkcs7_signedData)
|
||||
|
||||
/* OBJECT IDENTIFIER id-pkcs7-envelopedData ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs7(7) label-less(3) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pkcs7_envelopedData;
|
||||
#define ASN1_OID_ID_PKCS7_ENVELOPEDDATA (&asn1_oid_id_pkcs7_envelopedData)
|
||||
|
||||
/* OBJECT IDENTIFIER id-pkcs7-signedAndEnvelopedData ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs7(7) label-less(4) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pkcs7_signedAndEnvelopedData;
|
||||
#define ASN1_OID_ID_PKCS7_SIGNEDANDENVELOPEDDATA (&asn1_oid_id_pkcs7_signedAndEnvelopedData)
|
||||
|
||||
/* OBJECT IDENTIFIER id-pkcs7-digestedData ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs7(7) label-less(5) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pkcs7_digestedData;
|
||||
#define ASN1_OID_ID_PKCS7_DIGESTEDDATA (&asn1_oid_id_pkcs7_digestedData)
|
||||
|
||||
/* OBJECT IDENTIFIER id-pkcs7-encryptedData ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs7(7) label-less(6) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pkcs7_encryptedData;
|
||||
#define ASN1_OID_ID_PKCS7_ENCRYPTEDDATA (&asn1_oid_id_pkcs7_encryptedData)
|
||||
|
||||
/*
|
||||
CMSVersion ::= INTEGER {
|
||||
CMSVersion_v0(0),
|
||||
CMSVersion_v1(1),
|
||||
CMSVersion_v2(2),
|
||||
CMSVersion_v3(3),
|
||||
CMSVersion_v4(4)
|
||||
}
|
||||
*/
|
||||
|
||||
typedef enum CMSVersion {
|
||||
CMSVersion_v0 = 0,
|
||||
CMSVersion_v1 = 1,
|
||||
CMSVersion_v2 = 2,
|
||||
CMSVersion_v3 = 3,
|
||||
CMSVersion_v4 = 4
|
||||
} CMSVersion;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_CMSVersion(const unsigned char *, size_t, CMSVersion *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_CMSVersion(unsigned char *, size_t, const CMSVersion *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_CMSVersion(const CMSVersion *);
|
||||
ASN1EXP int ASN1CALL copy_CMSVersion (const CMSVersion *, CMSVersion *);
|
||||
ASN1EXP void ASN1CALL free_CMSVersion (CMSVersion *);
|
||||
|
||||
|
||||
/*
|
||||
DigestAlgorithmIdentifier ::= AlgorithmIdentifier
|
||||
*/
|
||||
|
||||
typedef AlgorithmIdentifier DigestAlgorithmIdentifier;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_DigestAlgorithmIdentifier(const unsigned char *, size_t, DigestAlgorithmIdentifier *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_DigestAlgorithmIdentifier(unsigned char *, size_t, const DigestAlgorithmIdentifier *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_DigestAlgorithmIdentifier(const DigestAlgorithmIdentifier *);
|
||||
ASN1EXP int ASN1CALL copy_DigestAlgorithmIdentifier (const DigestAlgorithmIdentifier *, DigestAlgorithmIdentifier *);
|
||||
ASN1EXP void ASN1CALL free_DigestAlgorithmIdentifier (DigestAlgorithmIdentifier *);
|
||||
|
||||
|
||||
/*
|
||||
DigestAlgorithmIdentifiers ::= SET OF DigestAlgorithmIdentifier
|
||||
*/
|
||||
|
||||
typedef struct DigestAlgorithmIdentifiers {
|
||||
unsigned int len;
|
||||
DigestAlgorithmIdentifier *val;
|
||||
} DigestAlgorithmIdentifiers;
|
||||
|
||||
ASN1EXP int ASN1CALL add_DigestAlgorithmIdentifiers (DigestAlgorithmIdentifiers *, const DigestAlgorithmIdentifier *);
|
||||
ASN1EXP int ASN1CALL remove_DigestAlgorithmIdentifiers (DigestAlgorithmIdentifiers *, unsigned int);
|
||||
ASN1EXP int ASN1CALL decode_DigestAlgorithmIdentifiers(const unsigned char *, size_t, DigestAlgorithmIdentifiers *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_DigestAlgorithmIdentifiers(unsigned char *, size_t, const DigestAlgorithmIdentifiers *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_DigestAlgorithmIdentifiers(const DigestAlgorithmIdentifiers *);
|
||||
ASN1EXP int ASN1CALL copy_DigestAlgorithmIdentifiers (const DigestAlgorithmIdentifiers *, DigestAlgorithmIdentifiers *);
|
||||
ASN1EXP void ASN1CALL free_DigestAlgorithmIdentifiers (DigestAlgorithmIdentifiers *);
|
||||
|
||||
|
||||
/*
|
||||
SignatureAlgorithmIdentifier ::= AlgorithmIdentifier
|
||||
*/
|
||||
|
||||
typedef AlgorithmIdentifier SignatureAlgorithmIdentifier;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_SignatureAlgorithmIdentifier(const unsigned char *, size_t, SignatureAlgorithmIdentifier *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_SignatureAlgorithmIdentifier(unsigned char *, size_t, const SignatureAlgorithmIdentifier *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_SignatureAlgorithmIdentifier(const SignatureAlgorithmIdentifier *);
|
||||
ASN1EXP int ASN1CALL copy_SignatureAlgorithmIdentifier (const SignatureAlgorithmIdentifier *, SignatureAlgorithmIdentifier *);
|
||||
ASN1EXP void ASN1CALL free_SignatureAlgorithmIdentifier (SignatureAlgorithmIdentifier *);
|
||||
|
||||
|
||||
/*
|
||||
ContentType ::= OBJECT IDENTIFIER
|
||||
*/
|
||||
|
||||
typedef heim_oid ContentType;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_ContentType(const unsigned char *, size_t, ContentType *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_ContentType(unsigned char *, size_t, const ContentType *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_ContentType(const ContentType *);
|
||||
ASN1EXP int ASN1CALL copy_ContentType (const ContentType *, ContentType *);
|
||||
ASN1EXP void ASN1CALL free_ContentType (ContentType *);
|
||||
|
||||
|
||||
/*
|
||||
MessageDigest ::= OCTET STRING
|
||||
*/
|
||||
|
||||
typedef heim_octet_string MessageDigest;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_MessageDigest(const unsigned char *, size_t, MessageDigest *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_MessageDigest(unsigned char *, size_t, const MessageDigest *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_MessageDigest(const MessageDigest *);
|
||||
ASN1EXP int ASN1CALL copy_MessageDigest (const MessageDigest *, MessageDigest *);
|
||||
ASN1EXP void ASN1CALL free_MessageDigest (MessageDigest *);
|
||||
|
||||
|
||||
/*
|
||||
ContentInfo ::= SEQUENCE {
|
||||
contentType ContentType,
|
||||
content [0] heim_any OPTIONAL,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct ContentInfo {
|
||||
ContentType contentType;
|
||||
heim_any *content;
|
||||
} ContentInfo;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_ContentInfo(const unsigned char *, size_t, ContentInfo *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_ContentInfo(unsigned char *, size_t, const ContentInfo *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_ContentInfo(const ContentInfo *);
|
||||
ASN1EXP int ASN1CALL copy_ContentInfo (const ContentInfo *, ContentInfo *);
|
||||
ASN1EXP void ASN1CALL free_ContentInfo (ContentInfo *);
|
||||
|
||||
|
||||
/*
|
||||
EncapsulatedContentInfo ::= SEQUENCE {
|
||||
eContentType ContentType,
|
||||
eContent [0] OCTET STRING OPTIONAL,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct EncapsulatedContentInfo {
|
||||
ContentType eContentType;
|
||||
heim_octet_string *eContent;
|
||||
} EncapsulatedContentInfo;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_EncapsulatedContentInfo(const unsigned char *, size_t, EncapsulatedContentInfo *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_EncapsulatedContentInfo(unsigned char *, size_t, const EncapsulatedContentInfo *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_EncapsulatedContentInfo(const EncapsulatedContentInfo *);
|
||||
ASN1EXP int ASN1CALL copy_EncapsulatedContentInfo (const EncapsulatedContentInfo *, EncapsulatedContentInfo *);
|
||||
ASN1EXP void ASN1CALL free_EncapsulatedContentInfo (EncapsulatedContentInfo *);
|
||||
|
||||
|
||||
/*
|
||||
CertificateSet ::= SET OF heim_any
|
||||
*/
|
||||
|
||||
typedef struct CertificateSet {
|
||||
unsigned int len;
|
||||
heim_any *val;
|
||||
} CertificateSet;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_CertificateSet(const unsigned char *, size_t, CertificateSet *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_CertificateSet(unsigned char *, size_t, const CertificateSet *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_CertificateSet(const CertificateSet *);
|
||||
ASN1EXP int ASN1CALL copy_CertificateSet (const CertificateSet *, CertificateSet *);
|
||||
ASN1EXP void ASN1CALL free_CertificateSet (CertificateSet *);
|
||||
|
||||
|
||||
/*
|
||||
CertificateList ::= Certificate
|
||||
*/
|
||||
|
||||
typedef Certificate CertificateList;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_CertificateList(const unsigned char *, size_t, CertificateList *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_CertificateList(unsigned char *, size_t, const CertificateList *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_CertificateList(const CertificateList *);
|
||||
ASN1EXP int ASN1CALL copy_CertificateList (const CertificateList *, CertificateList *);
|
||||
ASN1EXP void ASN1CALL free_CertificateList (CertificateList *);
|
||||
|
||||
|
||||
/*
|
||||
CertificateRevocationLists ::= SET OF CertificateList
|
||||
*/
|
||||
|
||||
typedef struct CertificateRevocationLists {
|
||||
unsigned int len;
|
||||
CertificateList *val;
|
||||
} CertificateRevocationLists;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_CertificateRevocationLists(const unsigned char *, size_t, CertificateRevocationLists *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_CertificateRevocationLists(unsigned char *, size_t, const CertificateRevocationLists *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_CertificateRevocationLists(const CertificateRevocationLists *);
|
||||
ASN1EXP int ASN1CALL copy_CertificateRevocationLists (const CertificateRevocationLists *, CertificateRevocationLists *);
|
||||
ASN1EXP void ASN1CALL free_CertificateRevocationLists (CertificateRevocationLists *);
|
||||
|
||||
|
||||
/*
|
||||
IssuerAndSerialNumber ::= SEQUENCE {
|
||||
issuer Name,
|
||||
serialNumber CertificateSerialNumber,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct IssuerAndSerialNumber {
|
||||
Name issuer;
|
||||
CertificateSerialNumber serialNumber;
|
||||
} IssuerAndSerialNumber;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_IssuerAndSerialNumber(const unsigned char *, size_t, IssuerAndSerialNumber *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_IssuerAndSerialNumber(unsigned char *, size_t, const IssuerAndSerialNumber *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_IssuerAndSerialNumber(const IssuerAndSerialNumber *);
|
||||
ASN1EXP int ASN1CALL copy_IssuerAndSerialNumber (const IssuerAndSerialNumber *, IssuerAndSerialNumber *);
|
||||
ASN1EXP void ASN1CALL free_IssuerAndSerialNumber (IssuerAndSerialNumber *);
|
||||
|
||||
|
||||
/*
|
||||
CMSIdentifier ::= CHOICE {
|
||||
issuerAndSerialNumber IssuerAndSerialNumber,
|
||||
subjectKeyIdentifier [0] SubjectKeyIdentifier,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct CMSIdentifier {
|
||||
enum CMSIdentifier_enum {
|
||||
invalid_choice_CMSIdentifier = 0,
|
||||
choice_CMSIdentifier_issuerAndSerialNumber = 1,
|
||||
choice_CMSIdentifier_subjectKeyIdentifier
|
||||
} element;
|
||||
union {
|
||||
IssuerAndSerialNumber issuerAndSerialNumber;
|
||||
SubjectKeyIdentifier subjectKeyIdentifier;
|
||||
} u;
|
||||
} CMSIdentifier;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_CMSIdentifier(const unsigned char *, size_t, CMSIdentifier *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_CMSIdentifier(unsigned char *, size_t, const CMSIdentifier *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_CMSIdentifier(const CMSIdentifier *);
|
||||
ASN1EXP int ASN1CALL copy_CMSIdentifier (const CMSIdentifier *, CMSIdentifier *);
|
||||
ASN1EXP void ASN1CALL free_CMSIdentifier (CMSIdentifier *);
|
||||
|
||||
|
||||
/*
|
||||
SignerIdentifier ::= CMSIdentifier
|
||||
*/
|
||||
|
||||
typedef CMSIdentifier SignerIdentifier;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_SignerIdentifier(const unsigned char *, size_t, SignerIdentifier *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_SignerIdentifier(unsigned char *, size_t, const SignerIdentifier *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_SignerIdentifier(const SignerIdentifier *);
|
||||
ASN1EXP int ASN1CALL copy_SignerIdentifier (const SignerIdentifier *, SignerIdentifier *);
|
||||
ASN1EXP void ASN1CALL free_SignerIdentifier (SignerIdentifier *);
|
||||
|
||||
|
||||
/*
|
||||
RecipientIdentifier ::= CMSIdentifier
|
||||
*/
|
||||
|
||||
typedef CMSIdentifier RecipientIdentifier;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_RecipientIdentifier(const unsigned char *, size_t, RecipientIdentifier *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_RecipientIdentifier(unsigned char *, size_t, const RecipientIdentifier *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_RecipientIdentifier(const RecipientIdentifier *);
|
||||
ASN1EXP int ASN1CALL copy_RecipientIdentifier (const RecipientIdentifier *, RecipientIdentifier *);
|
||||
ASN1EXP void ASN1CALL free_RecipientIdentifier (RecipientIdentifier *);
|
||||
|
||||
|
||||
/*
|
||||
CMSAttributes ::= SET OF Attribute
|
||||
*/
|
||||
|
||||
typedef struct CMSAttributes {
|
||||
unsigned int len;
|
||||
Attribute *val;
|
||||
} CMSAttributes;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_CMSAttributes(const unsigned char *, size_t, CMSAttributes *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_CMSAttributes(unsigned char *, size_t, const CMSAttributes *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_CMSAttributes(const CMSAttributes *);
|
||||
ASN1EXP int ASN1CALL copy_CMSAttributes (const CMSAttributes *, CMSAttributes *);
|
||||
ASN1EXP void ASN1CALL free_CMSAttributes (CMSAttributes *);
|
||||
|
||||
|
||||
/*
|
||||
SignatureValue ::= OCTET STRING
|
||||
*/
|
||||
|
||||
typedef heim_octet_string SignatureValue;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_SignatureValue(const unsigned char *, size_t, SignatureValue *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_SignatureValue(unsigned char *, size_t, const SignatureValue *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_SignatureValue(const SignatureValue *);
|
||||
ASN1EXP int ASN1CALL copy_SignatureValue (const SignatureValue *, SignatureValue *);
|
||||
ASN1EXP void ASN1CALL free_SignatureValue (SignatureValue *);
|
||||
|
||||
|
||||
/*
|
||||
SignerInfo ::= SEQUENCE {
|
||||
version CMSVersion,
|
||||
sid SignerIdentifier,
|
||||
digestAlgorithm DigestAlgorithmIdentifier,
|
||||
signedAttrs [0] IMPLICIT SET OF Attribute OPTIONAL,
|
||||
signatureAlgorithm SignatureAlgorithmIdentifier,
|
||||
signature SignatureValue,
|
||||
unsignedAttrs [1] IMPLICIT SET OF Attribute OPTIONAL,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct SignerInfo {
|
||||
CMSVersion version;
|
||||
SignerIdentifier sid;
|
||||
DigestAlgorithmIdentifier digestAlgorithm;
|
||||
struct SignerInfo_signedAttrs {
|
||||
unsigned int len;
|
||||
Attribute *val;
|
||||
} *signedAttrs;
|
||||
SignatureAlgorithmIdentifier signatureAlgorithm;
|
||||
SignatureValue signature;
|
||||
struct SignerInfo_unsignedAttrs {
|
||||
unsigned int len;
|
||||
Attribute *val;
|
||||
} *unsignedAttrs;
|
||||
} SignerInfo;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_SignerInfo(const unsigned char *, size_t, SignerInfo *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_SignerInfo(unsigned char *, size_t, const SignerInfo *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_SignerInfo(const SignerInfo *);
|
||||
ASN1EXP int ASN1CALL copy_SignerInfo (const SignerInfo *, SignerInfo *);
|
||||
ASN1EXP void ASN1CALL free_SignerInfo (SignerInfo *);
|
||||
|
||||
|
||||
/*
|
||||
SignerInfos ::= SET OF SignerInfo
|
||||
*/
|
||||
|
||||
typedef struct SignerInfos {
|
||||
unsigned int len;
|
||||
SignerInfo *val;
|
||||
} SignerInfos;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_SignerInfos(const unsigned char *, size_t, SignerInfos *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_SignerInfos(unsigned char *, size_t, const SignerInfos *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_SignerInfos(const SignerInfos *);
|
||||
ASN1EXP int ASN1CALL copy_SignerInfos (const SignerInfos *, SignerInfos *);
|
||||
ASN1EXP void ASN1CALL free_SignerInfos (SignerInfos *);
|
||||
|
||||
|
||||
/*
|
||||
SignedData ::= SEQUENCE {
|
||||
version CMSVersion,
|
||||
digestAlgorithms DigestAlgorithmIdentifiers,
|
||||
encapContentInfo EncapsulatedContentInfo,
|
||||
certificates [0] IMPLICIT SET OF heim_any OPTIONAL,
|
||||
crls [1] IMPLICIT heim_any OPTIONAL,
|
||||
signerInfos SignerInfos,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct SignedData {
|
||||
CMSVersion version;
|
||||
DigestAlgorithmIdentifiers digestAlgorithms;
|
||||
EncapsulatedContentInfo encapContentInfo;
|
||||
struct SignedData_certificates {
|
||||
unsigned int len;
|
||||
heim_any *val;
|
||||
} *certificates;
|
||||
heim_any *crls;
|
||||
SignerInfos signerInfos;
|
||||
} SignedData;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_SignedData(const unsigned char *, size_t, SignedData *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_SignedData(unsigned char *, size_t, const SignedData *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_SignedData(const SignedData *);
|
||||
ASN1EXP int ASN1CALL copy_SignedData (const SignedData *, SignedData *);
|
||||
ASN1EXP void ASN1CALL free_SignedData (SignedData *);
|
||||
|
||||
|
||||
/*
|
||||
OriginatorInfo ::= SEQUENCE {
|
||||
certs [0] IMPLICIT SET OF heim_any OPTIONAL,
|
||||
crls [1] IMPLICIT heim_any OPTIONAL,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct OriginatorInfo {
|
||||
struct OriginatorInfo_certs {
|
||||
unsigned int len;
|
||||
heim_any *val;
|
||||
} *certs;
|
||||
heim_any *crls;
|
||||
} OriginatorInfo;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_OriginatorInfo(const unsigned char *, size_t, OriginatorInfo *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_OriginatorInfo(unsigned char *, size_t, const OriginatorInfo *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_OriginatorInfo(const OriginatorInfo *);
|
||||
ASN1EXP int ASN1CALL copy_OriginatorInfo (const OriginatorInfo *, OriginatorInfo *);
|
||||
ASN1EXP void ASN1CALL free_OriginatorInfo (OriginatorInfo *);
|
||||
|
||||
|
||||
/*
|
||||
KeyEncryptionAlgorithmIdentifier ::= AlgorithmIdentifier
|
||||
*/
|
||||
|
||||
typedef AlgorithmIdentifier KeyEncryptionAlgorithmIdentifier;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_KeyEncryptionAlgorithmIdentifier(const unsigned char *, size_t, KeyEncryptionAlgorithmIdentifier *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_KeyEncryptionAlgorithmIdentifier(unsigned char *, size_t, const KeyEncryptionAlgorithmIdentifier *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_KeyEncryptionAlgorithmIdentifier(const KeyEncryptionAlgorithmIdentifier *);
|
||||
ASN1EXP int ASN1CALL copy_KeyEncryptionAlgorithmIdentifier (const KeyEncryptionAlgorithmIdentifier *, KeyEncryptionAlgorithmIdentifier *);
|
||||
ASN1EXP void ASN1CALL free_KeyEncryptionAlgorithmIdentifier (KeyEncryptionAlgorithmIdentifier *);
|
||||
|
||||
|
||||
/*
|
||||
ContentEncryptionAlgorithmIdentifier ::= AlgorithmIdentifier
|
||||
*/
|
||||
|
||||
typedef AlgorithmIdentifier ContentEncryptionAlgorithmIdentifier;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_ContentEncryptionAlgorithmIdentifier(const unsigned char *, size_t, ContentEncryptionAlgorithmIdentifier *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_ContentEncryptionAlgorithmIdentifier(unsigned char *, size_t, const ContentEncryptionAlgorithmIdentifier *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_ContentEncryptionAlgorithmIdentifier(const ContentEncryptionAlgorithmIdentifier *);
|
||||
ASN1EXP int ASN1CALL copy_ContentEncryptionAlgorithmIdentifier (const ContentEncryptionAlgorithmIdentifier *, ContentEncryptionAlgorithmIdentifier *);
|
||||
ASN1EXP void ASN1CALL free_ContentEncryptionAlgorithmIdentifier (ContentEncryptionAlgorithmIdentifier *);
|
||||
|
||||
|
||||
/*
|
||||
EncryptedKey ::= OCTET STRING
|
||||
*/
|
||||
|
||||
typedef heim_octet_string EncryptedKey;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_EncryptedKey(const unsigned char *, size_t, EncryptedKey *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_EncryptedKey(unsigned char *, size_t, const EncryptedKey *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_EncryptedKey(const EncryptedKey *);
|
||||
ASN1EXP int ASN1CALL copy_EncryptedKey (const EncryptedKey *, EncryptedKey *);
|
||||
ASN1EXP void ASN1CALL free_EncryptedKey (EncryptedKey *);
|
||||
|
||||
|
||||
/*
|
||||
KeyTransRecipientInfo ::= SEQUENCE {
|
||||
version CMSVersion,
|
||||
rid RecipientIdentifier,
|
||||
keyEncryptionAlgorithm KeyEncryptionAlgorithmIdentifier,
|
||||
encryptedKey EncryptedKey,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct KeyTransRecipientInfo {
|
||||
CMSVersion version;
|
||||
RecipientIdentifier rid;
|
||||
KeyEncryptionAlgorithmIdentifier keyEncryptionAlgorithm;
|
||||
EncryptedKey encryptedKey;
|
||||
} KeyTransRecipientInfo;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_KeyTransRecipientInfo(const unsigned char *, size_t, KeyTransRecipientInfo *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_KeyTransRecipientInfo(unsigned char *, size_t, const KeyTransRecipientInfo *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_KeyTransRecipientInfo(const KeyTransRecipientInfo *);
|
||||
ASN1EXP int ASN1CALL copy_KeyTransRecipientInfo (const KeyTransRecipientInfo *, KeyTransRecipientInfo *);
|
||||
ASN1EXP void ASN1CALL free_KeyTransRecipientInfo (KeyTransRecipientInfo *);
|
||||
|
||||
|
||||
/*
|
||||
RecipientInfo ::= KeyTransRecipientInfo
|
||||
*/
|
||||
|
||||
typedef KeyTransRecipientInfo RecipientInfo;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_RecipientInfo(const unsigned char *, size_t, RecipientInfo *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_RecipientInfo(unsigned char *, size_t, const RecipientInfo *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_RecipientInfo(const RecipientInfo *);
|
||||
ASN1EXP int ASN1CALL copy_RecipientInfo (const RecipientInfo *, RecipientInfo *);
|
||||
ASN1EXP void ASN1CALL free_RecipientInfo (RecipientInfo *);
|
||||
|
||||
|
||||
/*
|
||||
RecipientInfos ::= SET OF RecipientInfo
|
||||
*/
|
||||
|
||||
typedef struct RecipientInfos {
|
||||
unsigned int len;
|
||||
RecipientInfo *val;
|
||||
} RecipientInfos;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_RecipientInfos(const unsigned char *, size_t, RecipientInfos *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_RecipientInfos(unsigned char *, size_t, const RecipientInfos *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_RecipientInfos(const RecipientInfos *);
|
||||
ASN1EXP int ASN1CALL copy_RecipientInfos (const RecipientInfos *, RecipientInfos *);
|
||||
ASN1EXP void ASN1CALL free_RecipientInfos (RecipientInfos *);
|
||||
|
||||
|
||||
/*
|
||||
EncryptedContent ::= OCTET STRING
|
||||
*/
|
||||
|
||||
typedef heim_octet_string EncryptedContent;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_EncryptedContent(const unsigned char *, size_t, EncryptedContent *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_EncryptedContent(unsigned char *, size_t, const EncryptedContent *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_EncryptedContent(const EncryptedContent *);
|
||||
ASN1EXP int ASN1CALL copy_EncryptedContent (const EncryptedContent *, EncryptedContent *);
|
||||
ASN1EXP void ASN1CALL free_EncryptedContent (EncryptedContent *);
|
||||
|
||||
|
||||
/*
|
||||
EncryptedContentInfo ::= SEQUENCE {
|
||||
contentType ContentType,
|
||||
contentEncryptionAlgorithm ContentEncryptionAlgorithmIdentifier,
|
||||
encryptedContent [0] IMPLICIT OCTET STRING OPTIONAL,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct EncryptedContentInfo {
|
||||
ContentType contentType;
|
||||
ContentEncryptionAlgorithmIdentifier contentEncryptionAlgorithm;
|
||||
heim_octet_string *encryptedContent;
|
||||
} EncryptedContentInfo;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_EncryptedContentInfo(const unsigned char *, size_t, EncryptedContentInfo *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_EncryptedContentInfo(unsigned char *, size_t, const EncryptedContentInfo *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_EncryptedContentInfo(const EncryptedContentInfo *);
|
||||
ASN1EXP int ASN1CALL copy_EncryptedContentInfo (const EncryptedContentInfo *, EncryptedContentInfo *);
|
||||
ASN1EXP void ASN1CALL free_EncryptedContentInfo (EncryptedContentInfo *);
|
||||
|
||||
|
||||
/*
|
||||
UnprotectedAttributes ::= SET OF Attribute
|
||||
*/
|
||||
|
||||
typedef struct UnprotectedAttributes {
|
||||
unsigned int len;
|
||||
Attribute *val;
|
||||
} UnprotectedAttributes;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_UnprotectedAttributes(const unsigned char *, size_t, UnprotectedAttributes *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_UnprotectedAttributes(unsigned char *, size_t, const UnprotectedAttributes *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_UnprotectedAttributes(const UnprotectedAttributes *);
|
||||
ASN1EXP int ASN1CALL copy_UnprotectedAttributes (const UnprotectedAttributes *, UnprotectedAttributes *);
|
||||
ASN1EXP void ASN1CALL free_UnprotectedAttributes (UnprotectedAttributes *);
|
||||
|
||||
|
||||
/*
|
||||
CMSEncryptedData ::= SEQUENCE {
|
||||
version CMSVersion,
|
||||
encryptedContentInfo EncryptedContentInfo,
|
||||
unprotectedAttrs [1] IMPLICIT heim_any OPTIONAL,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct CMSEncryptedData {
|
||||
CMSVersion version;
|
||||
EncryptedContentInfo encryptedContentInfo;
|
||||
heim_any *unprotectedAttrs;
|
||||
} CMSEncryptedData;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_CMSEncryptedData(const unsigned char *, size_t, CMSEncryptedData *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_CMSEncryptedData(unsigned char *, size_t, const CMSEncryptedData *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_CMSEncryptedData(const CMSEncryptedData *);
|
||||
ASN1EXP int ASN1CALL copy_CMSEncryptedData (const CMSEncryptedData *, CMSEncryptedData *);
|
||||
ASN1EXP void ASN1CALL free_CMSEncryptedData (CMSEncryptedData *);
|
||||
|
||||
|
||||
/*
|
||||
EnvelopedData ::= SEQUENCE {
|
||||
version CMSVersion,
|
||||
originatorInfo [0] IMPLICIT heim_any OPTIONAL,
|
||||
recipientInfos RecipientInfos,
|
||||
encryptedContentInfo EncryptedContentInfo,
|
||||
unprotectedAttrs [1] IMPLICIT heim_any OPTIONAL,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct EnvelopedData {
|
||||
CMSVersion version;
|
||||
heim_any *originatorInfo;
|
||||
RecipientInfos recipientInfos;
|
||||
EncryptedContentInfo encryptedContentInfo;
|
||||
heim_any *unprotectedAttrs;
|
||||
} EnvelopedData;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_EnvelopedData(const unsigned char *, size_t, EnvelopedData *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_EnvelopedData(unsigned char *, size_t, const EnvelopedData *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_EnvelopedData(const EnvelopedData *);
|
||||
ASN1EXP int ASN1CALL copy_EnvelopedData (const EnvelopedData *, EnvelopedData *);
|
||||
ASN1EXP void ASN1CALL free_EnvelopedData (EnvelopedData *);
|
||||
|
||||
|
||||
/*
|
||||
CMSRC2CBCParameter ::= SEQUENCE {
|
||||
rc2ParameterVersion INTEGER (0..-1),
|
||||
iv OCTET STRING,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct CMSRC2CBCParameter {
|
||||
unsigned int rc2ParameterVersion;
|
||||
heim_octet_string iv;
|
||||
} CMSRC2CBCParameter;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_CMSRC2CBCParameter(const unsigned char *, size_t, CMSRC2CBCParameter *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_CMSRC2CBCParameter(unsigned char *, size_t, const CMSRC2CBCParameter *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_CMSRC2CBCParameter(const CMSRC2CBCParameter *);
|
||||
ASN1EXP int ASN1CALL copy_CMSRC2CBCParameter (const CMSRC2CBCParameter *, CMSRC2CBCParameter *);
|
||||
ASN1EXP void ASN1CALL free_CMSRC2CBCParameter (CMSRC2CBCParameter *);
|
||||
|
||||
|
||||
/*
|
||||
CMSCBCParameter ::= OCTET STRING
|
||||
*/
|
||||
|
||||
typedef heim_octet_string CMSCBCParameter;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_CMSCBCParameter(const unsigned char *, size_t, CMSCBCParameter *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_CMSCBCParameter(unsigned char *, size_t, const CMSCBCParameter *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_CMSCBCParameter(const CMSCBCParameter *);
|
||||
ASN1EXP int ASN1CALL copy_CMSCBCParameter (const CMSCBCParameter *, CMSCBCParameter *);
|
||||
ASN1EXP void ASN1CALL free_CMSCBCParameter (CMSCBCParameter *);
|
||||
|
||||
|
||||
#endif /* __cms_asn1_h__ */
|
7
gen/include/dns_sd_private.h
Normal file
7
gen/include/dns_sd_private.h
Normal file
@ -0,0 +1,7 @@
|
||||
#ifndef _DNS_SD_PRIVATE_H
|
||||
#define _DNS_SD_PRIVATE_H
|
||||
|
||||
DNSServiceErrorType DNSSD_API
|
||||
DNSServiceCreateDelegateConnection(DNSServiceRef *sdRef, int32_t pid, uuid_t uuid);
|
||||
|
||||
#endif
|
39
gen/include/gkrb5_err.h
Executable file
39
gen/include/gkrb5_err.h
Executable file
@ -0,0 +1,39 @@
|
||||
/* Generated from /Users/andyhyatt/Downloads/Heimdal-498.50.8/lib/gssapi/krb5/gkrb5_err.et */
|
||||
/* $Id$ */
|
||||
|
||||
#ifndef __gkrb5_err_h__
|
||||
#define __gkrb5_err_h__
|
||||
|
||||
struct et_list;
|
||||
|
||||
void initialize_gk5_error_table_r(struct et_list **);
|
||||
|
||||
void initialize_gk5_error_table(void);
|
||||
#define init_gk5_err_tbl initialize_gk5_error_table
|
||||
|
||||
typedef enum gk5_error_number{
|
||||
GSS_KRB5_S_G_BAD_SERVICE_NAME = 35224064,
|
||||
GSS_KRB5_S_G_BAD_STRING_UID = 35224065,
|
||||
GSS_KRB5_S_G_NOUSER = 35224066,
|
||||
GSS_KRB5_S_G_VALIDATE_FAILED = 35224067,
|
||||
GSS_KRB5_S_G_BUFFER_ALLOC = 35224068,
|
||||
GSS_KRB5_S_G_BAD_MSG_CTX = 35224069,
|
||||
GSS_KRB5_S_G_WRONG_SIZE = 35224070,
|
||||
GSS_KRB5_S_G_BAD_USAGE = 35224071,
|
||||
GSS_KRB5_S_G_UNKNOWN_QOP = 35224072,
|
||||
GSS_KRB5_S_KG_CCACHE_NOMATCH = 35224192,
|
||||
GSS_KRB5_S_KG_KEYTAB_NOMATCH = 35224193,
|
||||
GSS_KRB5_S_KG_TGT_MISSING = 35224194,
|
||||
GSS_KRB5_S_KG_NO_SUBKEY = 35224195,
|
||||
GSS_KRB5_S_KG_CONTEXT_ESTABLISHED = 35224196,
|
||||
GSS_KRB5_S_KG_BAD_SIGN_TYPE = 35224197,
|
||||
GSS_KRB5_S_KG_BAD_LENGTH = 35224198,
|
||||
GSS_KRB5_S_KG_CTX_INCOMPLETE = 35224199,
|
||||
GSS_KRB5_S_KG_INPUT_TOO_LONG = 35224200
|
||||
} gk5_error_number;
|
||||
|
||||
#define ERROR_TABLE_BASE_gk5 35224064
|
||||
|
||||
#define COM_ERR_BINDDOMAIN_gk5 "heim_com_err35224064"
|
||||
|
||||
#endif /* __gkrb5_err_h__ */
|
29
gen/include/gssapi_rewrite.h
Executable file
29
gen/include/gssapi_rewrite.h
Executable file
@ -0,0 +1,29 @@
|
||||
#define gss_acquire_cred_ex __ApplePrivate_gss_acquire_cred_ex
|
||||
#define gss_acquire_cred_ex_f __ApplePrivate_gss_acquire_cred_ex_f
|
||||
#define gss_acquire_cred_ext __ApplePrivate_gss_acquire_cred_ext
|
||||
#define gss_context_query_attributes __ApplePrivate_gss_context_query_attributes
|
||||
#define gss_krb5_get_tkt_flags __ApplePrivate_gss_krb5_get_tkt_flags
|
||||
#define gss_krb5_import_cred __ApplePrivate_gss_krb5_import_cred
|
||||
#define gss_cred_hold __ApplePrivate_gss_cred_hold
|
||||
#define gss_cred_unhold __ApplePrivate_gss_cred_unhold
|
||||
#define gss_release_iov_buffer __ApplePrivate_gss_release_iov_buffer
|
||||
#define gss_mo_set __ApplePrivate_gss_mo_set
|
||||
#define gss_mo_get __ApplePrivate_gss_mo_get
|
||||
#define gss_mo_name __ApplePrivate_gss_mo_name
|
||||
#define gss_mo_list __ApplePrivate_gss_mo_list
|
||||
#define gss_unwrap_iov __ApplePrivate_gss_unwrap_iov
|
||||
#define gss_wrap_iov __ApplePrivate_gss_wrap_iov
|
||||
#define gss_wrap_iov_length __ApplePrivate_gss_wrap_iov_length
|
||||
#define gsskrb5_extract_authtime_from_sec_context __ApplePrivate_gsskrb5_extract_authtime_from_sec_context
|
||||
#define gsskrb5_extract_service_keyblock __ApplePrivate_gsskrb5_extract_service_keyblock
|
||||
#define gsskrb5_get_initiator_subkey __ApplePrivate_gsskrb5_get_initiator_subkey
|
||||
#define gsskrb5_get_subkey __ApplePrivate_gsskrb5_get_subkey
|
||||
#define gsskrb5_get_time_offset __ApplePrivate_gsskrb5_get_time_offset
|
||||
#define gsskrb5_set_default_realm __ApplePrivate_gsskrb5_set_default_realm
|
||||
#define gsskrb5_set_dns_canonicalize __ApplePrivate_gsskrb5_set_dns_canonicalize
|
||||
#define gsskrb5_set_time_offset __ApplePrivate_gsskrb5_set_time_offset
|
||||
#define _gsskrb5_init __ApplePrivate__gsskrb5_init
|
||||
#define gss_oid_to_name __ApplePrivate_gss_oid_to_name
|
||||
#define gss_name_to_oid __ApplePrivate_gss_name_to_oid
|
||||
#define gss_cred_label_get __ApplePrivate_gss_cred_label_get
|
||||
#define gss_cred_label_set __ApplePrivate_gss_cred_label_set
|
27
gen/include/hc_err.h
Executable file
27
gen/include/hc_err.h
Executable file
@ -0,0 +1,27 @@
|
||||
/* Generated from /Users/andyhyatt/Downloads/Heimdal-498.50.8/lib/heimcred/hc_err.et */
|
||||
/* $Id$ */
|
||||
|
||||
#ifndef __hc_err_h__
|
||||
#define __hc_err_h__
|
||||
|
||||
struct et_list;
|
||||
|
||||
void initialize_hc_error_table_r(struct et_list **);
|
||||
|
||||
void initialize_hc_error_table(void);
|
||||
#define init_hc_err_tbl initialize_hc_error_table
|
||||
|
||||
typedef enum hc_error_number{
|
||||
kHeimCredErrorUnknownKey = 564480,
|
||||
kHeimCredErrorMissingSchemaKey = 564481,
|
||||
kHeimCredErrorNoSuchSchema = 564482,
|
||||
kHeimCredErrorNoItemsMatchesQuery = 564483,
|
||||
kHeimCredErrorServerDisconnected = 564608,
|
||||
kHeimCredErrorServerReturnedError = 564609
|
||||
} hc_error_number;
|
||||
|
||||
#define ERROR_TABLE_BASE_hc 564480
|
||||
|
||||
#define COM_ERR_BINDDOMAIN_hc "heim_com_err564480"
|
||||
|
||||
#endif /* __hc_err_h__ */
|
38
gen/include/hdb_err.h
Executable file
38
gen/include/hdb_err.h
Executable file
@ -0,0 +1,38 @@
|
||||
/* Generated from /Users/andyhyatt/Downloads/Heimdal-498.50.8/lib/hdb/hdb_err.et */
|
||||
/* $Id$ */
|
||||
|
||||
#ifndef __hdb_err_h__
|
||||
#define __hdb_err_h__
|
||||
|
||||
struct et_list;
|
||||
|
||||
void initialize_hdb_error_table_r(struct et_list **);
|
||||
|
||||
void initialize_hdb_error_table(void);
|
||||
#define init_hdb_err_tbl initialize_hdb_error_table
|
||||
|
||||
typedef enum hdb_error_number{
|
||||
HDB_ERR_UK_SERROR = 36150273,
|
||||
HDB_ERR_UK_RERROR = 36150274,
|
||||
HDB_ERR_NOENTRY = 36150275,
|
||||
HDB_ERR_DB_INUSE = 36150276,
|
||||
HDB_ERR_DB_CHANGED = 36150277,
|
||||
HDB_ERR_RECURSIVELOCK = 36150278,
|
||||
HDB_ERR_NOTLOCKED = 36150279,
|
||||
HDB_ERR_BADLOCKMODE = 36150280,
|
||||
HDB_ERR_CANT_LOCK_DB = 36150281,
|
||||
HDB_ERR_EXISTS = 36150282,
|
||||
HDB_ERR_BADVERSION = 36150283,
|
||||
HDB_ERR_NO_MKEY = 36150284,
|
||||
HDB_ERR_MANDATORY_OPTION = 36150285,
|
||||
HDB_ERR_NO_WRITE_SUPPORT = 36150286,
|
||||
HDB_ERR_NOT_FOUND_HERE = 36150287,
|
||||
HDB_ERR_MISUSE = 36150288,
|
||||
HDB_ERR_KVNO_NOT_FOUND = 36150289
|
||||
} hdb_error_number;
|
||||
|
||||
#define ERROR_TABLE_BASE_hdb 36150272
|
||||
|
||||
#define COM_ERR_BINDDOMAIN_hdb "heim_com_err36150272"
|
||||
|
||||
#endif /* __hdb_err_h__ */
|
66
gen/include/heim_err.h
Executable file
66
gen/include/heim_err.h
Executable file
@ -0,0 +1,66 @@
|
||||
/* Generated from /Users/andyhyatt/Downloads/Heimdal-498.50.8/lib/krb5/heim_err.et */
|
||||
/* $Id$ */
|
||||
|
||||
#ifndef __heim_err_h__
|
||||
#define __heim_err_h__
|
||||
|
||||
struct et_list;
|
||||
|
||||
void initialize_heim_error_table_r(struct et_list **);
|
||||
|
||||
void initialize_heim_error_table(void);
|
||||
#define init_heim_err_tbl initialize_heim_error_table
|
||||
|
||||
typedef enum heim_error_number{
|
||||
HEIM_ERR_LOG_PARSE = -1980176640,
|
||||
HEIM_ERR_V4_PRINC_NO_CONV = -1980176639,
|
||||
HEIM_ERR_SALTTYPE_NOSUPP = -1980176638,
|
||||
HEIM_ERR_NOHOST = -1980176637,
|
||||
HEIM_ERR_OPNOTSUPP = -1980176636,
|
||||
HEIM_ERR_EOF = -1980176635,
|
||||
HEIM_ERR_BAD_MKEY = -1980176634,
|
||||
HEIM_ERR_SERVICE_NOMATCH = -1980176633,
|
||||
HEIM_ERR_NOT_SEEKABLE = -1980176632,
|
||||
HEIM_ERR_TOO_BIG = -1980176631,
|
||||
HEIM_ERR_STORAGE_UUID = -1980176630,
|
||||
HEIM_ERR_BAD_HDBENT_ENCODING = -1980176629,
|
||||
HEIM_ERR_PA_CONTINUE_NEEDED = -1980176628,
|
||||
HEIM_ERR_PA_CANT_CONTINUE = -1980176627,
|
||||
HEIM_ERR_NO_MORE_PA_MECHS = -1980176626,
|
||||
HEIM_ERR_UNICODE_STRING = -1980176625,
|
||||
HEIM_PFS_GROUP_INVALID = -1980176608,
|
||||
HEIM_PFS_CHECKSUM_WRONG = -1980176607,
|
||||
HEIM_PFS_ENCTYPE_PRF_NOT_SUPPORTED = -1980176606,
|
||||
HEIM_PKINIT_NO_CERTIFICATE = -1980176576,
|
||||
HEIM_PKINIT_NO_PRIVATE_KEY = -1980176575,
|
||||
HEIM_PKINIT_NO_VALID_CA = -1980176574,
|
||||
HEIM_PKINIT_CERTIFICATE_INVALID = -1980176573,
|
||||
HEIM_PKINIT_PRIVATE_KEY_INVALID = -1980176572,
|
||||
HEIM_PAC_INVALID_ENCTYPE = -1980176560,
|
||||
HEIM_PAC_CINFO_MISSING = -1980176559,
|
||||
HEIM_PAC_VERSION = -1980176558,
|
||||
HEIM_PAC_MALFORMED = -1980176557,
|
||||
HEIM_PAC_NOT_VALID = -1980176556,
|
||||
HEIM_PAC_TOO_MANY = -1980176555,
|
||||
HEIM_EAI_UNKNOWN = -1980176512,
|
||||
HEIM_EAI_ADDRFAMILY = -1980176511,
|
||||
HEIM_EAI_AGAIN = -1980176510,
|
||||
HEIM_EAI_BADFLAGS = -1980176509,
|
||||
HEIM_EAI_FAIL = -1980176508,
|
||||
HEIM_EAI_FAMILY = -1980176507,
|
||||
HEIM_EAI_MEMORY = -1980176506,
|
||||
HEIM_EAI_NODATA = -1980176505,
|
||||
HEIM_EAI_NONAME = -1980176504,
|
||||
HEIM_EAI_SERVICE = -1980176503,
|
||||
HEIM_EAI_SOCKTYPE = -1980176502,
|
||||
HEIM_EAI_SYSTEM = -1980176501,
|
||||
HEIM_NET_CONN_REFUSED = -1980176448,
|
||||
HEIM_NDR_UNSUPPORTED_VERSION = -1980176416,
|
||||
HEIM_NDR_INVALID_LENGTH = -1980176415
|
||||
} heim_error_number;
|
||||
|
||||
#define ERROR_TABLE_BASE_heim -1980176640
|
||||
|
||||
#define COM_ERR_BINDDOMAIN_heim "heim_com_err-1980176640"
|
||||
|
||||
#endif /* __heim_err_h__ */
|
94
gen/include/hx509_err.h
Executable file
94
gen/include/hx509_err.h
Executable file
@ -0,0 +1,94 @@
|
||||
/* Generated from /Users/andyhyatt/Downloads/Heimdal-498.50.8/lib/hx509/hx509_err.et */
|
||||
/* $Id$ */
|
||||
|
||||
#ifndef __hx509_err_h__
|
||||
#define __hx509_err_h__
|
||||
|
||||
struct et_list;
|
||||
|
||||
void initialize_hx_error_table_r(struct et_list **);
|
||||
|
||||
void initialize_hx_error_table(void);
|
||||
#define init_hx_err_tbl initialize_hx_error_table
|
||||
|
||||
typedef enum hx_error_number{
|
||||
HX509_BAD_TIMEFORMAT = 569856,
|
||||
HX509_EXTENSION_NOT_FOUND = 569857,
|
||||
HX509_NO_PATH = 569858,
|
||||
HX509_PARENT_NOT_CA = 569859,
|
||||
HX509_CA_PATH_TOO_DEEP = 569860,
|
||||
HX509_SIG_ALG_NO_SUPPORTED = 569861,
|
||||
HX509_SIG_ALG_DONT_MATCH_KEY_ALG = 569862,
|
||||
HX509_CERT_USED_BEFORE_TIME = 569863,
|
||||
HX509_CERT_USED_AFTER_TIME = 569864,
|
||||
HX509_PRIVATE_KEY_MISSING = 569865,
|
||||
HX509_ALG_NOT_SUPP = 569866,
|
||||
HX509_ISSUER_NOT_FOUND = 569867,
|
||||
HX509_VERIFY_CONSTRAINTS = 569868,
|
||||
HX509_RANGE = 569869,
|
||||
HX509_NAME_CONSTRAINT_ERROR = 569870,
|
||||
HX509_PATH_TOO_LONG = 569871,
|
||||
HX509_KU_CERT_MISSING = 569872,
|
||||
HX509_CERT_NOT_FOUND = 569873,
|
||||
HX509_UNKNOWN_LOCK_COMMAND = 569874,
|
||||
HX509_PARENT_IS_CA = 569875,
|
||||
HX509_EXTRA_DATA_AFTER_STRUCTURE = 569876,
|
||||
HX509_PROXY_CERT_INVALID = 569877,
|
||||
HX509_PROXY_CERT_NAME_WRONG = 569878,
|
||||
HX509_NAME_MALFORMED = 569879,
|
||||
HX509_CERTIFICATE_MALFORMED = 569880,
|
||||
HX509_CERTIFICATE_MISSING_EKU = 569881,
|
||||
HX509_PROXY_CERTIFICATE_NOT_CANONICALIZED = 569882,
|
||||
HX509_CMS_FAILED_CREATE_SIGATURE = 569888,
|
||||
HX509_CMS_MISSING_SIGNER_DATA = 569889,
|
||||
HX509_CMS_SIGNER_NOT_FOUND = 569890,
|
||||
HX509_CMS_NO_DATA_AVAILABLE = 569891,
|
||||
HX509_CMS_INVALID_DATA = 569892,
|
||||
HX509_CMS_PADDING_ERROR = 569893,
|
||||
HX509_CMS_NO_RECIPIENT_CERTIFICATE = 569894,
|
||||
HX509_CMS_DATA_OID_MISMATCH = 569895,
|
||||
HX509_CRYPTO_INTERNAL_ERROR = 569920,
|
||||
HX509_CRYPTO_EXTERNAL_ERROR = 569921,
|
||||
HX509_CRYPTO_SIGNATURE_MISSING = 569922,
|
||||
HX509_CRYPTO_BAD_SIGNATURE = 569923,
|
||||
HX509_CRYPTO_SIG_NO_CONF = 569924,
|
||||
HX509_CRYPTO_SIG_INVALID_FORMAT = 569925,
|
||||
HX509_CRYPTO_OID_MISMATCH = 569926,
|
||||
HX509_CRYPTO_NO_PROMPTER = 569927,
|
||||
HX509_CRYPTO_SIGNATURE_WITHOUT_SIGNER = 569928,
|
||||
HX509_CRYPTO_RSA_PUBLIC_ENCRYPT = 569929,
|
||||
HX509_CRYPTO_RSA_PRIVATE_ENCRYPT = 569930,
|
||||
HX509_CRYPTO_RSA_PUBLIC_DECRYPT = 569931,
|
||||
HX509_CRYPTO_RSA_PRIVATE_DECRYPT = 569932,
|
||||
HX509_CRYPTO_ALGORITHM_BEST_BEFORE = 569933,
|
||||
HX509_CRYPTO_KEY_FORMAT_UNSUPPORTED = 569934,
|
||||
HX509_CRYPTO_OUT_OF_RANDOM = 569935,
|
||||
HX509_CRL_USED_BEFORE_TIME = 569952,
|
||||
HX509_CRL_USED_AFTER_TIME = 569953,
|
||||
HX509_CRL_INVALID_FORMAT = 569954,
|
||||
HX509_CERT_REVOKED = 569955,
|
||||
HX509_REVOKE_STATUS_MISSING = 569956,
|
||||
HX509_CRL_UNKNOWN_EXTENSION = 569957,
|
||||
HX509_REVOKE_WRONG_DATA = 569958,
|
||||
HX509_REVOKE_NOT_SAME_PARENT = 569959,
|
||||
HX509_CERT_NOT_IN_OCSP = 569960,
|
||||
HX509_LOCAL_ATTRIBUTE_MISSING = 569964,
|
||||
HX509_PARSING_KEY_FAILED = 569965,
|
||||
HX509_UNSUPPORTED_OPERATION = 569966,
|
||||
HX509_UNIMPLEMENTED_OPERATION = 569967,
|
||||
HX509_PARSING_NAME_FAILED = 569968,
|
||||
HX509_CERTIFICATE_UNKNOWN_TYPE = 569969,
|
||||
HX509_PKCS11_NO_SLOT = 569984,
|
||||
HX509_PKCS11_NO_TOKEN = 569985,
|
||||
HX509_PKCS11_NO_MECH = 569986,
|
||||
HX509_PKCS11_TOKEN_CONFUSED = 569987,
|
||||
HX509_PKCS11_OPEN_SESSION = 569988,
|
||||
HX509_PKCS11_LOGIN = 569989,
|
||||
HX509_PKCS11_LOAD = 569990
|
||||
} hx_error_number;
|
||||
|
||||
#define ERROR_TABLE_BASE_hx 569856
|
||||
|
||||
#define COM_ERR_BINDDOMAIN_hx "heim_com_err569856"
|
||||
|
||||
#endif /* __hx509_err_h__ */
|
29
gen/include/k524_err.h
Executable file
29
gen/include/k524_err.h
Executable file
@ -0,0 +1,29 @@
|
||||
/* Generated from /Users/andyhyatt/Downloads/Heimdal-498.50.8/lib/krb5/k524_err.et */
|
||||
/* $Id$ */
|
||||
|
||||
#ifndef __k524_err_h__
|
||||
#define __k524_err_h__
|
||||
|
||||
struct et_list;
|
||||
|
||||
void initialize_k524_error_table_r(struct et_list **);
|
||||
|
||||
void initialize_k524_error_table(void);
|
||||
#define init_k524_err_tbl initialize_k524_error_table
|
||||
|
||||
typedef enum k524_error_number{
|
||||
KRB524_BADKEY = -1750206208,
|
||||
KRB524_BADADDR = -1750206207,
|
||||
KRB524_BADPRINC = -1750206206,
|
||||
KRB524_BADREALM = -1750206205,
|
||||
KRB524_V4ERR = -1750206204,
|
||||
KRB524_ENCFULL = -1750206203,
|
||||
KRB524_DECEMPTY = -1750206202,
|
||||
KRB524_NOTRESP = -1750206201
|
||||
} k524_error_number;
|
||||
|
||||
#define ERROR_TABLE_BASE_k524 -1750206208
|
||||
|
||||
#define COM_ERR_BINDDOMAIN_k524 "heim_com_err-1750206208"
|
||||
|
||||
#endif /* __k524_err_h__ */
|
3078
gen/include/krb5_asn1.h
Executable file
3078
gen/include/krb5_asn1.h
Executable file
File diff suppressed because it is too large
Load Diff
203
gen/include/krb5_err.h
Executable file
203
gen/include/krb5_err.h
Executable file
@ -0,0 +1,203 @@
|
||||
/* Generated from /Users/andyhyatt/Downloads/Heimdal-498.50.8/lib/krb5/krb5_err.et */
|
||||
/* $Id$ */
|
||||
|
||||
#ifndef __krb5_err_h__
|
||||
#define __krb5_err_h__
|
||||
|
||||
struct et_list;
|
||||
|
||||
void initialize_krb5_error_table_r(struct et_list **);
|
||||
|
||||
void initialize_krb5_error_table(void);
|
||||
#define init_krb5_err_tbl initialize_krb5_error_table
|
||||
|
||||
typedef enum krb5_error_number{
|
||||
KRB5KDC_ERR_NONE = -1765328384,
|
||||
KRB5KDC_ERR_NAME_EXP = -1765328383,
|
||||
KRB5KDC_ERR_SERVICE_EXP = -1765328382,
|
||||
KRB5KDC_ERR_BAD_PVNO = -1765328381,
|
||||
KRB5KDC_ERR_C_OLD_MAST_KVNO = -1765328380,
|
||||
KRB5KDC_ERR_S_OLD_MAST_KVNO = -1765328379,
|
||||
KRB5KDC_ERR_C_PRINCIPAL_UNKNOWN = -1765328378,
|
||||
KRB5KDC_ERR_S_PRINCIPAL_UNKNOWN = -1765328377,
|
||||
KRB5KDC_ERR_PRINCIPAL_NOT_UNIQUE = -1765328376,
|
||||
KRB5KDC_ERR_NULL_KEY = -1765328375,
|
||||
KRB5KDC_ERR_CANNOT_POSTDATE = -1765328374,
|
||||
KRB5KDC_ERR_NEVER_VALID = -1765328373,
|
||||
KRB5KDC_ERR_POLICY = -1765328372,
|
||||
KRB5KDC_ERR_BADOPTION = -1765328371,
|
||||
KRB5KDC_ERR_ETYPE_NOSUPP = -1765328370,
|
||||
KRB5KDC_ERR_SUMTYPE_NOSUPP = -1765328369,
|
||||
KRB5KDC_ERR_PADATA_TYPE_NOSUPP = -1765328368,
|
||||
KRB5KDC_ERR_TRTYPE_NOSUPP = -1765328367,
|
||||
KRB5KDC_ERR_CLIENT_REVOKED = -1765328366,
|
||||
KRB5KDC_ERR_SERVICE_REVOKED = -1765328365,
|
||||
KRB5KDC_ERR_TGT_REVOKED = -1765328364,
|
||||
KRB5KDC_ERR_CLIENT_NOTYET = -1765328363,
|
||||
KRB5KDC_ERR_SERVICE_NOTYET = -1765328362,
|
||||
KRB5KDC_ERR_KEY_EXPIRED = -1765328361,
|
||||
KRB5KDC_ERR_PREAUTH_FAILED = -1765328360,
|
||||
KRB5KDC_ERR_PREAUTH_REQUIRED = -1765328359,
|
||||
KRB5KDC_ERR_SERVER_NOMATCH = -1765328358,
|
||||
KRB5KDC_ERR_KDC_ERR_MUST_USE_USER2USER = -1765328357,
|
||||
KRB5KDC_ERR_PATH_NOT_ACCEPTED = -1765328356,
|
||||
KRB5KDC_ERR_SVC_UNAVAILABLE = -1765328355,
|
||||
KRB5KRB_AP_ERR_BAD_INTEGRITY = -1765328353,
|
||||
KRB5KRB_AP_ERR_TKT_EXPIRED = -1765328352,
|
||||
KRB5KRB_AP_ERR_TKT_NYV = -1765328351,
|
||||
KRB5KRB_AP_ERR_REPEAT = -1765328350,
|
||||
KRB5KRB_AP_ERR_NOT_US = -1765328349,
|
||||
KRB5KRB_AP_ERR_BADMATCH = -1765328348,
|
||||
KRB5KRB_AP_ERR_SKEW = -1765328347,
|
||||
KRB5KRB_AP_ERR_BADADDR = -1765328346,
|
||||
KRB5KRB_AP_ERR_BADVERSION = -1765328345,
|
||||
KRB5KRB_AP_ERR_MSG_TYPE = -1765328344,
|
||||
KRB5KRB_AP_ERR_MODIFIED = -1765328343,
|
||||
KRB5KRB_AP_ERR_BADORDER = -1765328342,
|
||||
KRB5KRB_AP_ERR_ILL_CR_TKT = -1765328341,
|
||||
KRB5KRB_AP_ERR_BADKEYVER = -1765328340,
|
||||
KRB5KRB_AP_ERR_NOKEY = -1765328339,
|
||||
KRB5KRB_AP_ERR_MUT_FAIL = -1765328338,
|
||||
KRB5KRB_AP_ERR_BADDIRECTION = -1765328337,
|
||||
KRB5KRB_AP_ERR_METHOD = -1765328336,
|
||||
KRB5KRB_AP_ERR_BADSEQ = -1765328335,
|
||||
KRB5KRB_AP_ERR_INAPP_CKSUM = -1765328334,
|
||||
KRB5KRB_AP_PATH_NOT_ACCEPTED = -1765328333,
|
||||
KRB5KRB_ERR_RESPONSE_TOO_BIG = -1765328332,
|
||||
KRB5KRB_ERR_GENERIC = -1765328324,
|
||||
KRB5KRB_ERR_FIELD_TOOLONG = -1765328323,
|
||||
KRB5_KDC_ERR_CLIENT_NOT_TRUSTED = -1765328322,
|
||||
KRB5_KDC_ERR_KDC_NOT_TRUSTED = -1765328321,
|
||||
KRB5_KDC_ERR_INVALID_SIG = -1765328320,
|
||||
KRB5_KDC_ERR_DH_KEY_PARAMETERS_NOT_ACCEPTED = -1765328319,
|
||||
KRB5_KDC_ERR_WRONG_REALM = -1765328316,
|
||||
KRB5_AP_ERR_USER_TO_USER_REQUIRED = -1765328315,
|
||||
KRB5_KDC_ERR_CANT_VERIFY_CERTIFICATE = -1765328314,
|
||||
KRB5_KDC_ERR_INVALID_CERTIFICATE = -1765328313,
|
||||
KRB5_KDC_ERR_REVOKED_CERTIFICATE = -1765328312,
|
||||
KRB5_KDC_ERR_REVOCATION_STATUS_UNKNOWN = -1765328311,
|
||||
KRB5_KDC_ERR_REVOCATION_STATUS_UNAVAILABLE = -1765328310,
|
||||
KRB5_KDC_ERR_CLIENT_NAME_MISMATCH = -1765328309,
|
||||
KRB5_KDC_ERR_INCONSISTENT_KEY_PURPOSE = -1765328308,
|
||||
KRB5_KDC_ERR_DIGEST_IN_CERT_NOT_ACCEPTED = -1765328307,
|
||||
KRB5_KDC_ERR_PA_CHECKSUM_MUST_BE_INCLUDED = -1765328306,
|
||||
KRB5_KDC_ERR_DIGEST_IN_SIGNED_DATA_NOT_ACCEPTED = -1765328305,
|
||||
KRB5_KDC_ERR_PUBLIC_KEY_ENCRYPTION_NOT_SUPPORTED = -1765328304,
|
||||
KRB5_KDC_ERR_MORE_PREAUTH_DATA_REQUIRED = -1765328293,
|
||||
KRB5_KDC_ERR_INVALID_HASH_ALG = -1765328290,
|
||||
KRB5_KDC_ERR_INVALID_ITERATION_COUNT = -1765328289,
|
||||
KRB5_ERR_RCSID = -1765328256,
|
||||
KRB5_LIBOS_BADLOCKFLAG = -1765328255,
|
||||
KRB5_LIBOS_CANTREADPWD = -1765328254,
|
||||
KRB5_LIBOS_BADPWDMATCH = -1765328253,
|
||||
KRB5_LIBOS_PWDINTR = -1765328252,
|
||||
KRB5_PARSE_ILLCHAR = -1765328251,
|
||||
KRB5_PARSE_MALFORMED = -1765328250,
|
||||
KRB5_CONFIG_CANTOPEN = -1765328249,
|
||||
KRB5_CONFIG_BADFORMAT = -1765328248,
|
||||
KRB5_CONFIG_NOTENUFSPACE = -1765328247,
|
||||
KRB5_BADMSGTYPE = -1765328246,
|
||||
KRB5_CC_BADNAME = -1765328245,
|
||||
KRB5_CC_UNKNOWN_TYPE = -1765328244,
|
||||
KRB5_CC_NOTFOUND = -1765328243,
|
||||
KRB5_CC_END = -1765328242,
|
||||
KRB5_NO_TKT_SUPPLIED = -1765328241,
|
||||
KRB5KRB_AP_WRONG_PRINC = -1765328240,
|
||||
KRB5KRB_AP_ERR_TKT_INVALID = -1765328239,
|
||||
KRB5_PRINC_NOMATCH = -1765328238,
|
||||
KRB5_KDCREP_MODIFIED = -1765328237,
|
||||
KRB5_KDCREP_SKEW = -1765328236,
|
||||
KRB5_IN_TKT_REALM_MISMATCH = -1765328235,
|
||||
KRB5_PROG_ETYPE_NOSUPP = -1765328234,
|
||||
KRB5_PROG_KEYTYPE_NOSUPP = -1765328233,
|
||||
KRB5_WRONG_ETYPE = -1765328232,
|
||||
KRB5_PROG_SUMTYPE_NOSUPP = -1765328231,
|
||||
KRB5_REALM_UNKNOWN = -1765328230,
|
||||
KRB5_SERVICE_UNKNOWN = -1765328229,
|
||||
KRB5_KDC_UNREACH = -1765328228,
|
||||
KRB5_NO_LOCALNAME = -1765328227,
|
||||
KRB5_MUTUAL_FAILED = -1765328226,
|
||||
KRB5_RC_TYPE_EXISTS = -1765328225,
|
||||
KRB5_RC_MALLOC = -1765328224,
|
||||
KRB5_RC_TYPE_NOTFOUND = -1765328223,
|
||||
KRB5_RC_UNKNOWN = -1765328222,
|
||||
KRB5_RC_REPLAY = -1765328221,
|
||||
KRB5_RC_IO = -1765328220,
|
||||
KRB5_RC_NOIO = -1765328219,
|
||||
KRB5_RC_PARSE = -1765328218,
|
||||
KRB5_RC_IO_EOF = -1765328217,
|
||||
KRB5_RC_IO_MALLOC = -1765328216,
|
||||
KRB5_RC_IO_PERM = -1765328215,
|
||||
KRB5_RC_IO_IO = -1765328214,
|
||||
KRB5_RC_IO_UNKNOWN = -1765328213,
|
||||
KRB5_RC_IO_SPACE = -1765328212,
|
||||
KRB5_TRANS_CANTOPEN = -1765328211,
|
||||
KRB5_TRANS_BADFORMAT = -1765328210,
|
||||
KRB5_LNAME_CANTOPEN = -1765328209,
|
||||
KRB5_LNAME_NOTRANS = -1765328208,
|
||||
KRB5_LNAME_BADFORMAT = -1765328207,
|
||||
KRB5_CRYPTO_INTERNAL = -1765328206,
|
||||
KRB5_KT_BADNAME = -1765328205,
|
||||
KRB5_KT_UNKNOWN_TYPE = -1765328204,
|
||||
KRB5_KT_NOTFOUND = -1765328203,
|
||||
KRB5_KT_END = -1765328202,
|
||||
KRB5_KT_NOWRITE = -1765328201,
|
||||
KRB5_KT_IOERR = -1765328200,
|
||||
KRB5_NO_TKT_IN_RLM = -1765328199,
|
||||
KRB5DES_BAD_KEYPAR = -1765328198,
|
||||
KRB5DES_WEAK_KEY = -1765328197,
|
||||
KRB5_BAD_ENCTYPE = -1765328196,
|
||||
KRB5_BAD_KEYSIZE = -1765328195,
|
||||
KRB5_BAD_MSIZE = -1765328194,
|
||||
KRB5_CC_TYPE_EXISTS = -1765328193,
|
||||
KRB5_KT_TYPE_EXISTS = -1765328192,
|
||||
KRB5_CC_IO = -1765328191,
|
||||
KRB5_FCC_PERM = -1765328190,
|
||||
KRB5_FCC_NOFILE = -1765328189,
|
||||
KRB5_FCC_INTERNAL = -1765328188,
|
||||
KRB5_CC_WRITE = -1765328187,
|
||||
KRB5_CC_NOMEM = -1765328186,
|
||||
KRB5_CC_FORMAT = -1765328185,
|
||||
KRB5_CC_NOT_KTYPE = -1765328184,
|
||||
KRB5_INVALID_FLAGS = -1765328183,
|
||||
KRB5_NO_2ND_TKT = -1765328182,
|
||||
KRB5_NOCREDS_SUPPLIED = -1765328181,
|
||||
KRB5_SENDAUTH_BADAUTHVERS = -1765328180,
|
||||
KRB5_SENDAUTH_BADAPPLVERS = -1765328179,
|
||||
KRB5_SENDAUTH_BADRESPONSE = -1765328178,
|
||||
KRB5_SENDAUTH_REJECTED = -1765328177,
|
||||
KRB5_PREAUTH_BAD_TYPE = -1765328176,
|
||||
KRB5_PREAUTH_NO_KEY = -1765328175,
|
||||
KRB5_PREAUTH_FAILED = -1765328174,
|
||||
KRB5_RCACHE_BADVNO = -1765328173,
|
||||
KRB5_CCACHE_BADVNO = -1765328172,
|
||||
KRB5_KEYTAB_BADVNO = -1765328171,
|
||||
KRB5_PROG_ATYPE_NOSUPP = -1765328170,
|
||||
KRB5_RC_REQUIRED = -1765328169,
|
||||
KRB5_ERR_BAD_HOSTNAME = -1765328168,
|
||||
KRB5_ERR_HOST_REALM_UNKNOWN = -1765328167,
|
||||
KRB5_SNAME_UNSUPP_NAMETYPE = -1765328166,
|
||||
KRB5KRB_AP_ERR_V4_REPLY = -1765328165,
|
||||
KRB5_REALM_CANT_RESOLVE = -1765328164,
|
||||
KRB5_TKT_NOT_FORWARDABLE = -1765328163,
|
||||
KRB5_FWD_BAD_PRINCIPAL = -1765328162,
|
||||
KRB5_GET_IN_TKT_LOOP = -1765328161,
|
||||
KRB5_CONFIG_NODEFREALM = -1765328160,
|
||||
KRB5_SAM_UNSUPPORTED = -1765328159,
|
||||
KRB5_SAM_INVALID_ETYPE = -1765328158,
|
||||
KRB5_SAM_NO_CHECKSUM = -1765328157,
|
||||
KRB5_SAM_BAD_CHECKSUM = -1765328156,
|
||||
KRB5_OBSOLETE_FN = -1765328146,
|
||||
KRB5_ERR_BAD_S2K_PARAMS = -1765328139,
|
||||
KRB5_ERR_NO_SERVICE = -1765328138,
|
||||
KRB5_CC_NOSUPP = -1765328137,
|
||||
KRB5_DELTAT_BADFORMAT = -1765328136,
|
||||
KRB5_PLUGIN_NO_HANDLE = -1765328135,
|
||||
KRB5_PLUGIN_OP_NOTSUPP = -1765328134
|
||||
} krb5_error_number;
|
||||
|
||||
#define ERROR_TABLE_BASE_krb5 -1765328384
|
||||
|
||||
#define COM_ERR_BINDDOMAIN_krb5 "heim_com_err-1765328384"
|
||||
|
||||
#endif /* __krb5_err_h__ */
|
67
gen/include/krb_err.h
Executable file
67
gen/include/krb_err.h
Executable file
@ -0,0 +1,67 @@
|
||||
/* Generated from /Users/andyhyatt/Downloads/Heimdal-498.50.8/lib/krb5/krb_err.et */
|
||||
/* $Id: krb_err.et,v 1.7 1998/03/29 14:19:52 bg Exp $ */
|
||||
|
||||
#ifndef __krb_err_h__
|
||||
#define __krb_err_h__
|
||||
|
||||
struct et_list;
|
||||
|
||||
void initialize_krb_error_table_r(struct et_list **);
|
||||
|
||||
void initialize_krb_error_table(void);
|
||||
#define init_krb_err_tbl initialize_krb_error_table
|
||||
|
||||
typedef enum krb_error_number{
|
||||
KRB4ET_KSUCCESS = 39525376,
|
||||
KRB4ET_KDC_NAME_EXP = 39525377,
|
||||
KRB4ET_KDC_SERVICE_EXP = 39525378,
|
||||
KRB4ET_KDC_AUTH_EXP = 39525379,
|
||||
KRB4ET_KDC_PKT_VER = 39525380,
|
||||
KRB4ET_KDC_P_MKEY_VER = 39525381,
|
||||
KRB4ET_KDC_S_MKEY_VER = 39525382,
|
||||
KRB4ET_KDC_BYTE_ORDER = 39525383,
|
||||
KRB4ET_KDC_PR_UNKNOWN = 39525384,
|
||||
KRB4ET_KDC_PR_N_UNIQUE = 39525385,
|
||||
KRB4ET_KDC_NULL_KEY = 39525386,
|
||||
KRB4ET_KDC_GEN_ERR = 39525396,
|
||||
KRB4ET_GC_TKFIL = 39525397,
|
||||
KRB4ET_GC_NOTKT = 39525398,
|
||||
KRB4ET_MK_AP_TGTEXP = 39525402,
|
||||
KRB4ET_RD_AP_UNDEC = 39525407,
|
||||
KRB4ET_RD_AP_EXP = 39525408,
|
||||
KRB4ET_RD_AP_NYV = 39525409,
|
||||
KRB4ET_RD_AP_REPEAT = 39525410,
|
||||
KRB4ET_RD_AP_NOT_US = 39525411,
|
||||
KRB4ET_RD_AP_INCON = 39525412,
|
||||
KRB4ET_RD_AP_TIME = 39525413,
|
||||
KRB4ET_RD_AP_BADD = 39525414,
|
||||
KRB4ET_RD_AP_VERSION = 39525415,
|
||||
KRB4ET_RD_AP_MSG_TYPE = 39525416,
|
||||
KRB4ET_RD_AP_MODIFIED = 39525417,
|
||||
KRB4ET_RD_AP_ORDER = 39525418,
|
||||
KRB4ET_RD_AP_UNAUTHOR = 39525419,
|
||||
KRB4ET_GT_PW_NULL = 39525427,
|
||||
KRB4ET_GT_PW_BADPW = 39525428,
|
||||
KRB4ET_GT_PW_PROT = 39525429,
|
||||
KRB4ET_GT_PW_KDCERR = 39525430,
|
||||
KRB4ET_GT_PW_NULLTKT = 39525431,
|
||||
KRB4ET_SKDC_RETRY = 39525432,
|
||||
KRB4ET_SKDC_CANT = 39525433,
|
||||
KRB4ET_INTK_W_NOTALL = 39525437,
|
||||
KRB4ET_INTK_BADPW = 39525438,
|
||||
KRB4ET_INTK_PROT = 39525439,
|
||||
KRB4ET_INTK_ERR = 39525446,
|
||||
KRB4ET_AD_NOTGT = 39525447,
|
||||
KRB4ET_NO_TKT_FIL = 39525452,
|
||||
KRB4ET_TKT_FIL_ACC = 39525453,
|
||||
KRB4ET_TKT_FIL_LCK = 39525454,
|
||||
KRB4ET_TKT_FIL_FMT = 39525455,
|
||||
KRB4ET_TKT_FIL_INI = 39525456,
|
||||
KRB4ET_KNAME_FMT = 39525457
|
||||
} krb_error_number;
|
||||
|
||||
#define ERROR_TABLE_BASE_krb 39525376
|
||||
|
||||
#define COM_ERR_BINDDOMAIN_krb "heim_com_err39525376"
|
||||
|
||||
#endif /* __krb_err_h__ */
|
0
gen/include/ne_session.h
Normal file
0
gen/include/ne_session.h
Normal file
0
gen/include/network/private.h
Normal file
0
gen/include/network/private.h
Normal file
358
gen/include/pkcs12_asn1.h
Executable file
358
gen/include/pkcs12_asn1.h
Executable file
@ -0,0 +1,358 @@
|
||||
/* Generated from /Users/andyhyatt/Downloads/Heimdal-498.50.8/lib/asn1/pkcs12.asn1 */
|
||||
/* Do not edit */
|
||||
|
||||
#ifndef __pkcs12_asn1_h__
|
||||
#define __pkcs12_asn1_h__
|
||||
|
||||
#include <stddef.h>
|
||||
#include <time.h>
|
||||
|
||||
#ifndef __asn1_common_definitions__
|
||||
#define __asn1_common_definitions__
|
||||
|
||||
#ifndef __HEIM_BASE_DATA__
|
||||
#define __HEIM_BASE_DATA__ 1
|
||||
struct heim_base_data {
|
||||
size_t length;
|
||||
void *data;
|
||||
};
|
||||
#endif
|
||||
|
||||
typedef struct heim_integer {
|
||||
size_t length;
|
||||
void *data;
|
||||
int negative;
|
||||
} heim_integer;
|
||||
|
||||
typedef struct heim_base_data heim_octet_string;
|
||||
|
||||
typedef char *heim_general_string;
|
||||
|
||||
typedef char *heim_utf8_string;
|
||||
|
||||
typedef struct heim_base_data heim_printable_string;
|
||||
|
||||
typedef struct heim_base_data heim_ia5_string;
|
||||
|
||||
typedef struct heim_bmp_string {
|
||||
size_t length;
|
||||
uint16_t *data;
|
||||
} heim_bmp_string;
|
||||
|
||||
typedef struct heim_universal_string {
|
||||
size_t length;
|
||||
uint32_t *data;
|
||||
} heim_universal_string;
|
||||
|
||||
typedef char *heim_visible_string;
|
||||
|
||||
typedef struct heim_oid {
|
||||
size_t length;
|
||||
unsigned *components;
|
||||
} heim_oid;
|
||||
|
||||
typedef struct heim_bit_string {
|
||||
size_t length;
|
||||
void *data;
|
||||
} heim_bit_string;
|
||||
|
||||
typedef struct heim_base_data heim_any;
|
||||
typedef struct heim_base_data heim_any_set;
|
||||
|
||||
#define ASN1_MALLOC_ENCODE(T, B, BL, S, L, R) \
|
||||
do { \
|
||||
(BL) = length_##T((S)); \
|
||||
(B) = malloc((BL)); \
|
||||
if((B) == NULL) { \
|
||||
(R) = ENOMEM; \
|
||||
} else { \
|
||||
(R) = encode_##T(((unsigned char*)(B)) + (BL) - 1, (BL), \
|
||||
(S), (L)); \
|
||||
if((R) != 0) { \
|
||||
free((B)); \
|
||||
(B) = NULL; \
|
||||
} \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#define ASN1_ENCODE_CFMutableData(_TYPE, _CFDATA, S, R) \
|
||||
do { \
|
||||
size_t __length##_TYPE; \
|
||||
size_t __size##_TYPE = length_##_TYPE((S)); \
|
||||
(_CFDATA) = CFDataCreateMutable(NULL, (__size##_TYPE)); \
|
||||
if((_CFDATA) == NULL) { \
|
||||
(R) = ENOMEM; \
|
||||
} else { \
|
||||
CFDataSetLength((_CFDATA), (__size##_TYPE)); \
|
||||
(R) = encode_##_TYPE(((unsigned char*)(CFDataGetMutableBytePtr((_CFDATA)))) + (__size##_TYPE) - 1, (__size##_TYPE), \
|
||||
(S), &(__length##_TYPE)); \
|
||||
if((R) != 0) { \
|
||||
CFRelease((_CFDATA)); \
|
||||
(_CFDATA) = NULL; \
|
||||
} \
|
||||
if((__size##_TYPE) != (__length##_TYPE)) { \
|
||||
asn1_abort("internal asn1 error"); \
|
||||
} \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#ifdef _WIN32
|
||||
#ifndef ASN1_LIB
|
||||
#define ASN1EXP __declspec(dllimport)
|
||||
#else
|
||||
#define ASN1EXP
|
||||
#endif
|
||||
#define ASN1CALL __stdcall
|
||||
#else
|
||||
#define ASN1EXP
|
||||
#define ASN1CALL
|
||||
#endif
|
||||
struct units;
|
||||
|
||||
#endif
|
||||
|
||||
#include <cms_asn1.h>
|
||||
#include <rfc2459_asn1.h>
|
||||
#include <heim_asn1.h>
|
||||
/* OBJECT IDENTIFIER id-pkcs-12 ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-12(12) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pkcs_12;
|
||||
#define ASN1_OID_ID_PKCS_12 (&asn1_oid_id_pkcs_12)
|
||||
|
||||
/* OBJECT IDENTIFIER id-pkcs-12PbeIds ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-12(12) label-less(1) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pkcs_12PbeIds;
|
||||
#define ASN1_OID_ID_PKCS_12PBEIDS (&asn1_oid_id_pkcs_12PbeIds)
|
||||
|
||||
/* OBJECT IDENTIFIER id-pbeWithSHAAnd128BitRC4 ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-12(12) label-less(1) label-less(1) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pbeWithSHAAnd128BitRC4;
|
||||
#define ASN1_OID_ID_PBEWITHSHAAND128BITRC4 (&asn1_oid_id_pbeWithSHAAnd128BitRC4)
|
||||
|
||||
/* OBJECT IDENTIFIER id-pbeWithSHAAnd40BitRC4 ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-12(12) label-less(1) label-less(2) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pbeWithSHAAnd40BitRC4;
|
||||
#define ASN1_OID_ID_PBEWITHSHAAND40BITRC4 (&asn1_oid_id_pbeWithSHAAnd40BitRC4)
|
||||
|
||||
/* OBJECT IDENTIFIER id-pbeWithSHAAnd3-KeyTripleDES-CBC ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-12(12) label-less(1) label-less(3) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pbeWithSHAAnd3_KeyTripleDES_CBC;
|
||||
#define ASN1_OID_ID_PBEWITHSHAAND3_KEYTRIPLEDES_CBC (&asn1_oid_id_pbeWithSHAAnd3_KeyTripleDES_CBC)
|
||||
|
||||
/* OBJECT IDENTIFIER id-pbeWithSHAAnd2-KeyTripleDES-CBC ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-12(12) label-less(1) label-less(4) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pbeWithSHAAnd2_KeyTripleDES_CBC;
|
||||
#define ASN1_OID_ID_PBEWITHSHAAND2_KEYTRIPLEDES_CBC (&asn1_oid_id_pbeWithSHAAnd2_KeyTripleDES_CBC)
|
||||
|
||||
/* OBJECT IDENTIFIER id-pbeWithSHAAnd128BitRC2-CBC ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-12(12) label-less(1) label-less(5) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pbeWithSHAAnd128BitRC2_CBC;
|
||||
#define ASN1_OID_ID_PBEWITHSHAAND128BITRC2_CBC (&asn1_oid_id_pbeWithSHAAnd128BitRC2_CBC)
|
||||
|
||||
/* OBJECT IDENTIFIER id-pbewithSHAAnd40BitRC2-CBC ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-12(12) label-less(1) label-less(6) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pbewithSHAAnd40BitRC2_CBC;
|
||||
#define ASN1_OID_ID_PBEWITHSHAAND40BITRC2_CBC (&asn1_oid_id_pbewithSHAAnd40BitRC2_CBC)
|
||||
|
||||
/* OBJECT IDENTIFIER id-pkcs12-bagtypes ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-12(12) label-less(10) label-less(1) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pkcs12_bagtypes;
|
||||
#define ASN1_OID_ID_PKCS12_BAGTYPES (&asn1_oid_id_pkcs12_bagtypes)
|
||||
|
||||
/* OBJECT IDENTIFIER id-pkcs12-keyBag ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-12(12) label-less(10) label-less(1) label-less(1) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pkcs12_keyBag;
|
||||
#define ASN1_OID_ID_PKCS12_KEYBAG (&asn1_oid_id_pkcs12_keyBag)
|
||||
|
||||
/* OBJECT IDENTIFIER id-pkcs12-pkcs8ShroudedKeyBag ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-12(12) label-less(10) label-less(1) label-less(2) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pkcs12_pkcs8ShroudedKeyBag;
|
||||
#define ASN1_OID_ID_PKCS12_PKCS8SHROUDEDKEYBAG (&asn1_oid_id_pkcs12_pkcs8ShroudedKeyBag)
|
||||
|
||||
/* OBJECT IDENTIFIER id-pkcs12-certBag ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-12(12) label-less(10) label-less(1) label-less(3) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pkcs12_certBag;
|
||||
#define ASN1_OID_ID_PKCS12_CERTBAG (&asn1_oid_id_pkcs12_certBag)
|
||||
|
||||
/* OBJECT IDENTIFIER id-pkcs12-crlBag ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-12(12) label-less(10) label-less(1) label-less(4) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pkcs12_crlBag;
|
||||
#define ASN1_OID_ID_PKCS12_CRLBAG (&asn1_oid_id_pkcs12_crlBag)
|
||||
|
||||
/* OBJECT IDENTIFIER id-pkcs12-secretBag ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-12(12) label-less(10) label-less(1) label-less(5) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pkcs12_secretBag;
|
||||
#define ASN1_OID_ID_PKCS12_SECRETBAG (&asn1_oid_id_pkcs12_secretBag)
|
||||
|
||||
/* OBJECT IDENTIFIER id-pkcs12-safeContentsBag ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-12(12) label-less(10) label-less(1) label-less(6) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pkcs12_safeContentsBag;
|
||||
#define ASN1_OID_ID_PKCS12_SAFECONTENTSBAG (&asn1_oid_id_pkcs12_safeContentsBag)
|
||||
|
||||
/*
|
||||
PKCS12-MacData ::= SEQUENCE {
|
||||
mac DigestInfo,
|
||||
macSalt OCTET STRING,
|
||||
iterations INTEGER OPTIONAL,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct PKCS12_MacData {
|
||||
DigestInfo mac;
|
||||
heim_octet_string macSalt;
|
||||
heim_integer *iterations;
|
||||
} PKCS12_MacData;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_PKCS12_MacData(const unsigned char *, size_t, PKCS12_MacData *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_PKCS12_MacData(unsigned char *, size_t, const PKCS12_MacData *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_PKCS12_MacData(const PKCS12_MacData *);
|
||||
ASN1EXP int ASN1CALL copy_PKCS12_MacData (const PKCS12_MacData *, PKCS12_MacData *);
|
||||
ASN1EXP void ASN1CALL free_PKCS12_MacData (PKCS12_MacData *);
|
||||
|
||||
|
||||
/*
|
||||
PKCS12-PFX ::= SEQUENCE {
|
||||
version INTEGER,
|
||||
authSafe ContentInfo,
|
||||
macData PKCS12-MacData OPTIONAL,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct PKCS12_PFX {
|
||||
heim_integer version;
|
||||
ContentInfo authSafe;
|
||||
PKCS12_MacData *macData;
|
||||
} PKCS12_PFX;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_PKCS12_PFX(const unsigned char *, size_t, PKCS12_PFX *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_PKCS12_PFX(unsigned char *, size_t, const PKCS12_PFX *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_PKCS12_PFX(const PKCS12_PFX *);
|
||||
ASN1EXP int ASN1CALL copy_PKCS12_PFX (const PKCS12_PFX *, PKCS12_PFX *);
|
||||
ASN1EXP void ASN1CALL free_PKCS12_PFX (PKCS12_PFX *);
|
||||
|
||||
|
||||
/*
|
||||
PKCS12-AuthenticatedSafe ::= SEQUENCE OF ContentInfo
|
||||
*/
|
||||
|
||||
typedef struct PKCS12_AuthenticatedSafe {
|
||||
unsigned int len;
|
||||
ContentInfo *val;
|
||||
} PKCS12_AuthenticatedSafe;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_PKCS12_AuthenticatedSafe(const unsigned char *, size_t, PKCS12_AuthenticatedSafe *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_PKCS12_AuthenticatedSafe(unsigned char *, size_t, const PKCS12_AuthenticatedSafe *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_PKCS12_AuthenticatedSafe(const PKCS12_AuthenticatedSafe *);
|
||||
ASN1EXP int ASN1CALL copy_PKCS12_AuthenticatedSafe (const PKCS12_AuthenticatedSafe *, PKCS12_AuthenticatedSafe *);
|
||||
ASN1EXP void ASN1CALL free_PKCS12_AuthenticatedSafe (PKCS12_AuthenticatedSafe *);
|
||||
|
||||
|
||||
/*
|
||||
PKCS12-Attribute ::= SEQUENCE {
|
||||
attrId OBJECT IDENTIFIER,
|
||||
attrValues heim_any_set,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct PKCS12_Attribute {
|
||||
heim_oid attrId;
|
||||
heim_any_set attrValues;
|
||||
} PKCS12_Attribute;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_PKCS12_Attribute(const unsigned char *, size_t, PKCS12_Attribute *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_PKCS12_Attribute(unsigned char *, size_t, const PKCS12_Attribute *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_PKCS12_Attribute(const PKCS12_Attribute *);
|
||||
ASN1EXP int ASN1CALL copy_PKCS12_Attribute (const PKCS12_Attribute *, PKCS12_Attribute *);
|
||||
ASN1EXP void ASN1CALL free_PKCS12_Attribute (PKCS12_Attribute *);
|
||||
|
||||
|
||||
/*
|
||||
PKCS12-Attributes ::= SET OF PKCS12-Attribute
|
||||
*/
|
||||
|
||||
typedef struct PKCS12_Attributes {
|
||||
unsigned int len;
|
||||
PKCS12_Attribute *val;
|
||||
} PKCS12_Attributes;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_PKCS12_Attributes(const unsigned char *, size_t, PKCS12_Attributes *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_PKCS12_Attributes(unsigned char *, size_t, const PKCS12_Attributes *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_PKCS12_Attributes(const PKCS12_Attributes *);
|
||||
ASN1EXP int ASN1CALL copy_PKCS12_Attributes (const PKCS12_Attributes *, PKCS12_Attributes *);
|
||||
ASN1EXP void ASN1CALL free_PKCS12_Attributes (PKCS12_Attributes *);
|
||||
|
||||
|
||||
/*
|
||||
PKCS12-SafeBag ::= SEQUENCE {
|
||||
bagId OBJECT IDENTIFIER,
|
||||
bagValue [0] heim_any,
|
||||
bagAttributes PKCS12-Attributes OPTIONAL,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct PKCS12_SafeBag {
|
||||
heim_oid bagId;
|
||||
heim_any bagValue;
|
||||
PKCS12_Attributes *bagAttributes;
|
||||
} PKCS12_SafeBag;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_PKCS12_SafeBag(const unsigned char *, size_t, PKCS12_SafeBag *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_PKCS12_SafeBag(unsigned char *, size_t, const PKCS12_SafeBag *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_PKCS12_SafeBag(const PKCS12_SafeBag *);
|
||||
ASN1EXP int ASN1CALL copy_PKCS12_SafeBag (const PKCS12_SafeBag *, PKCS12_SafeBag *);
|
||||
ASN1EXP void ASN1CALL free_PKCS12_SafeBag (PKCS12_SafeBag *);
|
||||
|
||||
|
||||
/*
|
||||
PKCS12-SafeContents ::= SEQUENCE OF PKCS12-SafeBag
|
||||
*/
|
||||
|
||||
typedef struct PKCS12_SafeContents {
|
||||
unsigned int len;
|
||||
PKCS12_SafeBag *val;
|
||||
} PKCS12_SafeContents;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_PKCS12_SafeContents(const unsigned char *, size_t, PKCS12_SafeContents *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_PKCS12_SafeContents(unsigned char *, size_t, const PKCS12_SafeContents *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_PKCS12_SafeContents(const PKCS12_SafeContents *);
|
||||
ASN1EXP int ASN1CALL copy_PKCS12_SafeContents (const PKCS12_SafeContents *, PKCS12_SafeContents *);
|
||||
ASN1EXP void ASN1CALL free_PKCS12_SafeContents (PKCS12_SafeContents *);
|
||||
|
||||
|
||||
/*
|
||||
PKCS12-CertBag ::= SEQUENCE {
|
||||
certType OBJECT IDENTIFIER,
|
||||
certValue [0] heim_any,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct PKCS12_CertBag {
|
||||
heim_oid certType;
|
||||
heim_any certValue;
|
||||
} PKCS12_CertBag;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_PKCS12_CertBag(const unsigned char *, size_t, PKCS12_CertBag *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_PKCS12_CertBag(unsigned char *, size_t, const PKCS12_CertBag *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_PKCS12_CertBag(const PKCS12_CertBag *);
|
||||
ASN1EXP int ASN1CALL copy_PKCS12_CertBag (const PKCS12_CertBag *, PKCS12_CertBag *);
|
||||
ASN1EXP void ASN1CALL free_PKCS12_CertBag (PKCS12_CertBag *);
|
||||
|
||||
|
||||
/*
|
||||
PKCS12-PBEParams ::= SEQUENCE {
|
||||
salt OCTET STRING,
|
||||
iterations INTEGER (0..-1) OPTIONAL,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct PKCS12_PBEParams {
|
||||
heim_octet_string salt;
|
||||
unsigned int *iterations;
|
||||
} PKCS12_PBEParams;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_PKCS12_PBEParams(const unsigned char *, size_t, PKCS12_PBEParams *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_PKCS12_PBEParams(unsigned char *, size_t, const PKCS12_PBEParams *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_PKCS12_PBEParams(const PKCS12_PBEParams *);
|
||||
ASN1EXP int ASN1CALL copy_PKCS12_PBEParams (const PKCS12_PBEParams *, PKCS12_PBEParams *);
|
||||
ASN1EXP void ASN1CALL free_PKCS12_PBEParams (PKCS12_PBEParams *);
|
||||
|
||||
|
||||
/*
|
||||
PKCS12-OctetString ::= OCTET STRING
|
||||
*/
|
||||
|
||||
typedef heim_octet_string PKCS12_OctetString;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_PKCS12_OctetString(const unsigned char *, size_t, PKCS12_OctetString *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_PKCS12_OctetString(unsigned char *, size_t, const PKCS12_OctetString *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_PKCS12_OctetString(const PKCS12_OctetString *);
|
||||
ASN1EXP int ASN1CALL copy_PKCS12_OctetString (const PKCS12_OctetString *, PKCS12_OctetString *);
|
||||
ASN1EXP void ASN1CALL free_PKCS12_OctetString (PKCS12_OctetString *);
|
||||
|
||||
|
||||
#endif /* __pkcs12_asn1_h__ */
|
215
gen/include/pkcs8_asn1.h
Executable file
215
gen/include/pkcs8_asn1.h
Executable file
@ -0,0 +1,215 @@
|
||||
/* Generated from /Users/andyhyatt/Downloads/Heimdal-498.50.8/lib/asn1/pkcs8.asn1 */
|
||||
/* Do not edit */
|
||||
|
||||
#ifndef __pkcs8_asn1_h__
|
||||
#define __pkcs8_asn1_h__
|
||||
|
||||
#include <stddef.h>
|
||||
#include <time.h>
|
||||
|
||||
#ifndef __asn1_common_definitions__
|
||||
#define __asn1_common_definitions__
|
||||
|
||||
#ifndef __HEIM_BASE_DATA__
|
||||
#define __HEIM_BASE_DATA__ 1
|
||||
struct heim_base_data {
|
||||
size_t length;
|
||||
void *data;
|
||||
};
|
||||
#endif
|
||||
|
||||
typedef struct heim_integer {
|
||||
size_t length;
|
||||
void *data;
|
||||
int negative;
|
||||
} heim_integer;
|
||||
|
||||
typedef struct heim_base_data heim_octet_string;
|
||||
|
||||
typedef char *heim_general_string;
|
||||
|
||||
typedef char *heim_utf8_string;
|
||||
|
||||
typedef struct heim_base_data heim_printable_string;
|
||||
|
||||
typedef struct heim_base_data heim_ia5_string;
|
||||
|
||||
typedef struct heim_bmp_string {
|
||||
size_t length;
|
||||
uint16_t *data;
|
||||
} heim_bmp_string;
|
||||
|
||||
typedef struct heim_universal_string {
|
||||
size_t length;
|
||||
uint32_t *data;
|
||||
} heim_universal_string;
|
||||
|
||||
typedef char *heim_visible_string;
|
||||
|
||||
typedef struct heim_oid {
|
||||
size_t length;
|
||||
unsigned *components;
|
||||
} heim_oid;
|
||||
|
||||
typedef struct heim_bit_string {
|
||||
size_t length;
|
||||
void *data;
|
||||
} heim_bit_string;
|
||||
|
||||
typedef struct heim_base_data heim_any;
|
||||
typedef struct heim_base_data heim_any_set;
|
||||
|
||||
#define ASN1_MALLOC_ENCODE(T, B, BL, S, L, R) \
|
||||
do { \
|
||||
(BL) = length_##T((S)); \
|
||||
(B) = malloc((BL)); \
|
||||
if((B) == NULL) { \
|
||||
(R) = ENOMEM; \
|
||||
} else { \
|
||||
(R) = encode_##T(((unsigned char*)(B)) + (BL) - 1, (BL), \
|
||||
(S), (L)); \
|
||||
if((R) != 0) { \
|
||||
free((B)); \
|
||||
(B) = NULL; \
|
||||
} \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#define ASN1_ENCODE_CFMutableData(_TYPE, _CFDATA, S, R) \
|
||||
do { \
|
||||
size_t __length##_TYPE; \
|
||||
size_t __size##_TYPE = length_##_TYPE((S)); \
|
||||
(_CFDATA) = CFDataCreateMutable(NULL, (__size##_TYPE)); \
|
||||
if((_CFDATA) == NULL) { \
|
||||
(R) = ENOMEM; \
|
||||
} else { \
|
||||
CFDataSetLength((_CFDATA), (__size##_TYPE)); \
|
||||
(R) = encode_##_TYPE(((unsigned char*)(CFDataGetMutableBytePtr((_CFDATA)))) + (__size##_TYPE) - 1, (__size##_TYPE), \
|
||||
(S), &(__length##_TYPE)); \
|
||||
if((R) != 0) { \
|
||||
CFRelease((_CFDATA)); \
|
||||
(_CFDATA) = NULL; \
|
||||
} \
|
||||
if((__size##_TYPE) != (__length##_TYPE)) { \
|
||||
asn1_abort("internal asn1 error"); \
|
||||
} \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#ifdef _WIN32
|
||||
#ifndef ASN1_LIB
|
||||
#define ASN1EXP __declspec(dllimport)
|
||||
#else
|
||||
#define ASN1EXP
|
||||
#endif
|
||||
#define ASN1CALL __stdcall
|
||||
#else
|
||||
#define ASN1EXP
|
||||
#define ASN1CALL
|
||||
#endif
|
||||
struct units;
|
||||
|
||||
#endif
|
||||
|
||||
#include <rfc2459_asn1.h>
|
||||
/*
|
||||
PKCS8PrivateKeyAlgorithmIdentifier ::= AlgorithmIdentifier
|
||||
*/
|
||||
|
||||
typedef AlgorithmIdentifier PKCS8PrivateKeyAlgorithmIdentifier;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_PKCS8PrivateKeyAlgorithmIdentifier(const unsigned char *, size_t, PKCS8PrivateKeyAlgorithmIdentifier *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_PKCS8PrivateKeyAlgorithmIdentifier(unsigned char *, size_t, const PKCS8PrivateKeyAlgorithmIdentifier *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_PKCS8PrivateKeyAlgorithmIdentifier(const PKCS8PrivateKeyAlgorithmIdentifier *);
|
||||
ASN1EXP int ASN1CALL copy_PKCS8PrivateKeyAlgorithmIdentifier (const PKCS8PrivateKeyAlgorithmIdentifier *, PKCS8PrivateKeyAlgorithmIdentifier *);
|
||||
ASN1EXP void ASN1CALL free_PKCS8PrivateKeyAlgorithmIdentifier (PKCS8PrivateKeyAlgorithmIdentifier *);
|
||||
|
||||
|
||||
/*
|
||||
PKCS8PrivateKey ::= OCTET STRING
|
||||
*/
|
||||
|
||||
typedef heim_octet_string PKCS8PrivateKey;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_PKCS8PrivateKey(const unsigned char *, size_t, PKCS8PrivateKey *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_PKCS8PrivateKey(unsigned char *, size_t, const PKCS8PrivateKey *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_PKCS8PrivateKey(const PKCS8PrivateKey *);
|
||||
ASN1EXP int ASN1CALL copy_PKCS8PrivateKey (const PKCS8PrivateKey *, PKCS8PrivateKey *);
|
||||
ASN1EXP void ASN1CALL free_PKCS8PrivateKey (PKCS8PrivateKey *);
|
||||
|
||||
|
||||
/*
|
||||
PKCS8Attributes ::= SET OF Attribute
|
||||
*/
|
||||
|
||||
typedef struct PKCS8Attributes {
|
||||
unsigned int len;
|
||||
Attribute *val;
|
||||
} PKCS8Attributes;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_PKCS8Attributes(const unsigned char *, size_t, PKCS8Attributes *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_PKCS8Attributes(unsigned char *, size_t, const PKCS8Attributes *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_PKCS8Attributes(const PKCS8Attributes *);
|
||||
ASN1EXP int ASN1CALL copy_PKCS8Attributes (const PKCS8Attributes *, PKCS8Attributes *);
|
||||
ASN1EXP void ASN1CALL free_PKCS8Attributes (PKCS8Attributes *);
|
||||
|
||||
|
||||
/*
|
||||
PKCS8PrivateKeyInfo ::= SEQUENCE {
|
||||
version INTEGER,
|
||||
privateKeyAlgorithm PKCS8PrivateKeyAlgorithmIdentifier,
|
||||
privateKey PKCS8PrivateKey,
|
||||
attributes [0] IMPLICIT SET OF Attribute OPTIONAL,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct PKCS8PrivateKeyInfo {
|
||||
heim_integer version;
|
||||
PKCS8PrivateKeyAlgorithmIdentifier privateKeyAlgorithm;
|
||||
PKCS8PrivateKey privateKey;
|
||||
struct PKCS8PrivateKeyInfo_attributes {
|
||||
unsigned int len;
|
||||
Attribute *val;
|
||||
} *attributes;
|
||||
} PKCS8PrivateKeyInfo;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_PKCS8PrivateKeyInfo(const unsigned char *, size_t, PKCS8PrivateKeyInfo *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_PKCS8PrivateKeyInfo(unsigned char *, size_t, const PKCS8PrivateKeyInfo *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_PKCS8PrivateKeyInfo(const PKCS8PrivateKeyInfo *);
|
||||
ASN1EXP int ASN1CALL copy_PKCS8PrivateKeyInfo (const PKCS8PrivateKeyInfo *, PKCS8PrivateKeyInfo *);
|
||||
ASN1EXP void ASN1CALL free_PKCS8PrivateKeyInfo (PKCS8PrivateKeyInfo *);
|
||||
|
||||
|
||||
/*
|
||||
PKCS8EncryptedData ::= OCTET STRING
|
||||
*/
|
||||
|
||||
typedef heim_octet_string PKCS8EncryptedData;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_PKCS8EncryptedData(const unsigned char *, size_t, PKCS8EncryptedData *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_PKCS8EncryptedData(unsigned char *, size_t, const PKCS8EncryptedData *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_PKCS8EncryptedData(const PKCS8EncryptedData *);
|
||||
ASN1EXP int ASN1CALL copy_PKCS8EncryptedData (const PKCS8EncryptedData *, PKCS8EncryptedData *);
|
||||
ASN1EXP void ASN1CALL free_PKCS8EncryptedData (PKCS8EncryptedData *);
|
||||
|
||||
|
||||
/*
|
||||
PKCS8EncryptedPrivateKeyInfo ::= SEQUENCE {
|
||||
encryptionAlgorithm AlgorithmIdentifier,
|
||||
encryptedData PKCS8EncryptedData,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct PKCS8EncryptedPrivateKeyInfo {
|
||||
AlgorithmIdentifier encryptionAlgorithm;
|
||||
PKCS8EncryptedData encryptedData;
|
||||
} PKCS8EncryptedPrivateKeyInfo;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_PKCS8EncryptedPrivateKeyInfo(const unsigned char *, size_t, PKCS8EncryptedPrivateKeyInfo *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_PKCS8EncryptedPrivateKeyInfo(unsigned char *, size_t, const PKCS8EncryptedPrivateKeyInfo *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_PKCS8EncryptedPrivateKeyInfo(const PKCS8EncryptedPrivateKeyInfo *);
|
||||
ASN1EXP int ASN1CALL copy_PKCS8EncryptedPrivateKeyInfo (const PKCS8EncryptedPrivateKeyInfo *, PKCS8EncryptedPrivateKeyInfo *);
|
||||
ASN1EXP void ASN1CALL free_PKCS8EncryptedPrivateKeyInfo (PKCS8EncryptedPrivateKeyInfo *);
|
||||
|
||||
|
||||
#endif /* __pkcs8_asn1_h__ */
|
183
gen/include/pkcs9_asn1.h
Executable file
183
gen/include/pkcs9_asn1.h
Executable file
@ -0,0 +1,183 @@
|
||||
/* Generated from /Users/andyhyatt/Downloads/Heimdal-498.50.8/lib/asn1/pkcs9.asn1 */
|
||||
/* Do not edit */
|
||||
|
||||
#ifndef __pkcs9_asn1_h__
|
||||
#define __pkcs9_asn1_h__
|
||||
|
||||
#include <stddef.h>
|
||||
#include <time.h>
|
||||
|
||||
#ifndef __asn1_common_definitions__
|
||||
#define __asn1_common_definitions__
|
||||
|
||||
#ifndef __HEIM_BASE_DATA__
|
||||
#define __HEIM_BASE_DATA__ 1
|
||||
struct heim_base_data {
|
||||
size_t length;
|
||||
void *data;
|
||||
};
|
||||
#endif
|
||||
|
||||
typedef struct heim_integer {
|
||||
size_t length;
|
||||
void *data;
|
||||
int negative;
|
||||
} heim_integer;
|
||||
|
||||
typedef struct heim_base_data heim_octet_string;
|
||||
|
||||
typedef char *heim_general_string;
|
||||
|
||||
typedef char *heim_utf8_string;
|
||||
|
||||
typedef struct heim_base_data heim_printable_string;
|
||||
|
||||
typedef struct heim_base_data heim_ia5_string;
|
||||
|
||||
typedef struct heim_bmp_string {
|
||||
size_t length;
|
||||
uint16_t *data;
|
||||
} heim_bmp_string;
|
||||
|
||||
typedef struct heim_universal_string {
|
||||
size_t length;
|
||||
uint32_t *data;
|
||||
} heim_universal_string;
|
||||
|
||||
typedef char *heim_visible_string;
|
||||
|
||||
typedef struct heim_oid {
|
||||
size_t length;
|
||||
unsigned *components;
|
||||
} heim_oid;
|
||||
|
||||
typedef struct heim_bit_string {
|
||||
size_t length;
|
||||
void *data;
|
||||
} heim_bit_string;
|
||||
|
||||
typedef struct heim_base_data heim_any;
|
||||
typedef struct heim_base_data heim_any_set;
|
||||
|
||||
#define ASN1_MALLOC_ENCODE(T, B, BL, S, L, R) \
|
||||
do { \
|
||||
(BL) = length_##T((S)); \
|
||||
(B) = malloc((BL)); \
|
||||
if((B) == NULL) { \
|
||||
(R) = ENOMEM; \
|
||||
} else { \
|
||||
(R) = encode_##T(((unsigned char*)(B)) + (BL) - 1, (BL), \
|
||||
(S), (L)); \
|
||||
if((R) != 0) { \
|
||||
free((B)); \
|
||||
(B) = NULL; \
|
||||
} \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#define ASN1_ENCODE_CFMutableData(_TYPE, _CFDATA, S, R) \
|
||||
do { \
|
||||
size_t __length##_TYPE; \
|
||||
size_t __size##_TYPE = length_##_TYPE((S)); \
|
||||
(_CFDATA) = CFDataCreateMutable(NULL, (__size##_TYPE)); \
|
||||
if((_CFDATA) == NULL) { \
|
||||
(R) = ENOMEM; \
|
||||
} else { \
|
||||
CFDataSetLength((_CFDATA), (__size##_TYPE)); \
|
||||
(R) = encode_##_TYPE(((unsigned char*)(CFDataGetMutableBytePtr((_CFDATA)))) + (__size##_TYPE) - 1, (__size##_TYPE), \
|
||||
(S), &(__length##_TYPE)); \
|
||||
if((R) != 0) { \
|
||||
CFRelease((_CFDATA)); \
|
||||
(_CFDATA) = NULL; \
|
||||
} \
|
||||
if((__size##_TYPE) != (__length##_TYPE)) { \
|
||||
asn1_abort("internal asn1 error"); \
|
||||
} \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#ifdef _WIN32
|
||||
#ifndef ASN1_LIB
|
||||
#define ASN1EXP __declspec(dllimport)
|
||||
#else
|
||||
#define ASN1EXP
|
||||
#endif
|
||||
#define ASN1CALL __stdcall
|
||||
#else
|
||||
#define ASN1EXP
|
||||
#define ASN1CALL
|
||||
#endif
|
||||
struct units;
|
||||
|
||||
#endif
|
||||
|
||||
/* OBJECT IDENTIFIER id-pkcs-9 ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pkcs_9;
|
||||
#define ASN1_OID_ID_PKCS_9 (&asn1_oid_id_pkcs_9)
|
||||
|
||||
/* OBJECT IDENTIFIER id-pkcs9-emailAddress ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) label-less(1) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pkcs9_emailAddress;
|
||||
#define ASN1_OID_ID_PKCS9_EMAILADDRESS (&asn1_oid_id_pkcs9_emailAddress)
|
||||
|
||||
/* OBJECT IDENTIFIER id-pkcs9-contentType ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) label-less(3) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pkcs9_contentType;
|
||||
#define ASN1_OID_ID_PKCS9_CONTENTTYPE (&asn1_oid_id_pkcs9_contentType)
|
||||
|
||||
/* OBJECT IDENTIFIER id-pkcs9-messageDigest ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) label-less(4) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pkcs9_messageDigest;
|
||||
#define ASN1_OID_ID_PKCS9_MESSAGEDIGEST (&asn1_oid_id_pkcs9_messageDigest)
|
||||
|
||||
/* OBJECT IDENTIFIER id-pkcs9-signingTime ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) label-less(5) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pkcs9_signingTime;
|
||||
#define ASN1_OID_ID_PKCS9_SIGNINGTIME (&asn1_oid_id_pkcs9_signingTime)
|
||||
|
||||
/* OBJECT IDENTIFIER id-pkcs9-countersignature ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) label-less(6) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pkcs9_countersignature;
|
||||
#define ASN1_OID_ID_PKCS9_COUNTERSIGNATURE (&asn1_oid_id_pkcs9_countersignature)
|
||||
|
||||
/* OBJECT IDENTIFIER id-pkcs-9-at-friendlyName ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) label-less(20) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pkcs_9_at_friendlyName;
|
||||
#define ASN1_OID_ID_PKCS_9_AT_FRIENDLYNAME (&asn1_oid_id_pkcs_9_at_friendlyName)
|
||||
|
||||
/* OBJECT IDENTIFIER id-pkcs-9-at-localKeyId ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) label-less(21) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pkcs_9_at_localKeyId;
|
||||
#define ASN1_OID_ID_PKCS_9_AT_LOCALKEYID (&asn1_oid_id_pkcs_9_at_localKeyId)
|
||||
|
||||
/* OBJECT IDENTIFIER id-pkcs-9-at-certTypes ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) label-less(22) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pkcs_9_at_certTypes;
|
||||
#define ASN1_OID_ID_PKCS_9_AT_CERTTYPES (&asn1_oid_id_pkcs_9_at_certTypes)
|
||||
|
||||
/* OBJECT IDENTIFIER id-pkcs-9-at-certTypes-x509 ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) label-less(22) label-less(1) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pkcs_9_at_certTypes_x509;
|
||||
#define ASN1_OID_ID_PKCS_9_AT_CERTTYPES_X509 (&asn1_oid_id_pkcs_9_at_certTypes_x509)
|
||||
|
||||
/*
|
||||
PKCS9-BMPString ::= BMPString
|
||||
*/
|
||||
|
||||
typedef heim_bmp_string PKCS9_BMPString;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_PKCS9_BMPString(const unsigned char *, size_t, PKCS9_BMPString *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_PKCS9_BMPString(unsigned char *, size_t, const PKCS9_BMPString *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_PKCS9_BMPString(const PKCS9_BMPString *);
|
||||
ASN1EXP int ASN1CALL copy_PKCS9_BMPString (const PKCS9_BMPString *, PKCS9_BMPString *);
|
||||
ASN1EXP void ASN1CALL free_PKCS9_BMPString (PKCS9_BMPString *);
|
||||
|
||||
|
||||
/*
|
||||
PKCS9-friendlyName ::= SET OF PKCS9-BMPString
|
||||
*/
|
||||
|
||||
typedef struct PKCS9_friendlyName {
|
||||
unsigned int len;
|
||||
PKCS9_BMPString *val;
|
||||
} PKCS9_friendlyName;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_PKCS9_friendlyName(const unsigned char *, size_t, PKCS9_friendlyName *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_PKCS9_friendlyName(unsigned char *, size_t, const PKCS9_friendlyName *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_PKCS9_friendlyName(const PKCS9_friendlyName *);
|
||||
ASN1EXP int ASN1CALL copy_PKCS9_friendlyName (const PKCS9_friendlyName *, PKCS9_friendlyName *);
|
||||
ASN1EXP void ASN1CALL free_PKCS9_friendlyName (PKCS9_friendlyName *);
|
||||
|
||||
|
||||
#endif /* __pkcs9_asn1_h__ */
|
770
gen/include/pkinit_asn1.h
Executable file
770
gen/include/pkinit_asn1.h
Executable file
@ -0,0 +1,770 @@
|
||||
/* Generated from /Users/andyhyatt/Downloads/Heimdal-498.50.8/lib/asn1/pkinit.asn1 */
|
||||
/* Do not edit */
|
||||
|
||||
#ifndef __pkinit_asn1_h__
|
||||
#define __pkinit_asn1_h__
|
||||
|
||||
#include <stddef.h>
|
||||
#include <time.h>
|
||||
|
||||
#ifndef __asn1_common_definitions__
|
||||
#define __asn1_common_definitions__
|
||||
|
||||
#ifndef __HEIM_BASE_DATA__
|
||||
#define __HEIM_BASE_DATA__ 1
|
||||
struct heim_base_data {
|
||||
size_t length;
|
||||
void *data;
|
||||
};
|
||||
#endif
|
||||
|
||||
typedef struct heim_integer {
|
||||
size_t length;
|
||||
void *data;
|
||||
int negative;
|
||||
} heim_integer;
|
||||
|
||||
typedef struct heim_base_data heim_octet_string;
|
||||
|
||||
typedef char *heim_general_string;
|
||||
|
||||
typedef char *heim_utf8_string;
|
||||
|
||||
typedef struct heim_base_data heim_printable_string;
|
||||
|
||||
typedef struct heim_base_data heim_ia5_string;
|
||||
|
||||
typedef struct heim_bmp_string {
|
||||
size_t length;
|
||||
uint16_t *data;
|
||||
} heim_bmp_string;
|
||||
|
||||
typedef struct heim_universal_string {
|
||||
size_t length;
|
||||
uint32_t *data;
|
||||
} heim_universal_string;
|
||||
|
||||
typedef char *heim_visible_string;
|
||||
|
||||
typedef struct heim_oid {
|
||||
size_t length;
|
||||
unsigned *components;
|
||||
} heim_oid;
|
||||
|
||||
typedef struct heim_bit_string {
|
||||
size_t length;
|
||||
void *data;
|
||||
} heim_bit_string;
|
||||
|
||||
typedef struct heim_base_data heim_any;
|
||||
typedef struct heim_base_data heim_any_set;
|
||||
|
||||
#define ASN1_MALLOC_ENCODE(T, B, BL, S, L, R) \
|
||||
do { \
|
||||
(BL) = length_##T((S)); \
|
||||
(B) = malloc((BL)); \
|
||||
if((B) == NULL) { \
|
||||
(R) = ENOMEM; \
|
||||
} else { \
|
||||
(R) = encode_##T(((unsigned char*)(B)) + (BL) - 1, (BL), \
|
||||
(S), (L)); \
|
||||
if((R) != 0) { \
|
||||
free((B)); \
|
||||
(B) = NULL; \
|
||||
} \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#define ASN1_ENCODE_CFMutableData(_TYPE, _CFDATA, S, R) \
|
||||
do { \
|
||||
size_t __length##_TYPE; \
|
||||
size_t __size##_TYPE = length_##_TYPE((S)); \
|
||||
(_CFDATA) = CFDataCreateMutable(NULL, (__size##_TYPE)); \
|
||||
if((_CFDATA) == NULL) { \
|
||||
(R) = ENOMEM; \
|
||||
} else { \
|
||||
CFDataSetLength((_CFDATA), (__size##_TYPE)); \
|
||||
(R) = encode_##_TYPE(((unsigned char*)(CFDataGetMutableBytePtr((_CFDATA)))) + (__size##_TYPE) - 1, (__size##_TYPE), \
|
||||
(S), &(__length##_TYPE)); \
|
||||
if((R) != 0) { \
|
||||
CFRelease((_CFDATA)); \
|
||||
(_CFDATA) = NULL; \
|
||||
} \
|
||||
if((__size##_TYPE) != (__length##_TYPE)) { \
|
||||
asn1_abort("internal asn1 error"); \
|
||||
} \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#ifdef _WIN32
|
||||
#ifndef ASN1_LIB
|
||||
#define ASN1EXP __declspec(dllimport)
|
||||
#else
|
||||
#define ASN1EXP
|
||||
#endif
|
||||
#define ASN1CALL __stdcall
|
||||
#else
|
||||
#define ASN1EXP
|
||||
#define ASN1CALL
|
||||
#endif
|
||||
struct units;
|
||||
|
||||
#endif
|
||||
|
||||
#include <krb5_asn1.h>
|
||||
#include <cms_asn1.h>
|
||||
#include <rfc2459_asn1.h>
|
||||
#include <heim_asn1.h>
|
||||
/* OBJECT IDENTIFIER id-pkinit ::= { iso(1) org(3) dod(6) internet(1) security(5) kerberosv5(2) pkinit(3) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pkinit;
|
||||
#define ASN1_OID_ID_PKINIT (&asn1_oid_id_pkinit)
|
||||
|
||||
/* OBJECT IDENTIFIER id-pkauthdata ::= { iso(1) org(3) dod(6) internet(1) security(5) kerberosv5(2) pkinit(3) label-less(1) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pkauthdata;
|
||||
#define ASN1_OID_ID_PKAUTHDATA (&asn1_oid_id_pkauthdata)
|
||||
|
||||
/* OBJECT IDENTIFIER id-pkdhkeydata ::= { iso(1) org(3) dod(6) internet(1) security(5) kerberosv5(2) pkinit(3) label-less(2) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pkdhkeydata;
|
||||
#define ASN1_OID_ID_PKDHKEYDATA (&asn1_oid_id_pkdhkeydata)
|
||||
|
||||
/* OBJECT IDENTIFIER id-pkrkeydata ::= { iso(1) org(3) dod(6) internet(1) security(5) kerberosv5(2) pkinit(3) label-less(3) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pkrkeydata;
|
||||
#define ASN1_OID_ID_PKRKEYDATA (&asn1_oid_id_pkrkeydata)
|
||||
|
||||
/* OBJECT IDENTIFIER id-pkekuoid ::= { iso(1) org(3) dod(6) internet(1) security(5) kerberosv5(2) pkinit(3) label-less(4) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pkekuoid;
|
||||
#define ASN1_OID_ID_PKEKUOID (&asn1_oid_id_pkekuoid)
|
||||
|
||||
/* OBJECT IDENTIFIER id-pkkdcekuoid ::= { iso(1) org(3) dod(6) internet(1) security(5) kerberosv5(2) pkinit(3) label-less(5) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pkkdcekuoid;
|
||||
#define ASN1_OID_ID_PKKDCEKUOID (&asn1_oid_id_pkkdcekuoid)
|
||||
|
||||
/* OBJECT IDENTIFIER id-apple-system-id ::= { label-less(1) label-less(2) label-less(840) label-less(113635) label-less(100) label-less(4) label-less(4) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_apple_system_id;
|
||||
#define ASN1_OID_ID_APPLE_SYSTEM_ID (&asn1_oid_id_apple_system_id)
|
||||
|
||||
/* OBJECT IDENTIFIER id-pkinit-kdf ::= { iso(1) org(3) dod(6) internet(1) security(5) kerberosv5(2) pkinit(3) label-less(6) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pkinit_kdf;
|
||||
#define ASN1_OID_ID_PKINIT_KDF (&asn1_oid_id_pkinit_kdf)
|
||||
|
||||
/* OBJECT IDENTIFIER id-pkinit-kdf-ah-sha1 ::= { iso(1) org(3) dod(6) internet(1) security(5) kerberosv5(2) pkinit(3) label-less(6) label-less(1) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pkinit_kdf_ah_sha1;
|
||||
#define ASN1_OID_ID_PKINIT_KDF_AH_SHA1 (&asn1_oid_id_pkinit_kdf_ah_sha1)
|
||||
|
||||
/* OBJECT IDENTIFIER id-pkinit-kdf-ah-sha256 ::= { iso(1) org(3) dod(6) internet(1) security(5) kerberosv5(2) pkinit(3) label-less(6) label-less(2) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pkinit_kdf_ah_sha256;
|
||||
#define ASN1_OID_ID_PKINIT_KDF_AH_SHA256 (&asn1_oid_id_pkinit_kdf_ah_sha256)
|
||||
|
||||
/* OBJECT IDENTIFIER id-pkinit-kdf-ah-sha512 ::= { iso(1) org(3) dod(6) internet(1) security(5) kerberosv5(2) pkinit(3) label-less(6) label-less(3) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pkinit_kdf_ah_sha512;
|
||||
#define ASN1_OID_ID_PKINIT_KDF_AH_SHA512 (&asn1_oid_id_pkinit_kdf_ah_sha512)
|
||||
|
||||
/* OBJECT IDENTIFIER id-pkinit-san ::= { iso(1) org(3) dod(6) internet(1) security(5) kerberosv5(2) x509-sanan(2) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pkinit_san;
|
||||
#define ASN1_OID_ID_PKINIT_SAN (&asn1_oid_id_pkinit_san)
|
||||
|
||||
/* OBJECT IDENTIFIER id-pkinit-ms-eku ::= { iso(1) org(3) dod(6) internet(1) private(4) enterprise(1) microsoft(311) label-less(20) label-less(2) label-less(2) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pkinit_ms_eku;
|
||||
#define ASN1_OID_ID_PKINIT_MS_EKU (&asn1_oid_id_pkinit_ms_eku)
|
||||
|
||||
/* OBJECT IDENTIFIER id-pkinit-ms-san ::= { iso(1) org(3) dod(6) internet(1) private(4) enterprise(1) microsoft(311) label-less(20) label-less(2) label-less(3) } */
|
||||
extern ASN1EXP const heim_oid asn1_oid_id_pkinit_ms_san;
|
||||
#define ASN1_OID_ID_PKINIT_MS_SAN (&asn1_oid_id_pkinit_ms_san)
|
||||
|
||||
/*
|
||||
MS-UPN-SAN ::= UTF8String
|
||||
*/
|
||||
|
||||
typedef heim_utf8_string MS_UPN_SAN;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_MS_UPN_SAN(const unsigned char *, size_t, MS_UPN_SAN *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_MS_UPN_SAN(unsigned char *, size_t, const MS_UPN_SAN *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_MS_UPN_SAN(const MS_UPN_SAN *);
|
||||
ASN1EXP int ASN1CALL copy_MS_UPN_SAN (const MS_UPN_SAN *, MS_UPN_SAN *);
|
||||
ASN1EXP void ASN1CALL free_MS_UPN_SAN (MS_UPN_SAN *);
|
||||
|
||||
|
||||
enum { pa_pk_as_req = 16 };
|
||||
|
||||
enum { pa_pk_as_rep = 17 };
|
||||
|
||||
enum { td_trusted_certifiers = 104 };
|
||||
|
||||
enum { td_invalid_certificates = 105 };
|
||||
|
||||
enum { td_dh_parameters = 109 };
|
||||
|
||||
/*
|
||||
DHNonce ::= OCTET STRING
|
||||
*/
|
||||
|
||||
typedef heim_octet_string DHNonce;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_DHNonce(const unsigned char *, size_t, DHNonce *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_DHNonce(unsigned char *, size_t, const DHNonce *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_DHNonce(const DHNonce *);
|
||||
ASN1EXP int ASN1CALL copy_DHNonce (const DHNonce *, DHNonce *);
|
||||
ASN1EXP void ASN1CALL free_DHNonce (DHNonce *);
|
||||
|
||||
|
||||
/*
|
||||
KDFAlgorithmId ::= SEQUENCE {
|
||||
kdf-id [0] OBJECT IDENTIFIER,
|
||||
...,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct KDFAlgorithmId {
|
||||
heim_oid kdf_id;
|
||||
} KDFAlgorithmId;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_KDFAlgorithmId(const unsigned char *, size_t, KDFAlgorithmId *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_KDFAlgorithmId(unsigned char *, size_t, const KDFAlgorithmId *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_KDFAlgorithmId(const KDFAlgorithmId *);
|
||||
ASN1EXP int ASN1CALL copy_KDFAlgorithmId (const KDFAlgorithmId *, KDFAlgorithmId *);
|
||||
ASN1EXP void ASN1CALL free_KDFAlgorithmId (KDFAlgorithmId *);
|
||||
|
||||
|
||||
/*
|
||||
TrustedCA ::= SEQUENCE {
|
||||
caName [0] IMPLICIT OCTET STRING,
|
||||
certificateSerialNumber [1] INTEGER OPTIONAL,
|
||||
subjectKeyIdentifier [2] OCTET STRING OPTIONAL,
|
||||
...,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct TrustedCA {
|
||||
heim_octet_string caName;
|
||||
heim_integer *certificateSerialNumber;
|
||||
heim_octet_string *subjectKeyIdentifier;
|
||||
} TrustedCA;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_TrustedCA(const unsigned char *, size_t, TrustedCA *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_TrustedCA(unsigned char *, size_t, const TrustedCA *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_TrustedCA(const TrustedCA *);
|
||||
ASN1EXP int ASN1CALL copy_TrustedCA (const TrustedCA *, TrustedCA *);
|
||||
ASN1EXP void ASN1CALL free_TrustedCA (TrustedCA *);
|
||||
|
||||
|
||||
/*
|
||||
ExternalPrincipalIdentifier ::= SEQUENCE {
|
||||
subjectName [0] IMPLICIT OCTET STRING OPTIONAL,
|
||||
issuerAndSerialNumber [1] IMPLICIT OCTET STRING OPTIONAL,
|
||||
subjectKeyIdentifier [2] IMPLICIT OCTET STRING OPTIONAL,
|
||||
...,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct ExternalPrincipalIdentifier {
|
||||
heim_octet_string *subjectName;
|
||||
heim_octet_string *issuerAndSerialNumber;
|
||||
heim_octet_string *subjectKeyIdentifier;
|
||||
} ExternalPrincipalIdentifier;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_ExternalPrincipalIdentifier(const unsigned char *, size_t, ExternalPrincipalIdentifier *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_ExternalPrincipalIdentifier(unsigned char *, size_t, const ExternalPrincipalIdentifier *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_ExternalPrincipalIdentifier(const ExternalPrincipalIdentifier *);
|
||||
ASN1EXP int ASN1CALL copy_ExternalPrincipalIdentifier (const ExternalPrincipalIdentifier *, ExternalPrincipalIdentifier *);
|
||||
ASN1EXP void ASN1CALL free_ExternalPrincipalIdentifier (ExternalPrincipalIdentifier *);
|
||||
|
||||
|
||||
/*
|
||||
ExternalPrincipalIdentifiers ::= SEQUENCE OF ExternalPrincipalIdentifier
|
||||
*/
|
||||
|
||||
typedef struct ExternalPrincipalIdentifiers {
|
||||
unsigned int len;
|
||||
ExternalPrincipalIdentifier *val;
|
||||
} ExternalPrincipalIdentifiers;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_ExternalPrincipalIdentifiers(const unsigned char *, size_t, ExternalPrincipalIdentifiers *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_ExternalPrincipalIdentifiers(unsigned char *, size_t, const ExternalPrincipalIdentifiers *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_ExternalPrincipalIdentifiers(const ExternalPrincipalIdentifiers *);
|
||||
ASN1EXP int ASN1CALL copy_ExternalPrincipalIdentifiers (const ExternalPrincipalIdentifiers *, ExternalPrincipalIdentifiers *);
|
||||
ASN1EXP void ASN1CALL free_ExternalPrincipalIdentifiers (ExternalPrincipalIdentifiers *);
|
||||
|
||||
|
||||
/*
|
||||
PA-PK-AS-REQ ::= SEQUENCE {
|
||||
signedAuthPack [0] IMPLICIT OCTET STRING,
|
||||
trustedCertifiers [1] ExternalPrincipalIdentifiers OPTIONAL,
|
||||
kdcPkId [2] IMPLICIT OCTET STRING OPTIONAL,
|
||||
...,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct PA_PK_AS_REQ {
|
||||
heim_octet_string signedAuthPack;
|
||||
ExternalPrincipalIdentifiers *trustedCertifiers;
|
||||
heim_octet_string *kdcPkId;
|
||||
} PA_PK_AS_REQ;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_PA_PK_AS_REQ(const unsigned char *, size_t, PA_PK_AS_REQ *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_PA_PK_AS_REQ(unsigned char *, size_t, const PA_PK_AS_REQ *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_PA_PK_AS_REQ(const PA_PK_AS_REQ *);
|
||||
ASN1EXP int ASN1CALL copy_PA_PK_AS_REQ (const PA_PK_AS_REQ *, PA_PK_AS_REQ *);
|
||||
ASN1EXP void ASN1CALL free_PA_PK_AS_REQ (PA_PK_AS_REQ *);
|
||||
|
||||
|
||||
/*
|
||||
PKAuthenticator ::= SEQUENCE {
|
||||
cusec [0] INTEGER,
|
||||
ctime [1] KerberosTime,
|
||||
nonce [2] INTEGER (0..-1),
|
||||
paChecksum [3] OCTET STRING OPTIONAL,
|
||||
...,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct PKAuthenticator {
|
||||
heim_integer cusec;
|
||||
KerberosTime ctime;
|
||||
unsigned int nonce;
|
||||
heim_octet_string *paChecksum;
|
||||
} PKAuthenticator;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_PKAuthenticator(const unsigned char *, size_t, PKAuthenticator *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_PKAuthenticator(unsigned char *, size_t, const PKAuthenticator *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_PKAuthenticator(const PKAuthenticator *);
|
||||
ASN1EXP int ASN1CALL copy_PKAuthenticator (const PKAuthenticator *, PKAuthenticator *);
|
||||
ASN1EXP void ASN1CALL free_PKAuthenticator (PKAuthenticator *);
|
||||
|
||||
|
||||
/*
|
||||
AuthPack ::= SEQUENCE {
|
||||
pkAuthenticator [0] PKAuthenticator,
|
||||
clientPublicValue [1] SubjectPublicKeyInfo OPTIONAL,
|
||||
supportedCMSTypes [2] SEQUENCE OF AlgorithmIdentifier OPTIONAL,
|
||||
clientDHNonce [3] DHNonce OPTIONAL,
|
||||
...,
|
||||
supportedKDFs [4] SEQUENCE OF KDFAlgorithmId OPTIONAL,
|
||||
...,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct AuthPack {
|
||||
PKAuthenticator pkAuthenticator;
|
||||
SubjectPublicKeyInfo *clientPublicValue;
|
||||
struct AuthPack_supportedCMSTypes {
|
||||
unsigned int len;
|
||||
AlgorithmIdentifier *val;
|
||||
} *supportedCMSTypes;
|
||||
DHNonce *clientDHNonce;
|
||||
struct AuthPack_supportedKDFs {
|
||||
unsigned int len;
|
||||
KDFAlgorithmId *val;
|
||||
} *supportedKDFs;
|
||||
} AuthPack;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_AuthPack(const unsigned char *, size_t, AuthPack *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_AuthPack(unsigned char *, size_t, const AuthPack *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_AuthPack(const AuthPack *);
|
||||
ASN1EXP int ASN1CALL copy_AuthPack (const AuthPack *, AuthPack *);
|
||||
ASN1EXP void ASN1CALL free_AuthPack (AuthPack *);
|
||||
|
||||
|
||||
/*
|
||||
TD-TRUSTED-CERTIFIERS ::= ExternalPrincipalIdentifiers
|
||||
*/
|
||||
|
||||
typedef ExternalPrincipalIdentifiers TD_TRUSTED_CERTIFIERS;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_TD_TRUSTED_CERTIFIERS(const unsigned char *, size_t, TD_TRUSTED_CERTIFIERS *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_TD_TRUSTED_CERTIFIERS(unsigned char *, size_t, const TD_TRUSTED_CERTIFIERS *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_TD_TRUSTED_CERTIFIERS(const TD_TRUSTED_CERTIFIERS *);
|
||||
ASN1EXP int ASN1CALL copy_TD_TRUSTED_CERTIFIERS (const TD_TRUSTED_CERTIFIERS *, TD_TRUSTED_CERTIFIERS *);
|
||||
ASN1EXP void ASN1CALL free_TD_TRUSTED_CERTIFIERS (TD_TRUSTED_CERTIFIERS *);
|
||||
|
||||
|
||||
/*
|
||||
TD-INVALID-CERTIFICATES ::= ExternalPrincipalIdentifiers
|
||||
*/
|
||||
|
||||
typedef ExternalPrincipalIdentifiers TD_INVALID_CERTIFICATES;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_TD_INVALID_CERTIFICATES(const unsigned char *, size_t, TD_INVALID_CERTIFICATES *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_TD_INVALID_CERTIFICATES(unsigned char *, size_t, const TD_INVALID_CERTIFICATES *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_TD_INVALID_CERTIFICATES(const TD_INVALID_CERTIFICATES *);
|
||||
ASN1EXP int ASN1CALL copy_TD_INVALID_CERTIFICATES (const TD_INVALID_CERTIFICATES *, TD_INVALID_CERTIFICATES *);
|
||||
ASN1EXP void ASN1CALL free_TD_INVALID_CERTIFICATES (TD_INVALID_CERTIFICATES *);
|
||||
|
||||
|
||||
/*
|
||||
KRB5PrincipalName ::= SEQUENCE {
|
||||
realm [0] Realm,
|
||||
principalName [1] PrincipalName,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct KRB5PrincipalName {
|
||||
Realm realm;
|
||||
PrincipalName principalName;
|
||||
} KRB5PrincipalName;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_KRB5PrincipalName(const unsigned char *, size_t, KRB5PrincipalName *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_KRB5PrincipalName(unsigned char *, size_t, const KRB5PrincipalName *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_KRB5PrincipalName(const KRB5PrincipalName *);
|
||||
ASN1EXP int ASN1CALL copy_KRB5PrincipalName (const KRB5PrincipalName *, KRB5PrincipalName *);
|
||||
ASN1EXP void ASN1CALL free_KRB5PrincipalName (KRB5PrincipalName *);
|
||||
|
||||
|
||||
/*
|
||||
AD-INITIAL-VERIFIED-CAS ::= SEQUENCE OF ExternalPrincipalIdentifier
|
||||
*/
|
||||
|
||||
typedef struct AD_INITIAL_VERIFIED_CAS {
|
||||
unsigned int len;
|
||||
ExternalPrincipalIdentifier *val;
|
||||
} AD_INITIAL_VERIFIED_CAS;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_AD_INITIAL_VERIFIED_CAS(const unsigned char *, size_t, AD_INITIAL_VERIFIED_CAS *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_AD_INITIAL_VERIFIED_CAS(unsigned char *, size_t, const AD_INITIAL_VERIFIED_CAS *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_AD_INITIAL_VERIFIED_CAS(const AD_INITIAL_VERIFIED_CAS *);
|
||||
ASN1EXP int ASN1CALL copy_AD_INITIAL_VERIFIED_CAS (const AD_INITIAL_VERIFIED_CAS *, AD_INITIAL_VERIFIED_CAS *);
|
||||
ASN1EXP void ASN1CALL free_AD_INITIAL_VERIFIED_CAS (AD_INITIAL_VERIFIED_CAS *);
|
||||
|
||||
|
||||
/*
|
||||
DHRepInfo ::= SEQUENCE {
|
||||
dhSignedData [0] IMPLICIT OCTET STRING,
|
||||
serverDHNonce [1] DHNonce OPTIONAL,
|
||||
...,
|
||||
kdf [2] KDFAlgorithmId OPTIONAL,
|
||||
...,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct DHRepInfo {
|
||||
heim_octet_string dhSignedData;
|
||||
DHNonce *serverDHNonce;
|
||||
KDFAlgorithmId *kdf;
|
||||
} DHRepInfo;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_DHRepInfo(const unsigned char *, size_t, DHRepInfo *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_DHRepInfo(unsigned char *, size_t, const DHRepInfo *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_DHRepInfo(const DHRepInfo *);
|
||||
ASN1EXP int ASN1CALL copy_DHRepInfo (const DHRepInfo *, DHRepInfo *);
|
||||
ASN1EXP void ASN1CALL free_DHRepInfo (DHRepInfo *);
|
||||
|
||||
|
||||
/*
|
||||
PA-PK-AS-REP ::= CHOICE {
|
||||
dhInfo [0] DHRepInfo,
|
||||
encKeyPack [1] IMPLICIT OCTET STRING,
|
||||
...,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct PA_PK_AS_REP {
|
||||
enum PA_PK_AS_REP_enum {
|
||||
choice_PA_PK_AS_REP_asn1_ellipsis = -1,
|
||||
invalid_choice_PA_PK_AS_REP = 0,
|
||||
choice_PA_PK_AS_REP_dhInfo,
|
||||
choice_PA_PK_AS_REP_encKeyPack
|
||||
/* ... */
|
||||
} element;
|
||||
union {
|
||||
DHRepInfo dhInfo;
|
||||
heim_octet_string encKeyPack;
|
||||
heim_octet_string asn1_ellipsis;
|
||||
} u;
|
||||
} PA_PK_AS_REP;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_PA_PK_AS_REP(const unsigned char *, size_t, PA_PK_AS_REP *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_PA_PK_AS_REP(unsigned char *, size_t, const PA_PK_AS_REP *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_PA_PK_AS_REP(const PA_PK_AS_REP *);
|
||||
ASN1EXP int ASN1CALL copy_PA_PK_AS_REP (const PA_PK_AS_REP *, PA_PK_AS_REP *);
|
||||
ASN1EXP void ASN1CALL free_PA_PK_AS_REP (PA_PK_AS_REP *);
|
||||
|
||||
|
||||
/*
|
||||
KDCDHKeyInfo ::= SEQUENCE {
|
||||
subjectPublicKey [0] BIT STRING {
|
||||
},
|
||||
nonce [1] INTEGER (0..-1),
|
||||
dhKeyExpiration [2] KerberosTime OPTIONAL,
|
||||
...,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct KDCDHKeyInfo {
|
||||
heim_bit_string subjectPublicKey;
|
||||
unsigned int nonce;
|
||||
KerberosTime *dhKeyExpiration;
|
||||
} KDCDHKeyInfo;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_KDCDHKeyInfo(const unsigned char *, size_t, KDCDHKeyInfo *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_KDCDHKeyInfo(unsigned char *, size_t, const KDCDHKeyInfo *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_KDCDHKeyInfo(const KDCDHKeyInfo *);
|
||||
ASN1EXP int ASN1CALL copy_KDCDHKeyInfo (const KDCDHKeyInfo *, KDCDHKeyInfo *);
|
||||
ASN1EXP void ASN1CALL free_KDCDHKeyInfo (KDCDHKeyInfo *);
|
||||
|
||||
|
||||
/*
|
||||
ReplyKeyPack ::= SEQUENCE {
|
||||
replyKey [0] EncryptionKey,
|
||||
asChecksum [1] Checksum,
|
||||
...,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct ReplyKeyPack {
|
||||
EncryptionKey replyKey;
|
||||
Checksum asChecksum;
|
||||
} ReplyKeyPack;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_ReplyKeyPack(const unsigned char *, size_t, ReplyKeyPack *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_ReplyKeyPack(unsigned char *, size_t, const ReplyKeyPack *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_ReplyKeyPack(const ReplyKeyPack *);
|
||||
ASN1EXP int ASN1CALL copy_ReplyKeyPack (const ReplyKeyPack *, ReplyKeyPack *);
|
||||
ASN1EXP void ASN1CALL free_ReplyKeyPack (ReplyKeyPack *);
|
||||
|
||||
|
||||
/*
|
||||
TD-DH-PARAMETERS ::= SEQUENCE OF AlgorithmIdentifier
|
||||
*/
|
||||
|
||||
typedef struct TD_DH_PARAMETERS {
|
||||
unsigned int len;
|
||||
AlgorithmIdentifier *val;
|
||||
} TD_DH_PARAMETERS;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_TD_DH_PARAMETERS(const unsigned char *, size_t, TD_DH_PARAMETERS *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_TD_DH_PARAMETERS(unsigned char *, size_t, const TD_DH_PARAMETERS *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_TD_DH_PARAMETERS(const TD_DH_PARAMETERS *);
|
||||
ASN1EXP int ASN1CALL copy_TD_DH_PARAMETERS (const TD_DH_PARAMETERS *, TD_DH_PARAMETERS *);
|
||||
ASN1EXP void ASN1CALL free_TD_DH_PARAMETERS (TD_DH_PARAMETERS *);
|
||||
|
||||
|
||||
/*
|
||||
PKAuthenticator-Win2k ::= SEQUENCE {
|
||||
kdcName [0] PrincipalName,
|
||||
kdcRealm [1] Realm,
|
||||
cusec [2] INTEGER (0..-1),
|
||||
ctime [3] KerberosTime,
|
||||
nonce [4] INTEGER (-2147483648..2147483647),
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct PKAuthenticator_Win2k {
|
||||
PrincipalName kdcName;
|
||||
Realm kdcRealm;
|
||||
unsigned int cusec;
|
||||
KerberosTime ctime;
|
||||
int nonce;
|
||||
} PKAuthenticator_Win2k;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_PKAuthenticator_Win2k(const unsigned char *, size_t, PKAuthenticator_Win2k *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_PKAuthenticator_Win2k(unsigned char *, size_t, const PKAuthenticator_Win2k *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_PKAuthenticator_Win2k(const PKAuthenticator_Win2k *);
|
||||
ASN1EXP int ASN1CALL copy_PKAuthenticator_Win2k (const PKAuthenticator_Win2k *, PKAuthenticator_Win2k *);
|
||||
ASN1EXP void ASN1CALL free_PKAuthenticator_Win2k (PKAuthenticator_Win2k *);
|
||||
|
||||
|
||||
/*
|
||||
AuthPack-Win2k ::= SEQUENCE {
|
||||
pkAuthenticator [0] PKAuthenticator-Win2k,
|
||||
clientPublicValue [1] SubjectPublicKeyInfo OPTIONAL,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct AuthPack_Win2k {
|
||||
PKAuthenticator_Win2k pkAuthenticator;
|
||||
SubjectPublicKeyInfo *clientPublicValue;
|
||||
} AuthPack_Win2k;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_AuthPack_Win2k(const unsigned char *, size_t, AuthPack_Win2k *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_AuthPack_Win2k(unsigned char *, size_t, const AuthPack_Win2k *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_AuthPack_Win2k(const AuthPack_Win2k *);
|
||||
ASN1EXP int ASN1CALL copy_AuthPack_Win2k (const AuthPack_Win2k *, AuthPack_Win2k *);
|
||||
ASN1EXP void ASN1CALL free_AuthPack_Win2k (AuthPack_Win2k *);
|
||||
|
||||
|
||||
/*
|
||||
TrustedCA-Win2k ::= CHOICE {
|
||||
caName [1] heim_any,
|
||||
issuerAndSerial [2] IssuerAndSerialNumber,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct TrustedCA_Win2k {
|
||||
enum TrustedCA_Win2k_enum {
|
||||
invalid_choice_TrustedCA_Win2k = 0,
|
||||
choice_TrustedCA_Win2k_caName = 1,
|
||||
choice_TrustedCA_Win2k_issuerAndSerial
|
||||
} element;
|
||||
union {
|
||||
heim_any caName;
|
||||
IssuerAndSerialNumber issuerAndSerial;
|
||||
} u;
|
||||
} TrustedCA_Win2k;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_TrustedCA_Win2k(const unsigned char *, size_t, TrustedCA_Win2k *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_TrustedCA_Win2k(unsigned char *, size_t, const TrustedCA_Win2k *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_TrustedCA_Win2k(const TrustedCA_Win2k *);
|
||||
ASN1EXP int ASN1CALL copy_TrustedCA_Win2k (const TrustedCA_Win2k *, TrustedCA_Win2k *);
|
||||
ASN1EXP void ASN1CALL free_TrustedCA_Win2k (TrustedCA_Win2k *);
|
||||
|
||||
|
||||
/*
|
||||
PA-PK-AS-REQ-Win2k ::= SEQUENCE {
|
||||
signed-auth-pack [0] IMPLICIT OCTET STRING,
|
||||
trusted-certifiers [2] SEQUENCE OF TrustedCA-Win2k OPTIONAL,
|
||||
kdc-cert [3] IMPLICIT OCTET STRING OPTIONAL,
|
||||
encryption-cert [4] IMPLICIT OCTET STRING OPTIONAL,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct PA_PK_AS_REQ_Win2k {
|
||||
heim_octet_string signed_auth_pack;
|
||||
struct PA_PK_AS_REQ_Win2k_trusted_certifiers {
|
||||
unsigned int len;
|
||||
TrustedCA_Win2k *val;
|
||||
} *trusted_certifiers;
|
||||
heim_octet_string *kdc_cert;
|
||||
heim_octet_string *encryption_cert;
|
||||
} PA_PK_AS_REQ_Win2k;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_PA_PK_AS_REQ_Win2k(const unsigned char *, size_t, PA_PK_AS_REQ_Win2k *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_PA_PK_AS_REQ_Win2k(unsigned char *, size_t, const PA_PK_AS_REQ_Win2k *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_PA_PK_AS_REQ_Win2k(const PA_PK_AS_REQ_Win2k *);
|
||||
ASN1EXP int ASN1CALL copy_PA_PK_AS_REQ_Win2k (const PA_PK_AS_REQ_Win2k *, PA_PK_AS_REQ_Win2k *);
|
||||
ASN1EXP void ASN1CALL free_PA_PK_AS_REQ_Win2k (PA_PK_AS_REQ_Win2k *);
|
||||
|
||||
|
||||
/*
|
||||
PA-PK-AS-REP-Win2k ::= CHOICE {
|
||||
dhSignedData [0] IMPLICIT OCTET STRING,
|
||||
encKeyPack [1] IMPLICIT OCTET STRING,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct PA_PK_AS_REP_Win2k {
|
||||
enum PA_PK_AS_REP_Win2k_enum {
|
||||
invalid_choice_PA_PK_AS_REP_Win2k = 0,
|
||||
choice_PA_PK_AS_REP_Win2k_dhSignedData = 1,
|
||||
choice_PA_PK_AS_REP_Win2k_encKeyPack
|
||||
} element;
|
||||
union {
|
||||
heim_octet_string dhSignedData;
|
||||
heim_octet_string encKeyPack;
|
||||
} u;
|
||||
} PA_PK_AS_REP_Win2k;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_PA_PK_AS_REP_Win2k(const unsigned char *, size_t, PA_PK_AS_REP_Win2k *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_PA_PK_AS_REP_Win2k(unsigned char *, size_t, const PA_PK_AS_REP_Win2k *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_PA_PK_AS_REP_Win2k(const PA_PK_AS_REP_Win2k *);
|
||||
ASN1EXP int ASN1CALL copy_PA_PK_AS_REP_Win2k (const PA_PK_AS_REP_Win2k *, PA_PK_AS_REP_Win2k *);
|
||||
ASN1EXP void ASN1CALL free_PA_PK_AS_REP_Win2k (PA_PK_AS_REP_Win2k *);
|
||||
|
||||
|
||||
/*
|
||||
KDCDHKeyInfo-Win2k ::= SEQUENCE {
|
||||
nonce [0] INTEGER (-2147483648..2147483647),
|
||||
subjectPublicKey [2] BIT STRING {
|
||||
},
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct KDCDHKeyInfo_Win2k {
|
||||
int nonce;
|
||||
heim_bit_string subjectPublicKey;
|
||||
} KDCDHKeyInfo_Win2k;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_KDCDHKeyInfo_Win2k(const unsigned char *, size_t, KDCDHKeyInfo_Win2k *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_KDCDHKeyInfo_Win2k(unsigned char *, size_t, const KDCDHKeyInfo_Win2k *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_KDCDHKeyInfo_Win2k(const KDCDHKeyInfo_Win2k *);
|
||||
ASN1EXP int ASN1CALL copy_KDCDHKeyInfo_Win2k (const KDCDHKeyInfo_Win2k *, KDCDHKeyInfo_Win2k *);
|
||||
ASN1EXP void ASN1CALL free_KDCDHKeyInfo_Win2k (KDCDHKeyInfo_Win2k *);
|
||||
|
||||
|
||||
/*
|
||||
ReplyKeyPack-Win2k ::= SEQUENCE {
|
||||
replyKey [0] EncryptionKey,
|
||||
nonce [1] INTEGER (-2147483648..2147483647),
|
||||
...,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct ReplyKeyPack_Win2k {
|
||||
EncryptionKey replyKey;
|
||||
int nonce;
|
||||
} ReplyKeyPack_Win2k;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_ReplyKeyPack_Win2k(const unsigned char *, size_t, ReplyKeyPack_Win2k *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_ReplyKeyPack_Win2k(unsigned char *, size_t, const ReplyKeyPack_Win2k *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_ReplyKeyPack_Win2k(const ReplyKeyPack_Win2k *);
|
||||
ASN1EXP int ASN1CALL copy_ReplyKeyPack_Win2k (const ReplyKeyPack_Win2k *, ReplyKeyPack_Win2k *);
|
||||
ASN1EXP void ASN1CALL free_ReplyKeyPack_Win2k (ReplyKeyPack_Win2k *);
|
||||
|
||||
|
||||
/*
|
||||
PA-PK-AS-REP-BTMM ::= SEQUENCE {
|
||||
dhSignedData [0] heim_any OPTIONAL,
|
||||
encKeyPack [1] heim_any OPTIONAL,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct PA_PK_AS_REP_BTMM {
|
||||
heim_any *dhSignedData;
|
||||
heim_any *encKeyPack;
|
||||
} PA_PK_AS_REP_BTMM;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_PA_PK_AS_REP_BTMM(const unsigned char *, size_t, PA_PK_AS_REP_BTMM *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_PA_PK_AS_REP_BTMM(unsigned char *, size_t, const PA_PK_AS_REP_BTMM *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_PA_PK_AS_REP_BTMM(const PA_PK_AS_REP_BTMM *);
|
||||
ASN1EXP int ASN1CALL copy_PA_PK_AS_REP_BTMM (const PA_PK_AS_REP_BTMM *, PA_PK_AS_REP_BTMM *);
|
||||
ASN1EXP void ASN1CALL free_PA_PK_AS_REP_BTMM (PA_PK_AS_REP_BTMM *);
|
||||
|
||||
|
||||
/*
|
||||
PkinitSP80056AOtherInfo ::= SEQUENCE {
|
||||
algorithmID AlgorithmIdentifier,
|
||||
partyUInfo [0] OCTET STRING,
|
||||
partyVInfo [1] OCTET STRING,
|
||||
suppPubInfo [2] OCTET STRING OPTIONAL,
|
||||
suppPrivInfo [3] OCTET STRING OPTIONAL,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct PkinitSP80056AOtherInfo {
|
||||
AlgorithmIdentifier algorithmID;
|
||||
heim_octet_string partyUInfo;
|
||||
heim_octet_string partyVInfo;
|
||||
heim_octet_string *suppPubInfo;
|
||||
heim_octet_string *suppPrivInfo;
|
||||
} PkinitSP80056AOtherInfo;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_PkinitSP80056AOtherInfo(const unsigned char *, size_t, PkinitSP80056AOtherInfo *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_PkinitSP80056AOtherInfo(unsigned char *, size_t, const PkinitSP80056AOtherInfo *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_PkinitSP80056AOtherInfo(const PkinitSP80056AOtherInfo *);
|
||||
ASN1EXP int ASN1CALL copy_PkinitSP80056AOtherInfo (const PkinitSP80056AOtherInfo *, PkinitSP80056AOtherInfo *);
|
||||
ASN1EXP void ASN1CALL free_PkinitSP80056AOtherInfo (PkinitSP80056AOtherInfo *);
|
||||
|
||||
|
||||
/*
|
||||
PkinitSuppPubInfo ::= SEQUENCE {
|
||||
enctype [0] INTEGER (-2147483648..2147483647),
|
||||
as-REQ [1] OCTET STRING OPTIONAL,
|
||||
pk-as-rep [2] OCTET STRING OPTIONAL,
|
||||
ticket [3] Ticket OPTIONAL,
|
||||
...,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct PkinitSuppPubInfo {
|
||||
int enctype;
|
||||
heim_octet_string *as_REQ;
|
||||
heim_octet_string *pk_as_rep;
|
||||
Ticket *ticket;
|
||||
} PkinitSuppPubInfo;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_PkinitSuppPubInfo(const unsigned char *, size_t, PkinitSuppPubInfo *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_PkinitSuppPubInfo(unsigned char *, size_t, const PkinitSuppPubInfo *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_PkinitSuppPubInfo(const PkinitSuppPubInfo *);
|
||||
ASN1EXP int ASN1CALL copy_PkinitSuppPubInfo (const PkinitSuppPubInfo *, PkinitSuppPubInfo *);
|
||||
ASN1EXP void ASN1CALL free_PkinitSuppPubInfo (PkinitSuppPubInfo *);
|
||||
|
||||
|
||||
#endif /* __pkinit_asn1_h__ */
|
1865
gen/include/rfc2459_asn1.h
Executable file
1865
gen/include/rfc2459_asn1.h
Executable file
File diff suppressed because it is too large
Load Diff
366
gen/include/spnego_asn1.h
Executable file
366
gen/include/spnego_asn1.h
Executable file
@ -0,0 +1,366 @@
|
||||
/* Generated from /Users/andyhyatt/Downloads/Heimdal-498.50.8/lib/gssapi/spnego/spnego.asn1 */
|
||||
/* Do not edit */
|
||||
|
||||
#ifndef __spnego_asn1_h__
|
||||
#define __spnego_asn1_h__
|
||||
|
||||
#include <stddef.h>
|
||||
#include <time.h>
|
||||
|
||||
#ifndef __asn1_common_definitions__
|
||||
#define __asn1_common_definitions__
|
||||
|
||||
#ifndef __HEIM_BASE_DATA__
|
||||
#define __HEIM_BASE_DATA__ 1
|
||||
struct heim_base_data {
|
||||
size_t length;
|
||||
void *data;
|
||||
};
|
||||
#endif
|
||||
|
||||
typedef struct heim_integer {
|
||||
size_t length;
|
||||
void *data;
|
||||
int negative;
|
||||
} heim_integer;
|
||||
|
||||
typedef struct heim_base_data heim_octet_string;
|
||||
|
||||
typedef char *heim_general_string;
|
||||
|
||||
typedef char *heim_utf8_string;
|
||||
|
||||
typedef struct heim_base_data heim_printable_string;
|
||||
|
||||
typedef struct heim_base_data heim_ia5_string;
|
||||
|
||||
typedef struct heim_bmp_string {
|
||||
size_t length;
|
||||
uint16_t *data;
|
||||
} heim_bmp_string;
|
||||
|
||||
typedef struct heim_universal_string {
|
||||
size_t length;
|
||||
uint32_t *data;
|
||||
} heim_universal_string;
|
||||
|
||||
typedef char *heim_visible_string;
|
||||
|
||||
typedef struct heim_oid {
|
||||
size_t length;
|
||||
unsigned *components;
|
||||
} heim_oid;
|
||||
|
||||
typedef struct heim_bit_string {
|
||||
size_t length;
|
||||
void *data;
|
||||
} heim_bit_string;
|
||||
|
||||
typedef struct heim_base_data heim_any;
|
||||
typedef struct heim_base_data heim_any_set;
|
||||
|
||||
#define ASN1_MALLOC_ENCODE(T, B, BL, S, L, R) \
|
||||
do { \
|
||||
(BL) = length_##T((S)); \
|
||||
(B) = malloc((BL)); \
|
||||
if((B) == NULL) { \
|
||||
(R) = ENOMEM; \
|
||||
} else { \
|
||||
(R) = encode_##T(((unsigned char*)(B)) + (BL) - 1, (BL), \
|
||||
(S), (L)); \
|
||||
if((R) != 0) { \
|
||||
free((B)); \
|
||||
(B) = NULL; \
|
||||
} \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#define ASN1_ENCODE_CFMutableData(_TYPE, _CFDATA, S, R) \
|
||||
do { \
|
||||
size_t __length##_TYPE; \
|
||||
size_t __size##_TYPE = length_##_TYPE((S)); \
|
||||
(_CFDATA) = CFDataCreateMutable(NULL, (__size##_TYPE)); \
|
||||
if((_CFDATA) == NULL) { \
|
||||
(R) = ENOMEM; \
|
||||
} else { \
|
||||
CFDataSetLength((_CFDATA), (__size##_TYPE)); \
|
||||
(R) = encode_##_TYPE(((unsigned char*)(CFDataGetMutableBytePtr((_CFDATA)))) + (__size##_TYPE) - 1, (__size##_TYPE), \
|
||||
(S), &(__length##_TYPE)); \
|
||||
if((R) != 0) { \
|
||||
CFRelease((_CFDATA)); \
|
||||
(_CFDATA) = NULL; \
|
||||
} \
|
||||
if((__size##_TYPE) != (__length##_TYPE)) { \
|
||||
asn1_abort("internal asn1 error"); \
|
||||
} \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#ifdef _WIN32
|
||||
#ifndef ASN1_LIB
|
||||
#define ASN1EXP __declspec(dllimport)
|
||||
#else
|
||||
#define ASN1EXP
|
||||
#endif
|
||||
#define ASN1CALL __stdcall
|
||||
#else
|
||||
#define ASN1EXP
|
||||
#define ASN1CALL
|
||||
#endif
|
||||
struct units;
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
MechType ::= OBJECT IDENTIFIER
|
||||
*/
|
||||
|
||||
typedef heim_oid MechType;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_MechType(const unsigned char *, size_t, MechType *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_MechType(unsigned char *, size_t, const MechType *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_MechType(const MechType *);
|
||||
ASN1EXP int ASN1CALL copy_MechType (const MechType *, MechType *);
|
||||
ASN1EXP void ASN1CALL free_MechType (MechType *);
|
||||
|
||||
|
||||
/*
|
||||
MechTypeList ::= SEQUENCE OF MechType
|
||||
*/
|
||||
|
||||
typedef struct MechTypeList {
|
||||
unsigned int len;
|
||||
MechType *val;
|
||||
} MechTypeList;
|
||||
|
||||
ASN1EXP int ASN1CALL add_MechTypeList (MechTypeList *, const MechType *);
|
||||
ASN1EXP int ASN1CALL remove_MechTypeList (MechTypeList *, unsigned int);
|
||||
ASN1EXP int ASN1CALL decode_MechTypeList(const unsigned char *, size_t, MechTypeList *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_MechTypeList(unsigned char *, size_t, const MechTypeList *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_MechTypeList(const MechTypeList *);
|
||||
ASN1EXP int ASN1CALL copy_MechTypeList (const MechTypeList *, MechTypeList *);
|
||||
ASN1EXP void ASN1CALL free_MechTypeList (MechTypeList *);
|
||||
|
||||
|
||||
/*
|
||||
ContextFlags ::= BIT STRING {
|
||||
delegFlag(0),
|
||||
mutualFlag(1),
|
||||
replayFlag(2),
|
||||
sequenceFlag(3),
|
||||
anonFlag(4),
|
||||
confFlag(5),
|
||||
integFlag(6)
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct ContextFlags {
|
||||
unsigned int delegFlag:1;
|
||||
unsigned int mutualFlag:1;
|
||||
unsigned int replayFlag:1;
|
||||
unsigned int sequenceFlag:1;
|
||||
unsigned int anonFlag:1;
|
||||
unsigned int confFlag:1;
|
||||
unsigned int integFlag:1;
|
||||
unsigned int _unused7:1;
|
||||
unsigned int _unused8:1;
|
||||
unsigned int _unused9:1;
|
||||
unsigned int _unused10:1;
|
||||
unsigned int _unused11:1;
|
||||
unsigned int _unused12:1;
|
||||
unsigned int _unused13:1;
|
||||
unsigned int _unused14:1;
|
||||
unsigned int _unused15:1;
|
||||
unsigned int _unused16:1;
|
||||
unsigned int _unused17:1;
|
||||
unsigned int _unused18:1;
|
||||
unsigned int _unused19:1;
|
||||
unsigned int _unused20:1;
|
||||
unsigned int _unused21:1;
|
||||
unsigned int _unused22:1;
|
||||
unsigned int _unused23:1;
|
||||
unsigned int _unused24:1;
|
||||
unsigned int _unused25:1;
|
||||
unsigned int _unused26:1;
|
||||
unsigned int _unused27:1;
|
||||
unsigned int _unused28:1;
|
||||
unsigned int _unused29:1;
|
||||
unsigned int _unused30:1;
|
||||
unsigned int _unused31:1;
|
||||
} ContextFlags;
|
||||
|
||||
|
||||
unsigned ContextFlags2int(ContextFlags);
|
||||
ContextFlags int2ContextFlags(unsigned);
|
||||
extern const struct units *asn1_ContextFlags_table_units;
|
||||
#define asn1_ContextFlags_units() (asn1_ContextFlags_table_units)
|
||||
ASN1EXP int ASN1CALL decode_ContextFlags(const unsigned char *, size_t, ContextFlags *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_ContextFlags(unsigned char *, size_t, const ContextFlags *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_ContextFlags(const ContextFlags *);
|
||||
ASN1EXP int ASN1CALL copy_ContextFlags (const ContextFlags *, ContextFlags *);
|
||||
ASN1EXP void ASN1CALL free_ContextFlags (ContextFlags *);
|
||||
|
||||
|
||||
/*
|
||||
NegHints ::= SEQUENCE {
|
||||
hintName [0] GeneralString OPTIONAL,
|
||||
hintAddress [1] OCTET STRING OPTIONAL,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct NegHints {
|
||||
heim_general_string *hintName;
|
||||
heim_octet_string *hintAddress;
|
||||
} NegHints;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_NegHints(const unsigned char *, size_t, NegHints *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_NegHints(unsigned char *, size_t, const NegHints *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_NegHints(const NegHints *);
|
||||
ASN1EXP int ASN1CALL copy_NegHints (const NegHints *, NegHints *);
|
||||
ASN1EXP void ASN1CALL free_NegHints (NegHints *);
|
||||
|
||||
|
||||
/*
|
||||
NegTokenInitWin ::= SEQUENCE {
|
||||
mechTypes [0] MechTypeList,
|
||||
reqFlags [1] ContextFlags OPTIONAL,
|
||||
mechToken [2] OCTET STRING OPTIONAL,
|
||||
negHints [3] NegHints OPTIONAL,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct NegTokenInitWin {
|
||||
MechTypeList mechTypes;
|
||||
ContextFlags *reqFlags;
|
||||
heim_octet_string *mechToken;
|
||||
NegHints *negHints;
|
||||
} NegTokenInitWin;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_NegTokenInitWin(const unsigned char *, size_t, NegTokenInitWin *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_NegTokenInitWin(unsigned char *, size_t, const NegTokenInitWin *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_NegTokenInitWin(const NegTokenInitWin *);
|
||||
ASN1EXP int ASN1CALL copy_NegTokenInitWin (const NegTokenInitWin *, NegTokenInitWin *);
|
||||
ASN1EXP void ASN1CALL free_NegTokenInitWin (NegTokenInitWin *);
|
||||
|
||||
|
||||
/*
|
||||
NegTokenInit ::= SEQUENCE {
|
||||
mechTypes [0] MechTypeList,
|
||||
reqFlags [1] ContextFlags OPTIONAL,
|
||||
mechToken [2] OCTET STRING OPTIONAL,
|
||||
mechListMIC [3] OCTET STRING OPTIONAL,
|
||||
...,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct NegTokenInit {
|
||||
MechTypeList mechTypes;
|
||||
ContextFlags *reqFlags;
|
||||
heim_octet_string *mechToken;
|
||||
heim_octet_string *mechListMIC;
|
||||
} NegTokenInit;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_NegTokenInit(const unsigned char *, size_t, NegTokenInit *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_NegTokenInit(unsigned char *, size_t, const NegTokenInit *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_NegTokenInit(const NegTokenInit *);
|
||||
ASN1EXP int ASN1CALL copy_NegTokenInit (const NegTokenInit *, NegTokenInit *);
|
||||
ASN1EXP void ASN1CALL free_NegTokenInit (NegTokenInit *);
|
||||
|
||||
|
||||
/*
|
||||
NegResultEnum ::= INTEGER {
|
||||
accept_completed(0),
|
||||
accept_incomplete(1),
|
||||
reject(2),
|
||||
request_mic(3)
|
||||
}
|
||||
*/
|
||||
|
||||
typedef enum NegResultEnum {
|
||||
accept_completed = 0,
|
||||
accept_incomplete = 1,
|
||||
reject = 2,
|
||||
request_mic = 3
|
||||
} NegResultEnum;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_NegResultEnum(const unsigned char *, size_t, NegResultEnum *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_NegResultEnum(unsigned char *, size_t, const NegResultEnum *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_NegResultEnum(const NegResultEnum *);
|
||||
ASN1EXP int ASN1CALL copy_NegResultEnum (const NegResultEnum *, NegResultEnum *);
|
||||
ASN1EXP void ASN1CALL free_NegResultEnum (NegResultEnum *);
|
||||
|
||||
|
||||
/*
|
||||
NegTokenResp ::= SEQUENCE {
|
||||
negResult [0] NegResultEnum OPTIONAL,
|
||||
supportedMech [1] MechType OPTIONAL,
|
||||
responseToken [2] OCTET STRING OPTIONAL,
|
||||
mechListMIC [3] OCTET STRING OPTIONAL,
|
||||
...,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct NegTokenResp {
|
||||
NegResultEnum *negResult;
|
||||
MechType *supportedMech;
|
||||
heim_octet_string *responseToken;
|
||||
heim_octet_string *mechListMIC;
|
||||
} NegTokenResp;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_NegTokenResp(const unsigned char *, size_t, NegTokenResp *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_NegTokenResp(unsigned char *, size_t, const NegTokenResp *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_NegTokenResp(const NegTokenResp *);
|
||||
ASN1EXP int ASN1CALL copy_NegTokenResp (const NegTokenResp *, NegTokenResp *);
|
||||
ASN1EXP void ASN1CALL free_NegTokenResp (NegTokenResp *);
|
||||
|
||||
|
||||
/*
|
||||
NegotiationToken ::= CHOICE {
|
||||
negTokenInit [0] NegTokenInit,
|
||||
negTokenResp [1] NegTokenResp,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct NegotiationToken {
|
||||
enum NegotiationToken_enum {
|
||||
invalid_choice_NegotiationToken = 0,
|
||||
choice_NegotiationToken_negTokenInit = 1,
|
||||
choice_NegotiationToken_negTokenResp
|
||||
} element;
|
||||
union {
|
||||
NegTokenInit negTokenInit;
|
||||
NegTokenResp negTokenResp;
|
||||
} u;
|
||||
} NegotiationToken;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_NegotiationToken(const unsigned char *, size_t, NegotiationToken *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_NegotiationToken(unsigned char *, size_t, const NegotiationToken *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_NegotiationToken(const NegotiationToken *);
|
||||
ASN1EXP int ASN1CALL copy_NegotiationToken (const NegotiationToken *, NegotiationToken *);
|
||||
ASN1EXP void ASN1CALL free_NegotiationToken (NegotiationToken *);
|
||||
|
||||
|
||||
/*
|
||||
NegotiationTokenWin ::= CHOICE {
|
||||
negTokenInit [0] NegTokenInitWin,
|
||||
}
|
||||
*/
|
||||
|
||||
typedef struct NegotiationTokenWin {
|
||||
enum NegotiationTokenWin_enum {
|
||||
invalid_choice_NegotiationTokenWin = 0,
|
||||
choice_NegotiationTokenWin_negTokenInit = 1
|
||||
} element;
|
||||
union {
|
||||
NegTokenInitWin negTokenInit;
|
||||
} u;
|
||||
} NegotiationTokenWin;
|
||||
|
||||
ASN1EXP int ASN1CALL decode_NegotiationTokenWin(const unsigned char *, size_t, NegotiationTokenWin *, size_t *);
|
||||
ASN1EXP int ASN1CALL encode_NegotiationTokenWin(unsigned char *, size_t, const NegotiationTokenWin *, size_t *);
|
||||
ASN1EXP size_t ASN1CALL length_NegotiationTokenWin(const NegotiationTokenWin *);
|
||||
ASN1EXP int ASN1CALL copy_NegotiationTokenWin (const NegotiationTokenWin *, NegotiationTokenWin *);
|
||||
ASN1EXP void ASN1CALL free_NegotiationTokenWin (NegotiationTokenWin *);
|
||||
|
||||
|
||||
#endif /* __spnego_asn1_h__ */
|
32
gen/include/wind_err.h
Executable file
32
gen/include/wind_err.h
Executable file
@ -0,0 +1,32 @@
|
||||
/* Generated from /Users/andyhyatt/Downloads/Heimdal-498.50.8/lib/wind/wind_err.et */
|
||||
/* $Id$ */
|
||||
|
||||
#ifndef __wind_err_h__
|
||||
#define __wind_err_h__
|
||||
|
||||
struct et_list;
|
||||
|
||||
void initialize_wind_error_table_r(struct et_list **);
|
||||
|
||||
void initialize_wind_error_table(void);
|
||||
#define init_wind_err_tbl initialize_wind_error_table
|
||||
|
||||
typedef enum wind_error_number{
|
||||
WIND_ERR_NONE = -969269760,
|
||||
WIND_ERR_NO_PROFILE = -969269759,
|
||||
WIND_ERR_OVERRUN = -969269758,
|
||||
WIND_ERR_UNDERUN = -969269757,
|
||||
WIND_ERR_LENGTH_NOT_MOD2 = -969269756,
|
||||
WIND_ERR_LENGTH_NOT_MOD4 = -969269755,
|
||||
WIND_ERR_INVALID_UTF8 = -969269754,
|
||||
WIND_ERR_INVALID_UTF16 = -969269753,
|
||||
WIND_ERR_INVALID_UTF32 = -969269752,
|
||||
WIND_ERR_NO_BOM = -969269751,
|
||||
WIND_ERR_NOT_UTF16 = -969269750
|
||||
} wind_error_number;
|
||||
|
||||
#define ERROR_TABLE_BASE_wind -969269760
|
||||
|
||||
#define COM_ERR_BINDDOMAIN_wind "heim_com_err-969269760"
|
||||
|
||||
#endif /* __wind_err_h__ */
|
249
gen/sym_asn1.c
Executable file
249
gen/sym_asn1.c
Executable file
@ -0,0 +1,249 @@
|
||||
struct krb5_dh_moduli;
|
||||
struct _krb5_krb_auth_data;
|
||||
struct AlgorithmIdentifier;
|
||||
struct _krb5_key_data;
|
||||
struct _krb5_checksum_type;
|
||||
struct _krb5_key_type;
|
||||
struct _krb5_encryption_type;
|
||||
struct _krb5_srv_query_ctx;
|
||||
struct krb5_fast_state;
|
||||
struct _krb5_srp_group;
|
||||
struct _krb5_srp;
|
||||
|
||||
#define KRB5_DEPRECATED
|
||||
#define KRB5_DEPRECATED_FUNCTION(x)
|
||||
#define GSSAPI_DEPRECATED
|
||||
#define HC_DEPRECATED
|
||||
#define HC_DEPRECATED_CRYPTO
|
||||
#define GSSAPI_DEPRECATED_FUNCTION(x)
|
||||
|
||||
#include <config.h>
|
||||
#include <krb5.h>
|
||||
#include <krb5_asn1.h>
|
||||
#include "crypto-headers.h"
|
||||
#include <gssapi_rewrite.h>
|
||||
#include <GSS.h>
|
||||
#include <GSSPrivate.h>
|
||||
#include <gssapi.h>
|
||||
#include <gssapi_krb5.h>
|
||||
#include <gssapi_scram.h>
|
||||
#include <gssapi_spnego.h>
|
||||
#include <gssapi_ntlm.h>
|
||||
#include <gssapi_netlogon.h>
|
||||
#include <gssapi_apple.h>
|
||||
#include <gssapi_spi.h>
|
||||
#include <GSSItem.h>
|
||||
#include <heimbase.h>
|
||||
#include <heimbasepriv.h>
|
||||
#include <hx509.h>
|
||||
#include <krb5-private.h>
|
||||
#include <roken.h>
|
||||
#include <rtbl.h>
|
||||
#include <parse_bytes.h>
|
||||
#include <krb5_err.h>
|
||||
#include <heim_err.h>
|
||||
#include <krb_err.h>
|
||||
#include <hdb_err.h>
|
||||
#include <hx509_err.h>
|
||||
#include <heim-ipc.h>
|
||||
#include <wind.h>
|
||||
#include <parse_units.h>
|
||||
#include <parse_time.h>
|
||||
#include <base64.h>
|
||||
#include <hex.h>
|
||||
#include <com_err.h>
|
||||
#include <der.h>
|
||||
#include <rfc2459_asn1.h>
|
||||
#include <cms_asn1.h>
|
||||
#include <spnego_asn1.h>
|
||||
#include <gkrb5_err.h>
|
||||
#include <heimcred.h>
|
||||
|
||||
krb5_error_code _gsskrb5_init (krb5_context *);
|
||||
|
||||
extern int _krb5_AES_string_to_default_iterator;
|
||||
|
||||
struct hx509_collector;
|
||||
struct hx_expr;
|
||||
struct hx509_generate_private_context;
|
||||
struct hx509_keyset_ops;
|
||||
typedef struct hx509_path hx509_path;
|
||||
typedef void (*_hx509_cert_release_func)(struct hx509_cert_data *, void *);
|
||||
|
||||
#include <hx509-private.h>
|
||||
|
||||
extern const void *asn1_sym_export[];
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
||||
const void *asn1_sym_export[] = {
|
||||
(const void *)TicketFlags2int,
|
||||
(const void *)&asn1_oid_id_dhpublicnumber,
|
||||
(const void *)&asn1_oid_id_pkcs7_data,
|
||||
(const void *)&asn1_oid_id_pkcs7_envelopedData,
|
||||
(const void *)&asn1_oid_id_pkcs7_signedData,
|
||||
(const void *)&asn1_oid_id_rsadsi_des_ede3_cbc,
|
||||
(const void *)copy_AlgorithmIdentifier,
|
||||
(const void *)copy_IssuerAndSerialNumber,
|
||||
(const void *)copy_KerberosTime,
|
||||
(const void *)copy_Principal,
|
||||
(const void *)copy_SubjectPublicKeyInfo,
|
||||
(const void *)decode_AlgorithmIdentifier,
|
||||
(const void *)decode_ChangePasswdDataMS,
|
||||
(const void *)decode_DHPublicKey,
|
||||
(const void *)decode_DomainParameters,
|
||||
(const void *)decode_GeneralName,
|
||||
(const void *)decode_IssuerAndSerialNumber,
|
||||
(const void *)decode_KerberosTime,
|
||||
(const void *)decode_Principal,
|
||||
(const void *)decode_SubjectPublicKeyInfo,
|
||||
(const void *)decode_Ticket,
|
||||
(const void *)der_copy_bit_string,
|
||||
(const void *)der_copy_bmp_string,
|
||||
(const void *)der_copy_general_string,
|
||||
(const void *)der_copy_generalized_time,
|
||||
(const void *)der_copy_heim_integer,
|
||||
(const void *)der_copy_ia5_string,
|
||||
(const void *)der_copy_integer,
|
||||
(const void *)der_copy_octet_string,
|
||||
(const void *)der_copy_oid,
|
||||
(const void *)der_copy_printable_string,
|
||||
(const void *)der_copy_universal_string,
|
||||
(const void *)der_copy_unsigned,
|
||||
(const void *)der_copy_utctime,
|
||||
(const void *)der_copy_utf8string,
|
||||
(const void *)der_copy_visible_string,
|
||||
(const void *)der_free_bit_string,
|
||||
(const void *)der_free_bmp_string,
|
||||
(const void *)der_free_general_string,
|
||||
(const void *)der_free_generalized_time,
|
||||
(const void *)der_free_heim_integer,
|
||||
(const void *)der_free_ia5_string,
|
||||
(const void *)der_free_integer,
|
||||
(const void *)der_free_octet_string,
|
||||
(const void *)der_free_oid,
|
||||
(const void *)der_free_printable_string,
|
||||
(const void *)der_free_universal_string,
|
||||
(const void *)der_free_unsigned,
|
||||
(const void *)der_free_utctime,
|
||||
(const void *)der_free_utf8string,
|
||||
(const void *)der_free_visible_string,
|
||||
(const void *)der_get_bit_string,
|
||||
(const void *)der_get_bmp_string,
|
||||
(const void *)der_get_boolean,
|
||||
(const void *)der_get_general_string,
|
||||
(const void *)der_get_generalized_time,
|
||||
(const void *)der_get_heim_integer,
|
||||
(const void *)der_get_ia5_string,
|
||||
(const void *)der_get_integer,
|
||||
(const void *)der_get_length,
|
||||
(const void *)der_get_octet_string,
|
||||
(const void *)der_get_octet_string_ber,
|
||||
(const void *)der_get_oid,
|
||||
(const void *)der_get_printable_string,
|
||||
(const void *)der_get_tag,
|
||||
(const void *)der_get_universal_string,
|
||||
(const void *)der_get_unsigned,
|
||||
(const void *)der_get_utctime,
|
||||
(const void *)der_get_utf8string,
|
||||
(const void *)der_get_visible_string,
|
||||
(const void *)der_heim_bit_string_cmp,
|
||||
(const void *)der_heim_bmp_string_cmp,
|
||||
(const void *)der_heim_integer_cmp,
|
||||
(const void *)der_heim_octet_string_cmp,
|
||||
(const void *)der_heim_oid_cmp,
|
||||
(const void *)der_heim_universal_string_cmp,
|
||||
(const void *)der_length_bit_string,
|
||||
(const void *)der_length_bmp_string,
|
||||
(const void *)der_length_boolean,
|
||||
(const void *)der_length_enumerated,
|
||||
(const void *)der_length_general_string,
|
||||
(const void *)der_length_generalized_time,
|
||||
(const void *)der_length_heim_integer,
|
||||
(const void *)der_length_ia5_string,
|
||||
(const void *)der_length_integer,
|
||||
(const void *)der_length_len,
|
||||
(const void *)der_length_octet_string,
|
||||
(const void *)der_length_oid,
|
||||
(const void *)der_length_printable_string,
|
||||
(const void *)der_length_tag,
|
||||
(const void *)der_length_universal_string,
|
||||
(const void *)der_length_unsigned,
|
||||
(const void *)der_length_utctime,
|
||||
(const void *)der_length_utf8string,
|
||||
(const void *)der_length_visible_string,
|
||||
(const void *)der_match_tag,
|
||||
(const void *)der_match_tag_and_length,
|
||||
(const void *)der_parse_heim_oid,
|
||||
(const void *)der_parse_hex_heim_integer,
|
||||
(const void *)der_print_heim_oid,
|
||||
(const void *)der_print_hex_heim_integer,
|
||||
(const void *)der_put_bit_string,
|
||||
(const void *)der_put_bmp_string,
|
||||
(const void *)der_put_boolean,
|
||||
(const void *)der_put_general_string,
|
||||
(const void *)der_put_generalized_time,
|
||||
(const void *)der_put_heim_integer,
|
||||
(const void *)der_put_ia5_string,
|
||||
(const void *)der_put_integer,
|
||||
(const void *)der_put_length,
|
||||
(const void *)der_put_length_and_tag,
|
||||
(const void *)der_put_octet_string,
|
||||
(const void *)der_put_oid,
|
||||
(const void *)der_put_printable_string,
|
||||
(const void *)der_put_tag,
|
||||
(const void *)der_put_universal_string,
|
||||
(const void *)der_put_unsigned,
|
||||
(const void *)der_put_utctime,
|
||||
(const void *)der_put_utf8string,
|
||||
(const void *)der_put_visible_string,
|
||||
(const void *)encode_AlgorithmIdentifier,
|
||||
(const void *)encode_ContentInfo,
|
||||
(const void *)encode_DHPublicKey,
|
||||
(const void *)encode_GeneralName,
|
||||
(const void *)encode_IssuerAndSerialNumber,
|
||||
(const void *)encode_KerberosTime,
|
||||
(const void *)encode_Principal,
|
||||
(const void *)encode_SubjectPublicKeyInfo,
|
||||
(const void *)free_AlgorithmIdentifier,
|
||||
(const void *)free_ChangePasswdDataMS,
|
||||
(const void *)free_ContentInfo,
|
||||
(const void *)free_DomainParameters,
|
||||
(const void *)free_GeneralName,
|
||||
(const void *)free_IssuerAndSerialNumber,
|
||||
(const void *)free_KerberosTime,
|
||||
(const void *)free_Principal,
|
||||
(const void *)free_SubjectPublicKeyInfo,
|
||||
(const void *)free_Ticket,
|
||||
(const void *)length_AlgorithmIdentifier,
|
||||
(const void *)length_ContentInfo,
|
||||
(const void *)length_DHPublicKey,
|
||||
(const void *)length_GeneralName,
|
||||
(const void *)length_IssuerAndSerialNumber,
|
||||
(const void *)length_KerberosTime,
|
||||
(const void *)length_Principal,
|
||||
(const void *)length_SubjectPublicKeyInfo,
|
||||
(const void *)copy_GeneralName,
|
||||
(const void *)free_GeneralName,
|
||||
(const void *)length_GeneralName,
|
||||
(const void *)encode_GeneralName,
|
||||
(const void *)decode_GeneralName,
|
||||
(const void *)copy_EncryptionKey,
|
||||
(const void *)free_EncryptionKey,
|
||||
(const void *)length_EncryptionKey,
|
||||
(const void *)encode_EncryptionKey,
|
||||
(const void *)decode_EncryptionKey,
|
||||
(const void *)length_KDC_PROXY_MESSAGE,
|
||||
(const void *)encode_KDC_PROXY_MESSAGE,
|
||||
(const void *)decode_KDC_PROXY_MESSAGE,
|
||||
(const void *)copy_KRB5_SRP_PA,
|
||||
(const void *)length_KRB5_SRP_PA,
|
||||
(const void *)free_KRB5_SRP_PA,
|
||||
(const void *)decode_KRB5_SRP_PA,
|
||||
(const void *)encode_KRB5_SRP_PA,
|
||||
(const void *)free_KDCSRPState,
|
||||
NULL
|
||||
};
|
||||
|
||||
#pragma clang diagnostic pop
|
||||
|
116
gen/sym_base.c
Executable file
116
gen/sym_base.c
Executable file
@ -0,0 +1,116 @@
|
||||
struct krb5_dh_moduli;
|
||||
struct _krb5_krb_auth_data;
|
||||
struct AlgorithmIdentifier;
|
||||
struct _krb5_key_data;
|
||||
struct _krb5_checksum_type;
|
||||
struct _krb5_key_type;
|
||||
struct _krb5_encryption_type;
|
||||
struct _krb5_srv_query_ctx;
|
||||
struct krb5_fast_state;
|
||||
struct _krb5_srp_group;
|
||||
struct _krb5_srp;
|
||||
|
||||
#define KRB5_DEPRECATED
|
||||
#define KRB5_DEPRECATED_FUNCTION(x)
|
||||
#define GSSAPI_DEPRECATED
|
||||
#define HC_DEPRECATED
|
||||
#define HC_DEPRECATED_CRYPTO
|
||||
#define GSSAPI_DEPRECATED_FUNCTION(x)
|
||||
|
||||
#include <config.h>
|
||||
#include <krb5.h>
|
||||
#include <krb5_asn1.h>
|
||||
#include "crypto-headers.h"
|
||||
#include <gssapi_rewrite.h>
|
||||
#include <GSS.h>
|
||||
#include <GSSPrivate.h>
|
||||
#include <gssapi.h>
|
||||
#include <gssapi_krb5.h>
|
||||
#include <gssapi_scram.h>
|
||||
#include <gssapi_spnego.h>
|
||||
#include <gssapi_ntlm.h>
|
||||
#include <gssapi_netlogon.h>
|
||||
#include <gssapi_apple.h>
|
||||
#include <gssapi_spi.h>
|
||||
#include <GSSItem.h>
|
||||
#include <heimbase.h>
|
||||
#include <heimbasepriv.h>
|
||||
#include <hx509.h>
|
||||
#include <krb5-private.h>
|
||||
#include <roken.h>
|
||||
#include <rtbl.h>
|
||||
#include <parse_bytes.h>
|
||||
#include <krb5_err.h>
|
||||
#include <heim_err.h>
|
||||
#include <krb_err.h>
|
||||
#include <hdb_err.h>
|
||||
#include <hx509_err.h>
|
||||
#include <heim-ipc.h>
|
||||
#include <wind.h>
|
||||
#include <parse_units.h>
|
||||
#include <parse_time.h>
|
||||
#include <base64.h>
|
||||
#include <hex.h>
|
||||
#include <com_err.h>
|
||||
#include <der.h>
|
||||
#include <rfc2459_asn1.h>
|
||||
#include <cms_asn1.h>
|
||||
#include <spnego_asn1.h>
|
||||
#include <gkrb5_err.h>
|
||||
#include <heimcred.h>
|
||||
|
||||
krb5_error_code _gsskrb5_init (krb5_context *);
|
||||
|
||||
extern int _krb5_AES_string_to_default_iterator;
|
||||
|
||||
struct hx509_collector;
|
||||
struct hx_expr;
|
||||
struct hx509_generate_private_context;
|
||||
struct hx509_keyset_ops;
|
||||
typedef struct hx509_path hx509_path;
|
||||
typedef void (*_hx509_cert_release_func)(struct hx509_cert_data *, void *);
|
||||
|
||||
#include <hx509-private.h>
|
||||
|
||||
extern const void *base_sym_export[];
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
||||
const void *base_sym_export[] = {
|
||||
(const void *)heim_abort,
|
||||
(const void *)heim_array_append_value,
|
||||
(const void *)heim_array_copy_value,
|
||||
(const void *)heim_array_create,
|
||||
(const void *)heim_array_delete_value,
|
||||
(const void *)heim_array_filter,
|
||||
(const void *)heim_array_get_length,
|
||||
(const void *)heim_array_iterate,
|
||||
(const void *)heim_array_iterate_f,
|
||||
(const void *)heim_base_once_f,
|
||||
(const void *)heim_data_create,
|
||||
(const void *)heim_data_get_bytes,
|
||||
(const void *)heim_data_get_length,
|
||||
(const void *)heim_data_get_type_id,
|
||||
(const void *)heim_dict_get_type_id,
|
||||
(const void *)heim_dict_set_value,
|
||||
(const void *)heim_dict_copy_value,
|
||||
(const void *)heim_dict_create,
|
||||
(const void *)heim_dict_delete_key,
|
||||
(const void *)heim_dict_iterate,
|
||||
(const void *)heim_error_append,
|
||||
(const void *)heim_error_copy_string,
|
||||
(const void *)heim_error_createv,
|
||||
(const void *)heim_error_get_code,
|
||||
(const void *)heim_get_tid,
|
||||
(const void *)heim_release,
|
||||
(const void *)heim_retain,
|
||||
(const void *)heim_string_copy_utf8,
|
||||
(const void *)heim_string_create,
|
||||
(const void *)heim_string_get_type_id,
|
||||
(const void *)heim_uniq_alloc,
|
||||
(const void *)heim_warn_blocking,
|
||||
NULL
|
||||
};
|
||||
|
||||
#pragma clang diagnostic pop
|
||||
|
257
gen/sym_gss.c
Executable file
257
gen/sym_gss.c
Executable file
@ -0,0 +1,257 @@
|
||||
struct krb5_dh_moduli;
|
||||
struct _krb5_krb_auth_data;
|
||||
struct AlgorithmIdentifier;
|
||||
struct _krb5_key_data;
|
||||
struct _krb5_checksum_type;
|
||||
struct _krb5_key_type;
|
||||
struct _krb5_encryption_type;
|
||||
struct _krb5_srv_query_ctx;
|
||||
struct krb5_fast_state;
|
||||
struct _krb5_srp_group;
|
||||
struct _krb5_srp;
|
||||
|
||||
#define KRB5_DEPRECATED
|
||||
#define KRB5_DEPRECATED_FUNCTION(x)
|
||||
#define GSSAPI_DEPRECATED
|
||||
#define HC_DEPRECATED
|
||||
#define HC_DEPRECATED_CRYPTO
|
||||
#define GSSAPI_DEPRECATED_FUNCTION(x)
|
||||
|
||||
#include <config.h>
|
||||
#include <krb5.h>
|
||||
#include <krb5_asn1.h>
|
||||
#include "crypto-headers.h"
|
||||
#include <gssapi_rewrite.h>
|
||||
#include <GSS.h>
|
||||
#include <GSSPrivate.h>
|
||||
#include <gssapi.h>
|
||||
#include <gssapi_krb5.h>
|
||||
#include <gssapi_scram.h>
|
||||
#include <gssapi_spnego.h>
|
||||
#include <gssapi_ntlm.h>
|
||||
#include <gssapi_netlogon.h>
|
||||
#include <gssapi_apple.h>
|
||||
#include <gssapi_spi.h>
|
||||
#include <GSSItem.h>
|
||||
#include <heimbase.h>
|
||||
#include <heimbasepriv.h>
|
||||
#include <hx509.h>
|
||||
#include <krb5-private.h>
|
||||
#include <roken.h>
|
||||
#include <rtbl.h>
|
||||
#include <parse_bytes.h>
|
||||
#include <krb5_err.h>
|
||||
#include <heim_err.h>
|
||||
#include <krb_err.h>
|
||||
#include <hdb_err.h>
|
||||
#include <hx509_err.h>
|
||||
#include <heim-ipc.h>
|
||||
#include <wind.h>
|
||||
#include <parse_units.h>
|
||||
#include <parse_time.h>
|
||||
#include <base64.h>
|
||||
#include <hex.h>
|
||||
#include <com_err.h>
|
||||
#include <der.h>
|
||||
#include <rfc2459_asn1.h>
|
||||
#include <cms_asn1.h>
|
||||
#include <spnego_asn1.h>
|
||||
#include <gkrb5_err.h>
|
||||
#include <heimcred.h>
|
||||
|
||||
krb5_error_code _gsskrb5_init (krb5_context *);
|
||||
|
||||
extern int _krb5_AES_string_to_default_iterator;
|
||||
|
||||
struct hx509_collector;
|
||||
struct hx_expr;
|
||||
struct hx509_generate_private_context;
|
||||
struct hx509_keyset_ops;
|
||||
typedef struct hx509_path hx509_path;
|
||||
typedef void (*_hx509_cert_release_func)(struct hx509_cert_data *, void *);
|
||||
|
||||
#include <hx509-private.h>
|
||||
|
||||
extern const void *gss_sym_export[];
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
||||
const void *gss_sym_export[] = {
|
||||
(const void *)&__gss_c_nt_uuid_desc,
|
||||
(const void *)&__gss_appl_lkdc_supported_desc,
|
||||
#ifdef ENABLE_NTLM
|
||||
(const void *)&__gss_c_ntlm_v1,
|
||||
(const void *)&__gss_c_ntlm_force_v1,
|
||||
(const void *)&__gss_c_ntlm_v2,
|
||||
(const void *)&__gss_c_ntlm_session_key,
|
||||
(const void *)&__gss_c_ntlm_support_channelbindings,
|
||||
(const void *)&__gss_c_ntlm_support_lm2,
|
||||
(const void *)&__gss_ntlm_is_digest_service,
|
||||
#endif
|
||||
(const void *)gss_accept_sec_context,
|
||||
(const void *)gss_acquire_cred,
|
||||
(const void *)gss_acquire_cred_ex,
|
||||
(const void *)gss_acquire_cred_ex_f,
|
||||
(const void *)gss_acquire_cred_ext,
|
||||
(const void *)gss_aapl_initial_cred,
|
||||
(const void *)gss_aapl_change_password,
|
||||
(const void *)gss_add_buffer_set_member,
|
||||
(const void *)gss_add_cred,
|
||||
(const void *)gss_add_oid_set_member,
|
||||
(const void *)gss_canonicalize_name,
|
||||
(const void *)gss_compare_name,
|
||||
(const void *)gss_context_query_attributes,
|
||||
(const void *)gss_context_time,
|
||||
(const void *)gss_create_empty_buffer_set,
|
||||
(const void *)gss_create_empty_oid_set,
|
||||
(const void *)gss_decapsulate_token,
|
||||
(const void *)gss_delete_sec_context,
|
||||
(const void *)gss_destroy_cred,
|
||||
(const void *)gss_display_name,
|
||||
(const void *)gss_display_status,
|
||||
(const void *)gss_duplicate_name,
|
||||
(const void *)gss_duplicate_oid,
|
||||
(const void *)gss_encapsulate_token,
|
||||
(const void *)gss_export_cred,
|
||||
(const void *)gss_export_name,
|
||||
(const void *)gss_export_sec_context,
|
||||
(const void *)gss_get_mic,
|
||||
(const void *)gss_import_cred,
|
||||
(const void *)gss_import_name,
|
||||
(const void *)gss_import_sec_context,
|
||||
(const void *)gss_indicate_mechs,
|
||||
(const void *)gss_init_sec_context,
|
||||
(const void *)gss_inquire_context,
|
||||
(const void *)gss_inquire_cred,
|
||||
(const void *)gss_inquire_cred_by_mech,
|
||||
(const void *)gss_inquire_cred_by_oid,
|
||||
(const void *)gss_inquire_mechs_for_name,
|
||||
(const void *)gss_inquire_names_for_mech,
|
||||
(const void *)gss_inquire_sec_context_by_oid,
|
||||
(const void *)gss_inquire_sec_context_by_oid,
|
||||
(const void *)gss_iter_creds,
|
||||
(const void *)gss_iter_creds_f,
|
||||
(const void *)gss_krb5_ccache_name,
|
||||
(const void *)gss_krb5_copy_ccache,
|
||||
(const void *)gss_krb5_export_lucid_sec_context,
|
||||
(const void *)gss_krb5_free_lucid_sec_context,
|
||||
(const void *)gss_krb5_get_tkt_flags,
|
||||
(const void *)gss_krb5_import_cred,
|
||||
(const void *)gss_krb5_set_allowable_enctypes,
|
||||
(const void *)gss_cred_hold,
|
||||
(const void *)gss_cred_unhold,
|
||||
(const void *)gss_oid_equal,
|
||||
(const void *)gss_oid_to_str,
|
||||
(const void *)gss_process_context_token,
|
||||
(const void *)gss_pseudo_random,
|
||||
(const void *)gss_release_buffer,
|
||||
(const void *)gss_release_buffer_set,
|
||||
(const void *)gss_release_cred,
|
||||
(const void *)gss_release_iov_buffer,
|
||||
(const void *)gss_release_name,
|
||||
(const void *)gss_release_oid,
|
||||
(const void *)gss_release_oid_set,
|
||||
(const void *)gss_seal,
|
||||
(const void *)gss_set_cred_option,
|
||||
(const void *)gss_set_sec_context_option,
|
||||
(const void *)gss_sign,
|
||||
(const void *)gss_test_oid_set_member,
|
||||
(const void *)gss_mo_set,
|
||||
(const void *)gss_mo_get,
|
||||
(const void *)gss_mo_name,
|
||||
(const void *)gss_mo_list,
|
||||
(const void *)gss_userok,
|
||||
(const void *)gss_unseal,
|
||||
(const void *)gss_unwrap,
|
||||
(const void *)gss_unwrap_iov,
|
||||
(const void *)gss_verify,
|
||||
(const void *)gss_verify_mic,
|
||||
(const void *)gss_wrap,
|
||||
(const void *)gss_wrap_iov,
|
||||
(const void *)gss_wrap_iov_length,
|
||||
(const void *)gss_wrap_size_limit,
|
||||
(const void *)gsskrb5_extract_authtime_from_sec_context,
|
||||
(const void *)gsskrb5_extract_authz_data_from_sec_context,
|
||||
(const void *)gsskrb5_extract_service_keyblock,
|
||||
(const void *)gsskrb5_get_initiator_subkey,
|
||||
(const void *)gsskrb5_get_subkey,
|
||||
(const void *)gsskrb5_get_time_offset,
|
||||
(const void *)gsskrb5_register_acceptor_identity,
|
||||
(const void *)gsskrb5_set_default_realm,
|
||||
(const void *)gsskrb5_set_dns_canonicalize,
|
||||
(const void *)gsskrb5_set_time_offset,
|
||||
(const void *)krb5_gss_register_acceptor_identity,
|
||||
(const void *)_gsskrb5_init,
|
||||
(const void *)gss_oid_to_name,
|
||||
(const void *)gss_name_to_oid,
|
||||
(const void *)gss_cred_label_get,
|
||||
(const void *)gss_cred_label_set,
|
||||
(const void *)gss_inquire_attrs_for_mech,
|
||||
(const void *)gss_display_mech_attr,
|
||||
(const void *)gss_acquire_cred_with_password,
|
||||
(const void *)free_NegotiationToken,
|
||||
(const void *)free_NegotiationTokenWin,
|
||||
(const void *)decode_NegotiationToken,
|
||||
(const void *)decode_NegotiationTokenWin,
|
||||
(const void *)&kGSSAttrClass,
|
||||
(const void *)&kGSSAttrClassKerberos,
|
||||
(const void *)&kGSSAttrClassNTLM,
|
||||
(const void *)&kGSSAttrClassIAKerb,
|
||||
(const void *)&kGSSAttrSupportGSSCredential,
|
||||
(const void *)&kGSSAttrNameType,
|
||||
(const void *)&kGSSAttrNameTypeGSSExportedName,
|
||||
(const void *)&kGSSAttrNameTypeGSSUsername,
|
||||
(const void *)&kGSSAttrNameTypeGSSHostBasedService,
|
||||
(const void *)&kGSSAttrName,
|
||||
(const void *)&kGSSAttrNameDisplay,
|
||||
(const void *)&kGSSAttrUUID,
|
||||
(const void *)&kGSSAttrTransientExpire,
|
||||
(const void *)&kGSSAttrCredentialPassword,
|
||||
(const void *)&kGSSAttrCredentialStore,
|
||||
(const void *)&kGSSAttrCredentialSecIdentity,
|
||||
(const void *)&kGSSAttrCredentialExists,
|
||||
(const void *)&kGSSAttrStatusPersistant,
|
||||
(const void *)&kGSSAttrStatusAutoAcquire,
|
||||
(const void *)&kGSSAttrStatusTransient,
|
||||
(const void *)&kGSSAttrStatusAutoAcquireStatus,
|
||||
(const void *)&kGSSAttrTransientDefaultInClass,
|
||||
(const void *)&__kGSSOperationAcquire,
|
||||
(const void *)&__kGSSOperationGetGSSCredential,
|
||||
(const void *)&__kGSSOperationCredentialDiagnostics,
|
||||
(const void *)&__kGSSOperationDestoryTransient,
|
||||
(const void *)&__kGSSOperationDestroyTransient,
|
||||
(const void *)&__kGSSOperationChangePassword,
|
||||
(const void *)&__kGSSOperationSetDefault,
|
||||
(const void *)&__kGSSOperationRenewCredential,
|
||||
(const void *)&__kGSSOperationRemoveBackingCredential,
|
||||
(const void *)&kGSSOperationChangePasswordOldPassword,
|
||||
(const void *)&kGSSOperationChangePasswordNewPassword,
|
||||
(const void *)GSSItemAdd,
|
||||
(const void *)GSSItemCopyMatching,
|
||||
(const void *)GSSItemDelete,
|
||||
(const void *)GSSItemDeleteItem,
|
||||
(const void *)GSSItemUpdate,
|
||||
(const void *)GSSItemOperation,
|
||||
(const void *)GSSItemGetValue,
|
||||
(const void *)GSSItemGetTypeID,
|
||||
(const void *)GSSCredentialCopyUUID,
|
||||
(const void *)GSSCreateCredentialFromUUID,
|
||||
(const void *)GSSRuleAddMatch,
|
||||
(const void *)GSSRuleGetMatch,
|
||||
(const void *)GSSCreateName,
|
||||
(const void *)GSSNameCreateDisplayString,
|
||||
(const void *)GSSCredentialCopyName,
|
||||
(const void *)GSSCredentialGetLifetime,
|
||||
(const void *)GSSCredCopyName,
|
||||
(const void *)GSSCredGetLifetime,
|
||||
(const void *)GSSCreateError,
|
||||
(const void *)gss_set_log_function,
|
||||
(const void *)gss_inquire_saslname_for_mech,
|
||||
(const void *)gss_inquire_mech_for_saslname,
|
||||
(const void *)gss_indicate_mechs_by_attrs,
|
||||
(const void *)GSSCheckNTLMReflection,
|
||||
NULL
|
||||
};
|
||||
|
||||
#pragma clang diagnostic pop
|
||||
|
206
gen/sym_hcrypto.c
Executable file
206
gen/sym_hcrypto.c
Executable file
@ -0,0 +1,206 @@
|
||||
struct krb5_dh_moduli;
|
||||
struct _krb5_krb_auth_data;
|
||||
struct AlgorithmIdentifier;
|
||||
struct _krb5_key_data;
|
||||
struct _krb5_checksum_type;
|
||||
struct _krb5_key_type;
|
||||
struct _krb5_encryption_type;
|
||||
struct _krb5_srv_query_ctx;
|
||||
struct krb5_fast_state;
|
||||
struct _krb5_srp_group;
|
||||
struct _krb5_srp;
|
||||
|
||||
#define KRB5_DEPRECATED
|
||||
#define KRB5_DEPRECATED_FUNCTION(x)
|
||||
#define GSSAPI_DEPRECATED
|
||||
#define HC_DEPRECATED
|
||||
#define HC_DEPRECATED_CRYPTO
|
||||
#define GSSAPI_DEPRECATED_FUNCTION(x)
|
||||
|
||||
#include <config.h>
|
||||
#include <krb5.h>
|
||||
#include <krb5_asn1.h>
|
||||
#include "crypto-headers.h"
|
||||
#include <gssapi_rewrite.h>
|
||||
#include <GSS.h>
|
||||
#include <GSSPrivate.h>
|
||||
#include <gssapi.h>
|
||||
#include <gssapi_krb5.h>
|
||||
#include <gssapi_scram.h>
|
||||
#include <gssapi_spnego.h>
|
||||
#include <gssapi_ntlm.h>
|
||||
#include <gssapi_netlogon.h>
|
||||
#include <gssapi_apple.h>
|
||||
#include <gssapi_spi.h>
|
||||
#include <GSSItem.h>
|
||||
#include <heimbase.h>
|
||||
#include <heimbasepriv.h>
|
||||
#include <hx509.h>
|
||||
#include <krb5-private.h>
|
||||
#include <roken.h>
|
||||
#include <rtbl.h>
|
||||
#include <parse_bytes.h>
|
||||
#include <krb5_err.h>
|
||||
#include <heim_err.h>
|
||||
#include <krb_err.h>
|
||||
#include <hdb_err.h>
|
||||
#include <hx509_err.h>
|
||||
#include <heim-ipc.h>
|
||||
#include <wind.h>
|
||||
#include <parse_units.h>
|
||||
#include <parse_time.h>
|
||||
#include <base64.h>
|
||||
#include <hex.h>
|
||||
#include <com_err.h>
|
||||
#include <der.h>
|
||||
#include <rfc2459_asn1.h>
|
||||
#include <cms_asn1.h>
|
||||
#include <spnego_asn1.h>
|
||||
#include <gkrb5_err.h>
|
||||
#include <heimcred.h>
|
||||
|
||||
krb5_error_code _gsskrb5_init (krb5_context *);
|
||||
|
||||
extern int _krb5_AES_string_to_default_iterator;
|
||||
|
||||
struct hx509_collector;
|
||||
struct hx_expr;
|
||||
struct hx509_generate_private_context;
|
||||
struct hx509_keyset_ops;
|
||||
typedef struct hx509_path hx509_path;
|
||||
typedef void (*_hx509_cert_release_func)(struct hx509_cert_data *, void *);
|
||||
|
||||
#include <hx509-private.h>
|
||||
|
||||
extern const void *hcrypto_sym_export[];
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
||||
const void *hcrypto_sym_export[] = {
|
||||
#ifndef HAVE_CCDIGESTCREATE
|
||||
(const void *)hc_CCDigest,
|
||||
(const void *)hc_CCDigestCreate,
|
||||
(const void *)hc_CCDigestDestroy,
|
||||
(const void *)hc_CCDigestFinal,
|
||||
(const void *)hc_CCDigestUpdate,
|
||||
(const void *)&hc_kCCDigestMD4_s,
|
||||
(const void *)&hc_kCCDigestMD5_s,
|
||||
(const void *)&hc_kCCDigestSHA1_s,
|
||||
(const void *)&hc_kCCDigestSHA256_s,
|
||||
#endif
|
||||
#ifndef PKINIT
|
||||
(const void *)hc_DH_check_pubkey,
|
||||
(const void *)hc_DH_compute_key,
|
||||
(const void *)hc_DH_free,
|
||||
(const void *)hc_DH_generate_key,
|
||||
(const void *)hc_DH_generate_parameters_ex,
|
||||
(const void *)hc_DH_get_default_method,
|
||||
(const void *)hc_DH_get_ex_data,
|
||||
(const void *)hc_DH_new,
|
||||
(const void *)hc_DH_new_method,
|
||||
(const void *)hc_DH_set_default_method,
|
||||
(const void *)hc_DH_set_ex_data,
|
||||
(const void *)hc_DH_set_method,
|
||||
(const void *)hc_DH_size,
|
||||
(const void *)hc_DH_up_ref,
|
||||
(const void *)hc_EVP_BytesToKey,
|
||||
#endif
|
||||
(const void *)hc_EVP_CIPHER_CTX_block_size,
|
||||
(const void *)hc_EVP_CIPHER_CTX_cipher,
|
||||
(const void *)hc_EVP_CIPHER_CTX_cleanup,
|
||||
(const void *)hc_EVP_CIPHER_CTX_ctrl,
|
||||
(const void *)hc_EVP_CIPHER_CTX_flags,
|
||||
(const void *)hc_EVP_CIPHER_CTX_get_app_data,
|
||||
(const void *)hc_EVP_CIPHER_CTX_init,
|
||||
(const void *)hc_EVP_CIPHER_CTX_iv_length,
|
||||
(const void *)hc_EVP_CIPHER_CTX_key_length,
|
||||
(const void *)hc_EVP_CIPHER_CTX_mode,
|
||||
(const void *)hc_EVP_CIPHER_CTX_rand_key,
|
||||
(const void *)hc_EVP_CIPHER_CTX_set_app_data,
|
||||
(const void *)hc_EVP_CIPHER_CTX_set_key_length,
|
||||
(const void *)hc_EVP_CIPHER_block_size,
|
||||
(const void *)hc_EVP_CIPHER_iv_length,
|
||||
(const void *)hc_EVP_CIPHER_key_length,
|
||||
(const void *)hc_EVP_Cipher,
|
||||
(const void *)hc_EVP_CipherFinal_ex,
|
||||
(const void *)hc_EVP_CipherInit_ex,
|
||||
(const void *)hc_EVP_CipherUpdate,
|
||||
(const void *)hc_EVP_aes_128_cbc,
|
||||
(const void *)hc_EVP_aes_128_cfb8,
|
||||
(const void *)hc_EVP_aes_192_cbc,
|
||||
(const void *)hc_EVP_aes_192_cfb8,
|
||||
(const void *)hc_EVP_aes_256_cbc,
|
||||
(const void *)hc_EVP_aes_256_cfb8,
|
||||
(const void *)hc_EVP_des_cbc,
|
||||
(const void *)hc_EVP_des_ede3_cbc,
|
||||
(const void *)hc_EVP_enc_null,
|
||||
(const void *)hc_EVP_get_cipherbyname,
|
||||
(const void *)hc_EVP_md5,
|
||||
(const void *)hc_EVP_md_null,
|
||||
#ifndef __APPLE_TARGET_EMBEDDED__
|
||||
(const void *)hc_EVP_rc2_40_cbc,
|
||||
(const void *)hc_EVP_rc2_64_cbc,
|
||||
(const void *)hc_EVP_rc2_cbc,
|
||||
#endif
|
||||
(const void *)hc_EVP_rc4,
|
||||
(const void *)hc_OpenSSL_add_all_algorithms,
|
||||
(const void *)hc_OpenSSL_add_all_algorithms_conf,
|
||||
(const void *)hc_OpenSSL_add_all_algorithms_noconf,
|
||||
#ifndef PKINIT
|
||||
(const void *)hc_RSA_check_key,
|
||||
(const void *)hc_RSA_free,
|
||||
(const void *)hc_RSA_generate_key_ex,
|
||||
(const void *)hc_RSA_get_app_data,
|
||||
(const void *)hc_RSA_get_default_method,
|
||||
(const void *)hc_RSA_get_method,
|
||||
(const void *)hc_RSA_new,
|
||||
(const void *)hc_RSA_new_method,
|
||||
(const void *)hc_RSA_private_decrypt,
|
||||
(const void *)hc_RSA_private_encrypt,
|
||||
(const void *)hc_RSA_public_decrypt,
|
||||
(const void *)hc_RSA_public_encrypt,
|
||||
(const void *)hc_RSA_set_app_data,
|
||||
(const void *)hc_RSA_set_default_method,
|
||||
(const void *)hc_RSA_set_method,
|
||||
(const void *)hc_RSA_sign,
|
||||
(const void *)hc_RSA_size,
|
||||
(const void *)hc_RSA_up_ref,
|
||||
(const void *)hc_RSA_verify,
|
||||
(const void *)hc_d2i_RSAPrivateKey,
|
||||
(const void *)hc_d2i_RSAPublicKey,
|
||||
(const void *)hc_i2d_RSAPrivateKey,
|
||||
(const void *)hc_i2d_RSAPublicKey,
|
||||
#endif
|
||||
(const void *)hc_UI_UTIL_read_pw_string,
|
||||
(const void *)hc_UI_UTIL_read_pw_string_stdio,
|
||||
(const void *)hc_ENGINE_add_conf_module,
|
||||
(const void *)hc_ENGINE_by_dso,
|
||||
(const void *)hc_ENGINE_by_id,
|
||||
(const void *)hc_ENGINE_finish,
|
||||
(const void *)hc_ENGINE_get_DH,
|
||||
(const void *)hc_ENGINE_get_RAND,
|
||||
(const void *)hc_ENGINE_get_RSA,
|
||||
(const void *)hc_ENGINE_get_default_DH,
|
||||
(const void *)hc_ENGINE_get_default_RSA,
|
||||
(const void *)hc_ENGINE_get_id,
|
||||
(const void *)hc_ENGINE_get_name,
|
||||
(const void *)hc_ENGINE_load_builtin_engines,
|
||||
#ifndef PKINIT
|
||||
(const void *)hc_ENGINE_set_DH,
|
||||
(const void *)hc_ENGINE_set_RSA,
|
||||
(const void *)hc_ENGINE_set_default_DH,
|
||||
(const void *)hc_ENGINE_set_default_RSA,
|
||||
#endif
|
||||
(const void *)hc_ENGINE_set_destroy_function,
|
||||
(const void *)hc_ENGINE_set_id,
|
||||
(const void *)hc_ENGINE_set_name,
|
||||
(const void *)hc_ENGINE_up_ref,
|
||||
(const void *)hc_PKCS5_PBKDF2_HMAC_SHA1,
|
||||
#ifndef __APPLE_TARGET_EMBEDDED__
|
||||
(const void *)hc_PKCS12_key_gen,
|
||||
#endif
|
||||
NULL
|
||||
};
|
||||
|
||||
#pragma clang diagnostic pop
|
||||
|
311
gen/sym_hx509.c
Executable file
311
gen/sym_hx509.c
Executable file
@ -0,0 +1,311 @@
|
||||
struct krb5_dh_moduli;
|
||||
struct _krb5_krb_auth_data;
|
||||
struct AlgorithmIdentifier;
|
||||
struct _krb5_key_data;
|
||||
struct _krb5_checksum_type;
|
||||
struct _krb5_key_type;
|
||||
struct _krb5_encryption_type;
|
||||
struct _krb5_srv_query_ctx;
|
||||
struct krb5_fast_state;
|
||||
struct _krb5_srp_group;
|
||||
struct _krb5_srp;
|
||||
|
||||
#define KRB5_DEPRECATED
|
||||
#define KRB5_DEPRECATED_FUNCTION(x)
|
||||
#define GSSAPI_DEPRECATED
|
||||
#define HC_DEPRECATED
|
||||
#define HC_DEPRECATED_CRYPTO
|
||||
#define GSSAPI_DEPRECATED_FUNCTION(x)
|
||||
|
||||
#include <config.h>
|
||||
#include <krb5.h>
|
||||
#include <krb5_asn1.h>
|
||||
#include "crypto-headers.h"
|
||||
#include <gssapi_rewrite.h>
|
||||
#include <GSS.h>
|
||||
#include <GSSPrivate.h>
|
||||
#include <gssapi.h>
|
||||
#include <gssapi_krb5.h>
|
||||
#include <gssapi_scram.h>
|
||||
#include <gssapi_spnego.h>
|
||||
#include <gssapi_ntlm.h>
|
||||
#include <gssapi_netlogon.h>
|
||||
#include <gssapi_apple.h>
|
||||
#include <gssapi_spi.h>
|
||||
#include <GSSItem.h>
|
||||
#include <heimbase.h>
|
||||
#include <heimbasepriv.h>
|
||||
#include <hx509.h>
|
||||
#include <krb5-private.h>
|
||||
#include <roken.h>
|
||||
#include <rtbl.h>
|
||||
#include <parse_bytes.h>
|
||||
#include <krb5_err.h>
|
||||
#include <heim_err.h>
|
||||
#include <krb_err.h>
|
||||
#include <hdb_err.h>
|
||||
#include <hx509_err.h>
|
||||
#include <heim-ipc.h>
|
||||
#include <wind.h>
|
||||
#include <parse_units.h>
|
||||
#include <parse_time.h>
|
||||
#include <base64.h>
|
||||
#include <hex.h>
|
||||
#include <com_err.h>
|
||||
#include <der.h>
|
||||
#include <rfc2459_asn1.h>
|
||||
#include <cms_asn1.h>
|
||||
#include <spnego_asn1.h>
|
||||
#include <gkrb5_err.h>
|
||||
#include <heimcred.h>
|
||||
|
||||
krb5_error_code _gsskrb5_init (krb5_context *);
|
||||
|
||||
extern int _krb5_AES_string_to_default_iterator;
|
||||
|
||||
struct hx509_collector;
|
||||
struct hx_expr;
|
||||
struct hx509_generate_private_context;
|
||||
struct hx509_keyset_ops;
|
||||
typedef struct hx509_path hx509_path;
|
||||
typedef void (*_hx509_cert_release_func)(struct hx509_cert_data *, void *);
|
||||
|
||||
#include <hx509-private.h>
|
||||
|
||||
extern const void *hx509_sym_export[];
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
||||
const void *hx509_sym_export[] = {
|
||||
#ifdef PKINIT
|
||||
(const void *)hx509_bitstring_print,
|
||||
(const void *)hx509_ca_sign,
|
||||
(const void *)hx509_ca_sign_self,
|
||||
(const void *)hx509_ca_tbs_add_crl_dp_uri,
|
||||
(const void *)hx509_ca_tbs_add_eku,
|
||||
(const void *)hx509_ca_tbs_add_san_hostname,
|
||||
(const void *)hx509_ca_tbs_add_san_jid,
|
||||
(const void *)hx509_ca_tbs_add_san_ms_upn,
|
||||
(const void *)hx509_ca_tbs_add_san_otherName,
|
||||
(const void *)hx509_ca_tbs_add_san_pkinit,
|
||||
(const void *)hx509_ca_tbs_add_san_rfc822name,
|
||||
(const void *)hx509_ca_tbs_free,
|
||||
(const void *)hx509_ca_tbs_init,
|
||||
(const void *)hx509_ca_tbs_set_ca,
|
||||
(const void *)hx509_ca_tbs_set_domaincontroller,
|
||||
(const void *)hx509_ca_tbs_set_notAfter,
|
||||
(const void *)hx509_ca_tbs_set_notAfter_lifetime,
|
||||
(const void *)hx509_ca_tbs_set_notBefore,
|
||||
(const void *)hx509_ca_tbs_set_proxy,
|
||||
(const void *)hx509_ca_tbs_set_serialnumber,
|
||||
(const void *)hx509_ca_tbs_set_spki,
|
||||
(const void *)hx509_ca_tbs_set_subject,
|
||||
(const void *)hx509_ca_tbs_set_template,
|
||||
(const void *)hx509_ca_tbs_subject_expand,
|
||||
(const void *)hx509_ca_tbs_template_units,
|
||||
(const void *)hx509_cert_binary,
|
||||
(const void *)hx509_cert_check_eku,
|
||||
(const void *)hx509_cert_cmp,
|
||||
(const void *)hx509_cert_find_subjectAltName_otherName,
|
||||
(const void *)hx509_cert_free,
|
||||
(const void *)hx509_cert_get_SPKI,
|
||||
(const void *)hx509_cert_get_attribute,
|
||||
(const void *)hx509_cert_get_base_subject,
|
||||
(const void *)hx509_cert_get_friendly_name,
|
||||
(const void *)hx509_cert_get_issuer,
|
||||
(const void *)hx509_cert_get_notAfter,
|
||||
(const void *)hx509_cert_get_notBefore,
|
||||
(const void *)hx509_cert_get_serialnumber,
|
||||
(const void *)hx509_cert_get_subject,
|
||||
(const void *)hx509_cert_init,
|
||||
(const void *)hx509_cert_init_SecFramework,
|
||||
(const void *)hx509_cert_init_SecFrameworkAuth,
|
||||
(const void *)hx509_cert_init_data,
|
||||
(const void *)hx509_cert_keyusage_print,
|
||||
(const void *)hx509_cert_ref,
|
||||
(const void *)hx509_cert_set_friendly_name,
|
||||
(const void *)hx509_certs_add,
|
||||
(const void *)hx509_certs_append,
|
||||
(const void *)hx509_certs_end_seq,
|
||||
(const void *)hx509_certs_filter,
|
||||
(const void *)hx509_certs_find,
|
||||
(const void *)hx509_certs_free,
|
||||
(const void *)hx509_certs_info,
|
||||
(const void *)hx509_certs_init,
|
||||
(const void *)hx509_certs_iter,
|
||||
(const void *)hx509_certs_iter_f,
|
||||
(const void *)hx509_certs_merge,
|
||||
(const void *)hx509_certs_next_cert,
|
||||
(const void *)hx509_certs_start_seq,
|
||||
(const void *)hx509_certs_store,
|
||||
(const void *)hx509_ci_print_names,
|
||||
(const void *)hx509_clear_error_string,
|
||||
(const void *)hx509_cms_create_signed,
|
||||
(const void *)hx509_cms_create_signed_1,
|
||||
(const void *)hx509_cms_decrypt_encrypted,
|
||||
(const void *)hx509_cms_envelope_1,
|
||||
(const void *)hx509_cms_unenvelope,
|
||||
(const void *)hx509_cms_unwrap_ContentInfo,
|
||||
(const void *)hx509_cms_verify_signed,
|
||||
(const void *)hx509_cms_wrap_ContentInfo,
|
||||
(const void *)hx509_context_free,
|
||||
(const void *)hx509_context_init,
|
||||
(const void *)hx509_context_set_missing_revoke,
|
||||
(const void *)hx509_crl_add_revoked_certs,
|
||||
(const void *)hx509_crl_alloc,
|
||||
(const void *)hx509_crl_free,
|
||||
(const void *)hx509_crl_lifetime,
|
||||
(const void *)hx509_crl_sign,
|
||||
(const void *)hx509_crypto_aes128_cbc,
|
||||
(const void *)hx509_crypto_aes256_cbc,
|
||||
(const void *)hx509_crypto_available,
|
||||
(const void *)hx509_crypto_decrypt,
|
||||
(const void *)hx509_crypto_des_rsdi_ede3_cbc,
|
||||
(const void *)hx509_crypto_destroy,
|
||||
(const void *)hx509_crypto_encrypt,
|
||||
(const void *)hx509_crypto_enctype_by_name,
|
||||
(const void *)hx509_crypto_free_algs,
|
||||
(const void *)hx509_crypto_get_params,
|
||||
(const void *)hx509_crypto_init,
|
||||
(const void *)hx509_crypto_provider,
|
||||
(const void *)hx509_crypto_select,
|
||||
(const void *)hx509_crypto_set_key_data,
|
||||
(const void *)hx509_crypto_set_key_name,
|
||||
(const void *)hx509_crypto_set_params,
|
||||
(const void *)hx509_crypto_set_random_key,
|
||||
(const void *)hx509_env_add,
|
||||
(const void *)hx509_env_add_binding,
|
||||
(const void *)hx509_env_find,
|
||||
(const void *)hx509_env_find_binding,
|
||||
(const void *)hx509_env_free,
|
||||
(const void *)hx509_env_lfind,
|
||||
(const void *)hx509_err,
|
||||
(const void *)hx509_free_error_string,
|
||||
(const void *)hx509_free_octet_string_list,
|
||||
(const void *)hx509_general_name_unparse,
|
||||
(const void *)hx509_get_error_string,
|
||||
(const void *)hx509_get_one_cert,
|
||||
(const void *)hx509_lock_add_cert,
|
||||
(const void *)hx509_lock_add_certs,
|
||||
(const void *)hx509_lock_add_password,
|
||||
(const void *)hx509_lock_command_string,
|
||||
(const void *)hx509_lock_free,
|
||||
(const void *)hx509_lock_init,
|
||||
(const void *)hx509_lock_prompt,
|
||||
(const void *)hx509_lock_reset_certs,
|
||||
(const void *)hx509_lock_reset_passwords,
|
||||
(const void *)hx509_lock_reset_promper,
|
||||
(const void *)hx509_lock_set_prompter,
|
||||
(const void *)hx509_name_binary,
|
||||
(const void *)hx509_name_cmp,
|
||||
(const void *)hx509_name_copy,
|
||||
(const void *)hx509_name_expand,
|
||||
(const void *)hx509_name_free,
|
||||
(const void *)hx509_name_from_Name,
|
||||
(const void *)hx509_name_is_null_p,
|
||||
(const void *)hx509_name_normalize,
|
||||
(const void *)hx509_name_to_Name,
|
||||
(const void *)hx509_name_to_string,
|
||||
(const void *)hx509_ocsp_request,
|
||||
(const void *)hx509_ocsp_verify,
|
||||
(const void *)hx509_oid_print,
|
||||
(const void *)hx509_oid_sprint,
|
||||
(const void *)hx509_parse_name,
|
||||
(const void *)hx509_peer_info_add_cms_alg,
|
||||
(const void *)hx509_peer_info_alloc,
|
||||
(const void *)hx509_peer_info_free,
|
||||
(const void *)hx509_peer_info_set_cert,
|
||||
(const void *)hx509_peer_info_set_cms_algs,
|
||||
(const void *)hx509_pem_add_header,
|
||||
(const void *)hx509_pem_find_header,
|
||||
(const void *)hx509_pem_free_header,
|
||||
(const void *)hx509_pem_read,
|
||||
(const void *)hx509_pem_write,
|
||||
(const void *)hx509_print_cert,
|
||||
(const void *)hx509_print_stdout,
|
||||
(const void *)hx509_prompt_hidden,
|
||||
(const void *)hx509_query_alloc,
|
||||
(const void *)hx509_query_free,
|
||||
(const void *)hx509_query_match_cmp_func,
|
||||
(const void *)hx509_query_match_eku,
|
||||
(const void *)hx509_query_match_friendly_name,
|
||||
(const void *)hx509_query_match_issuer_serial,
|
||||
(const void *)hx509_query_match_option,
|
||||
(const void *)hx509_revoke_add_crl,
|
||||
(const void *)hx509_revoke_add_ocsp,
|
||||
(const void *)hx509_revoke_free,
|
||||
(const void *)hx509_revoke_init,
|
||||
(const void *)hx509_revoke_ocsp_print,
|
||||
(const void *)hx509_revoke_verify,
|
||||
(const void *)hx509_set_error_string,
|
||||
(const void *)hx509_set_error_stringv,
|
||||
(const void *)hx509_signature_md5,
|
||||
(const void *)hx509_signature_rsa,
|
||||
(const void *)hx509_signature_rsa_with_md5,
|
||||
(const void *)hx509_signature_rsa_with_sha1,
|
||||
(const void *)hx509_signature_rsa_with_sha256,
|
||||
(const void *)hx509_signature_rsa_with_sha384,
|
||||
(const void *)hx509_signature_rsa_with_sha512,
|
||||
(const void *)hx509_signature_sha1,
|
||||
(const void *)hx509_signature_sha256,
|
||||
(const void *)hx509_signature_sha384,
|
||||
(const void *)hx509_signature_sha512,
|
||||
(const void *)hx509_unparse_der_name,
|
||||
(const void *)hx509_validate_cert,
|
||||
(const void *)hx509_validate_ctx_add_flags,
|
||||
(const void *)hx509_validate_ctx_free,
|
||||
(const void *)hx509_validate_ctx_init,
|
||||
(const void *)hx509_validate_ctx_set_print,
|
||||
(const void *)hx509_verify_attach_anchors,
|
||||
(const void *)hx509_verify_attach_revoke,
|
||||
(const void *)hx509_verify_ctx_f_allow_default_trustanchors,
|
||||
(const void *)hx509_verify_destroy_ctx,
|
||||
(const void *)hx509_verify_hostname,
|
||||
(const void *)hx509_verify_init_ctx,
|
||||
(const void *)hx509_verify_path,
|
||||
(const void *)hx509_verify_set_max_depth,
|
||||
(const void *)hx509_verify_set_proxy_certificate,
|
||||
(const void *)hx509_verify_set_strict_rfc3280_verification,
|
||||
(const void *)hx509_verify_set_time,
|
||||
(const void *)hx509_verify_signature,
|
||||
(const void *)hx509_xfree,
|
||||
(const void *)initialize_hx_error_table_r,
|
||||
(const void *)_hx509_cert_set_key,
|
||||
(const void *)_hx509_cert_private_key,
|
||||
(const void *)_hx509_certs_keys_free,
|
||||
(const void *)_hx509_certs_keys_get,
|
||||
(const void *)_hx509_generate_private_key_bits,
|
||||
(const void *)_hx509_generate_private_key_free,
|
||||
(const void *)_hx509_generate_private_key_init,
|
||||
(const void *)_hx509_generate_private_key_is_ca,
|
||||
(const void *)_hx509_generate_private_key,
|
||||
(const void *)_hx509_map_file_os,
|
||||
(const void *)hx509_private_key2SPKI,
|
||||
(const void *)hx509_private_key_free,
|
||||
(const void *)_hx509_private_key_ref,
|
||||
(const void *)_hx509_request_add_dns_name,
|
||||
(const void *)_hx509_request_add_email,
|
||||
(const void *)hx509_request_free,
|
||||
(const void *)hx509_request_get_SubjectPublicKeyInfo,
|
||||
(const void *)hx509_request_get_name,
|
||||
(const void *)hx509_request_init,
|
||||
(const void *)_hx509_request_parse,
|
||||
(const void *)_hx509_request_print,
|
||||
(const void *)hx509_request_set_SubjectPublicKeyInfo,
|
||||
(const void *)hx509_request_set_name,
|
||||
(const void *)_hx509_request_to_pkcs10,
|
||||
(const void *)_hx509_unmap_file_os,
|
||||
(const void *)_hx509_write_file,
|
||||
(const void *)hx509_cert_get_appleid,
|
||||
(const void *)hx509_cert_get_persistent,
|
||||
(const void *)hx509_evaluate_free,
|
||||
(const void *)hx509_evaluate_get_length,
|
||||
(const void *)hx509_evaluate_get_cert,
|
||||
(const void *)hx509_evaluate_get_ta,
|
||||
(const void *)hx509_query_match_persistent,
|
||||
#endif
|
||||
NULL
|
||||
};
|
||||
|
||||
#pragma clang diagnostic pop
|
||||
|
801
gen/sym_krb5.c
Executable file
801
gen/sym_krb5.c
Executable file
@ -0,0 +1,801 @@
|
||||
struct krb5_dh_moduli;
|
||||
struct _krb5_krb_auth_data;
|
||||
struct AlgorithmIdentifier;
|
||||
struct _krb5_key_data;
|
||||
struct _krb5_checksum_type;
|
||||
struct _krb5_key_type;
|
||||
struct _krb5_encryption_type;
|
||||
struct _krb5_srv_query_ctx;
|
||||
struct krb5_fast_state;
|
||||
struct _krb5_srp_group;
|
||||
struct _krb5_srp;
|
||||
|
||||
#define KRB5_DEPRECATED
|
||||
#define KRB5_DEPRECATED_FUNCTION(x)
|
||||
#define GSSAPI_DEPRECATED
|
||||
#define HC_DEPRECATED
|
||||
#define HC_DEPRECATED_CRYPTO
|
||||
#define GSSAPI_DEPRECATED_FUNCTION(x)
|
||||
|
||||
#include <config.h>
|
||||
#include <krb5.h>
|
||||
#include <krb5_asn1.h>
|
||||
#include "crypto-headers.h"
|
||||
#include <gssapi_rewrite.h>
|
||||
#include <GSS.h>
|
||||
#include <GSSPrivate.h>
|
||||
#include <gssapi.h>
|
||||
#include <gssapi_krb5.h>
|
||||
#include <gssapi_scram.h>
|
||||
#include <gssapi_spnego.h>
|
||||
#include <gssapi_ntlm.h>
|
||||
#include <gssapi_netlogon.h>
|
||||
#include <gssapi_apple.h>
|
||||
#include <gssapi_spi.h>
|
||||
#include <GSSItem.h>
|
||||
#include <heimbase.h>
|
||||
#include <heimbasepriv.h>
|
||||
#include <hx509.h>
|
||||
#include <krb5-private.h>
|
||||
#include <roken.h>
|
||||
#include <rtbl.h>
|
||||
#include <parse_bytes.h>
|
||||
#include <krb5_err.h>
|
||||
#include <heim_err.h>
|
||||
#include <krb_err.h>
|
||||
#include <hdb_err.h>
|
||||
#include <hx509_err.h>
|
||||
#include <heim-ipc.h>
|
||||
#include <wind.h>
|
||||
#include <parse_units.h>
|
||||
#include <parse_time.h>
|
||||
#include <base64.h>
|
||||
#include <hex.h>
|
||||
#include <com_err.h>
|
||||
#include <der.h>
|
||||
#include <rfc2459_asn1.h>
|
||||
#include <cms_asn1.h>
|
||||
#include <spnego_asn1.h>
|
||||
#include <gkrb5_err.h>
|
||||
#include <heimcred.h>
|
||||
|
||||
krb5_error_code _gsskrb5_init (krb5_context *);
|
||||
|
||||
extern int _krb5_AES_string_to_default_iterator;
|
||||
|
||||
struct hx509_collector;
|
||||
struct hx_expr;
|
||||
struct hx509_generate_private_context;
|
||||
struct hx509_keyset_ops;
|
||||
typedef struct hx509_path hx509_path;
|
||||
typedef void (*_hx509_cert_release_func)(struct hx509_cert_data *, void *);
|
||||
|
||||
#include <hx509-private.h>
|
||||
|
||||
extern const void *krb5_sym_export[];
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
||||
const void *krb5_sym_export[] = {
|
||||
(const void *)&_krb5_AES_string_to_default_iterator,
|
||||
(const void *)&asn1_TicketFlags_table_units,
|
||||
(const void *)&krb5_cc_type_api,
|
||||
(const void *)&krb5_cc_type_file,
|
||||
(const void *)&krb5_cc_type_kcm,
|
||||
(const void *)&krb5_cc_type_memory,
|
||||
(const void *)&krb5_cc_type_kcc,
|
||||
(const void *)&krb5_fcc_ops,
|
||||
#ifdef HEIM_KRB5_ARCFOUR
|
||||
(const void *)&krb5_heim_use_broken_arcfour_string2key,
|
||||
#endif
|
||||
#if HAVE_XCC
|
||||
(const void *)&krb5_xcc_ops,
|
||||
#endif
|
||||
(const void *)&krb5_mcc_ops,
|
||||
(const void *)_krb5_build_authenticator,
|
||||
(const void *)_krb5_crc_init_table,
|
||||
(const void *)_krb5_crc_update,
|
||||
(const void *)_krb5_expand_default_cc_name,
|
||||
(const void *)_krb5_get_host_realm_int,
|
||||
(const void *)krb5_get_init_creds_opt_set_pkinit_user_cert,
|
||||
(const void *)_krb5_get_init_creds_opt_set_pkinit_user_cert,
|
||||
(const void *)_krb5_get_int,
|
||||
(const void *)_krb5_get_krbtgt,
|
||||
(const void *)_krb5_have_debug,
|
||||
(const void *)_krb5_debug_keyblock,
|
||||
(const void *)_krb5_init_creds_set_pku2u,
|
||||
#ifdef HAVE_KCM
|
||||
(const void *)_krb5_kcm_get_initial_ticket,
|
||||
(const void *)_krb5_kcm_get_status,
|
||||
(const void *)krb5_kcm_ntlm_challenge,
|
||||
(const void *)krb5_kcm_check_ntlm_challenge,
|
||||
#endif
|
||||
(const void *)_krb5_pac_sign,
|
||||
(const void *)_krb5_plugin_find,
|
||||
(const void *)_krb5_plugin_free,
|
||||
(const void *)_krb5_plugin_get_next,
|
||||
(const void *)_krb5_plugin_get_symbol,
|
||||
(const void *)_krb5_principal2principalname,
|
||||
(const void *)_krb5_principalname2krb5_principal,
|
||||
(const void *)_krb5_put_int,
|
||||
(const void *)_krb5_s4u2self_to_checksumdata,
|
||||
(const void *)com_err,
|
||||
(const void *)com_err_va,
|
||||
(const void *)com_right,
|
||||
(const void *)com_right_r,
|
||||
(const void *)error_message,
|
||||
(const void *)heim_ipc_call,
|
||||
(const void *)heim_ipc_free_context,
|
||||
(const void *)heim_ipc_free_data,
|
||||
(const void *)heim_ipc_init_context,
|
||||
(const void *)init_error_table,
|
||||
(const void *)initialize_asn1_error_table,
|
||||
(const void *)initialize_asn1_error_table_r,
|
||||
(const void *)initialize_error_table_r,
|
||||
(const void *)initialize_gk5_error_table,
|
||||
(const void *)initialize_gk5_error_table_r,
|
||||
(const void *)initialize_hdb_error_table_r,
|
||||
(const void *)initialize_heim_error_table,
|
||||
(const void *)initialize_heim_error_table_r,
|
||||
(const void *)initialize_hx_error_table,
|
||||
(const void *)initialize_hx_error_table_r,
|
||||
(const void *)initialize_k524_error_table,
|
||||
(const void *)initialize_k524_error_table_r,
|
||||
(const void *)initialize_krb_error_table,
|
||||
(const void *)initialize_krb_error_table_r,
|
||||
(const void *)initialize_krb5_error_table,
|
||||
(const void *)initialize_krb5_error_table_r,
|
||||
(const void *)initialize_krb_error_table,
|
||||
(const void *)initialize_krb_error_table_r,
|
||||
(const void *)initialize_wind_error_table,
|
||||
(const void *)initialize_wind_error_table_r,
|
||||
(const void *)krb5_abort,
|
||||
(const void *)krb5_abortx,
|
||||
(const void *)krb5_add_et_list,
|
||||
(const void *)krb5_add_extra_addresses,
|
||||
(const void *)krb5_add_ignore_addresses,
|
||||
(const void *)krb5_addlog_dest,
|
||||
(const void *)krb5_addlog_func,
|
||||
(const void *)krb5_addr2sockaddr,
|
||||
(const void *)krb5_address_compare,
|
||||
(const void *)krb5_address_order,
|
||||
(const void *)krb5_address_prefixlen_boundary,
|
||||
(const void *)krb5_address_search,
|
||||
(const void *)krb5_aname_to_localname,
|
||||
(const void *)krb5_anyaddr,
|
||||
(const void *)krb5_appdefault_boolean,
|
||||
(const void *)krb5_appdefault_string,
|
||||
(const void *)krb5_appdefault_time,
|
||||
(const void *)krb5_append_addresses,
|
||||
(const void *)krb5_auth_con_addflags,
|
||||
(const void *)krb5_auth_con_add_AuthorizationData,
|
||||
(const void *)krb5_auth_con_free,
|
||||
(const void *)krb5_auth_con_genaddrs,
|
||||
(const void *)krb5_auth_con_generatelocalsubkey,
|
||||
(const void *)krb5_auth_con_getaddrs,
|
||||
(const void *)krb5_auth_con_getauthenticator,
|
||||
(const void *)krb5_auth_con_getcksumtype,
|
||||
(const void *)krb5_auth_con_getflags,
|
||||
(const void *)krb5_auth_con_getkey,
|
||||
(const void *)krb5_auth_con_getkeytype,
|
||||
(const void *)krb5_auth_con_getlocalseqnumber,
|
||||
(const void *)krb5_auth_con_getlocalsubkey,
|
||||
(const void *)krb5_auth_con_getrcache,
|
||||
(const void *)krb5_auth_con_getremoteseqnumber,
|
||||
(const void *)krb5_auth_con_getremotesubkey,
|
||||
(const void *)_krb5_auth_con_setup_pfs,
|
||||
(const void *)krb5_auth_con_init,
|
||||
(const void *)krb5_auth_con_removeflags,
|
||||
(const void *)krb5_auth_con_setaddrs,
|
||||
(const void *)krb5_auth_con_setaddrs_from_fd,
|
||||
(const void *)krb5_auth_con_setcksumtype,
|
||||
(const void *)krb5_auth_con_setflags,
|
||||
(const void *)krb5_auth_con_setkey,
|
||||
(const void *)krb5_auth_con_setkeytype,
|
||||
(const void *)krb5_auth_con_setlocalseqnumber,
|
||||
(const void *)krb5_auth_con_setlocalsubkey,
|
||||
(const void *)krb5_auth_con_setrcache,
|
||||
(const void *)krb5_auth_con_setremoteseqnumber,
|
||||
(const void *)krb5_auth_con_setremotesubkey,
|
||||
(const void *)krb5_auth_con_setuserkey,
|
||||
(const void *)_krb5_get_ad,
|
||||
(const void *)krb5_build_ap_req,
|
||||
(const void *)krb5_build_principal,
|
||||
(const void *)krb5_build_principal_ext,
|
||||
(const void *)krb5_build_principal_va,
|
||||
(const void *)krb5_build_principal_va_ext,
|
||||
(const void *)krb5_cc_cache_end_seq_get,
|
||||
(const void *)krb5_cc_cache_get_first,
|
||||
(const void *)krb5_cc_cache_match,
|
||||
(const void *)krb5_cc_cache_next,
|
||||
(const void *)krb5_cc_clear_mcred,
|
||||
(const void *)krb5_cc_close,
|
||||
(const void *)krb5_cc_copy_cache,
|
||||
(const void *)krb5_cc_copy_match_f,
|
||||
(const void *)krb5_cc_default,
|
||||
(const void *)krb5_cc_default_name,
|
||||
(const void *)krb5_cc_destroy,
|
||||
(const void *)krb5_cc_end_seq_get,
|
||||
(const void *)krb5_cc_get_config,
|
||||
(const void *)krb5_cc_get_friendly_name,
|
||||
(const void *)krb5_cc_get_full_name,
|
||||
(const void *)krb5_cc_get_kdc_offset,
|
||||
(const void *)krb5_cc_get_lifetime,
|
||||
(const void *)krb5_cc_get_name,
|
||||
(const void *)krb5_cc_get_ops,
|
||||
(const void *)krb5_cc_get_prefix_ops,
|
||||
(const void *)krb5_cc_get_principal,
|
||||
(const void *)krb5_cc_get_type,
|
||||
(const void *)krb5_cc_get_version,
|
||||
(const void *)krb5_cc_initialize,
|
||||
(const void *)krb5_cc_move,
|
||||
(const void *)krb5_cc_new_unique,
|
||||
(const void *)krb5_cc_next_cred,
|
||||
(const void *)krb5_cc_register,
|
||||
(const void *)krb5_cc_remove_cred,
|
||||
(const void *)krb5_cc_resolve,
|
||||
(const void *)krb5_cc_retrieve_cred,
|
||||
(const void *)krb5_cc_set_config,
|
||||
(const void *)krb5_cc_set_default_name,
|
||||
(const void *)krb5_cc_set_flags,
|
||||
(const void *)krb5_cc_set_friendly_name,
|
||||
(const void *)krb5_cc_set_kdc_offset,
|
||||
(const void *)krb5_cc_start_seq_get,
|
||||
(const void *)krb5_cc_store_cred,
|
||||
(const void *)krb5_cc_support_switch,
|
||||
(const void *)krb5_cc_switch,
|
||||
(const void *)krb5_cccol_cursor_free,
|
||||
(const void *)krb5_cccol_cursor_new,
|
||||
(const void *)krb5_cccol_cursor_next,
|
||||
(const void *)krb5_cccol_last_change_time,
|
||||
(const void *)krb5_check_transited,
|
||||
(const void *)krb5_check_transited_realms,
|
||||
(const void *)krb5_checksum_disable,
|
||||
(const void *)krb5_checksum_is_collision_proof,
|
||||
(const void *)krb5_checksum_is_keyed,
|
||||
(const void *)krb5_checksumsize,
|
||||
(const void *)krb5_cksumtype_valid,
|
||||
(const void *)krb5_clear_error_message,
|
||||
(const void *)krb5_closelog,
|
||||
(const void *)krb5_compare_creds,
|
||||
(const void *)krb5_config_file_free,
|
||||
(const void *)krb5_config_free_strings,
|
||||
(const void *)krb5_config_get_bool,
|
||||
(const void *)krb5_config_get_bool_default,
|
||||
(const void *)krb5_config_get_int,
|
||||
(const void *)krb5_config_get_int_default,
|
||||
(const void *)krb5_config_get_list,
|
||||
(const void *)krb5_config_get_string,
|
||||
(const void *)krb5_config_get_string_default,
|
||||
(const void *)krb5_config_get_strings,
|
||||
(const void *)krb5_config_get_time,
|
||||
(const void *)krb5_config_get_time_default,
|
||||
(const void *)krb5_config_parse_file,
|
||||
(const void *)krb5_config_parse_file_multi,
|
||||
(const void *)krb5_copy_address,
|
||||
(const void *)krb5_copy_addresses,
|
||||
(const void *)krb5_copy_creds,
|
||||
(const void *)krb5_copy_creds_contents,
|
||||
(const void *)krb5_copy_data,
|
||||
(const void *)krb5_copy_host_realm,
|
||||
(const void *)krb5_copy_keyblock,
|
||||
(const void *)krb5_copy_keyblock_contents,
|
||||
(const void *)krb5_copy_principal,
|
||||
(const void *)krb5_copy_ticket,
|
||||
(const void *)krb5_create_checksum,
|
||||
(const void *)krb5_create_checksum_iov,
|
||||
(const void *)krb5_crypto_destroy,
|
||||
(const void *)krb5_crypto_get_checksum_type,
|
||||
(const void *)krb5_crypto_getblocksize,
|
||||
(const void *)krb5_crypto_getconfoundersize,
|
||||
(const void *)krb5_crypto_getenctype,
|
||||
(const void *)krb5_crypto_getpadsize,
|
||||
(const void *)krb5_crypto_init,
|
||||
(const void *)krb5_crypto_length,
|
||||
(const void *)krb5_crypto_length_iov,
|
||||
(const void *)krb5_crypto_prf,
|
||||
(const void *)krb5_crypto_prf_length,
|
||||
(const void *)krb5_data_alloc,
|
||||
(const void *)krb5_data_cmp,
|
||||
(const void *)krb5_data_ct_cmp,
|
||||
(const void *)krb5_data_copy,
|
||||
(const void *)krb5_data_free,
|
||||
(const void *)krb5_data_realloc,
|
||||
(const void *)krb5_data_zero,
|
||||
(const void *)krb5_decode_ap_req,
|
||||
(const void *)krb5_decrypt,
|
||||
(const void *)krb5_decrypt_EncryptedData,
|
||||
(const void *)krb5_decrypt_iov_ivec,
|
||||
(const void *)krb5_decrypt_ivec,
|
||||
(const void *)krb5_decrypt_ticket,
|
||||
(const void *)krb5_derive_key,
|
||||
(const void *)krb5_domain_x500_decode,
|
||||
(const void *)krb5_domain_x500_encode,
|
||||
(const void *)krb5_eai_to_heim_errno,
|
||||
(const void *)krb5_encrypt,
|
||||
(const void *)krb5_encrypt_EncryptedData,
|
||||
(const void *)krb5_encrypt_iov_ivec,
|
||||
(const void *)krb5_encrypt_ivec,
|
||||
(const void *)krb5_enctype_disable,
|
||||
(const void *)krb5_enctype_enable,
|
||||
(const void *)krb5_enctype_keybits,
|
||||
(const void *)krb5_enctype_keysize,
|
||||
(const void *)krb5_enctype_to_string,
|
||||
(const void *)krb5_enctype_valid,
|
||||
(const void *)krb5_err,
|
||||
(const void *)krb5_error_from_rd_error,
|
||||
(const void *)krb5_errx,
|
||||
(const void *)krb5_expand_hostname,
|
||||
(const void *)krb5_expand_hostname_realms,
|
||||
(const void *)krb5_find_padata,
|
||||
(const void *)krb5_format_time,
|
||||
(const void *)krb5_free_address,
|
||||
(const void *)krb5_free_addresses,
|
||||
(const void *)krb5_free_ap_rep_enc_part,
|
||||
(const void *)krb5_free_authenticator,
|
||||
(const void *)krb5_free_config_files,
|
||||
(const void *)krb5_free_context,
|
||||
(const void *)krb5_free_cred_contents,
|
||||
(const void *)krb5_free_creds,
|
||||
(const void *)krb5_free_data,
|
||||
(const void *)krb5_free_error,
|
||||
(const void *)krb5_free_error_contents,
|
||||
(const void *)krb5_free_error_message,
|
||||
(const void *)krb5_free_host_realm,
|
||||
(const void *)krb5_free_kdc_rep,
|
||||
(const void *)krb5_free_keyblock,
|
||||
(const void *)krb5_free_keyblock_contents,
|
||||
(const void *)krb5_free_principal,
|
||||
(const void *)krb5_free_salt,
|
||||
(const void *)krb5_free_ticket,
|
||||
(const void *)krb5_fwd_tgt_creds,
|
||||
(const void *)krb5_generate_random_block,
|
||||
(const void *)krb5_generate_random_keyblock,
|
||||
(const void *)krb5_generate_seq_number,
|
||||
(const void *)krb5_generate_subkey_extended,
|
||||
(const void *)krb5_get_all_client_addrs,
|
||||
(const void *)krb5_get_all_server_addrs,
|
||||
(const void *)krb5_get_credentials,
|
||||
(const void *)krb5_get_credentials_with_flags,
|
||||
(const void *)krb5_get_creds,
|
||||
(const void *)krb5_get_creds_opt_add_options,
|
||||
(const void *)krb5_get_creds_opt_alloc,
|
||||
(const void *)krb5_get_creds_opt_free,
|
||||
(const void *)krb5_get_creds_opt_set_enctype,
|
||||
(const void *)krb5_get_creds_opt_set_impersonate,
|
||||
(const void *)krb5_get_creds_opt_set_options,
|
||||
(const void *)krb5_get_creds_opt_set_ticket,
|
||||
(const void *)krb5_get_debug_dest,
|
||||
(const void *)krb5_get_default_config_files,
|
||||
(const void *)krb5_get_default_in_tkt_etypes,
|
||||
(const void *)krb5_get_default_principal,
|
||||
(const void *)krb5_get_default_realm,
|
||||
(const void *)krb5_get_default_realms,
|
||||
(const void *)krb5_get_dns_canonicalize_hostname,
|
||||
(const void *)krb5_get_err_text,
|
||||
(const void *)krb5_get_error_message,
|
||||
(const void *)krb5_get_error_string,
|
||||
(const void *)krb5_get_extra_addresses,
|
||||
(const void *)krb5_get_fcache_version,
|
||||
(const void *)krb5_get_forwarded_creds,
|
||||
(const void *)krb5_get_host_realm,
|
||||
(const void *)krb5_get_ignore_addresses,
|
||||
(const void *)krb5_get_init_creds_keyblock,
|
||||
(const void *)krb5_get_init_creds_keytab,
|
||||
(const void *)krb5_get_init_creds_opt_alloc,
|
||||
(const void *)krb5_get_init_creds_opt_free,
|
||||
(const void *)krb5_get_init_creds_opt_set_address_list,
|
||||
(const void *)krb5_get_init_creds_opt_set_addressless,
|
||||
(const void *)krb5_get_init_creds_opt_set_anonymous,
|
||||
(const void *)krb5_get_init_creds_opt_set_canonicalize,
|
||||
(const void *)krb5_get_init_creds_opt_set_default_flags,
|
||||
(const void *)krb5_get_init_creds_opt_set_etype_list,
|
||||
(const void *)krb5_get_init_creds_opt_set_forwardable,
|
||||
(const void *)krb5_get_init_creds_opt_set_pa_password,
|
||||
(const void *)krb5_get_init_creds_opt_set_pac_request,
|
||||
(const void *)krb5_get_init_creds_opt_set_pkinit,
|
||||
(const void *)krb5_get_init_creds_opt_set_preauth_list,
|
||||
(const void *)krb5_get_init_creds_opt_set_proxiable,
|
||||
(const void *)krb5_get_init_creds_opt_set_renew_life,
|
||||
(const void *)krb5_get_init_creds_opt_set_salt,
|
||||
(const void *)krb5_get_init_creds_opt_set_tkt_life,
|
||||
(const void *)krb5_get_init_creds_opt_set_win2k,
|
||||
(const void *)krb5_get_init_creds_password,
|
||||
(const void *)krb5_get_kdc_cred,
|
||||
(const void *)krb5_get_kdc_sec_offset,
|
||||
(const void *)krb5_get_max_time_skew,
|
||||
(const void *)krb5_get_pw_salt,
|
||||
(const void *)krb5_get_renewed_creds,
|
||||
(const void *)krb5_get_server_rcache,
|
||||
(const void *)krb5_get_use_admin_kdc,
|
||||
(const void *)krb5_get_validated_creds,
|
||||
(const void *)krb5_get_warn_dest,
|
||||
(const void *)krb5_get_wrapped_length,
|
||||
(const void *)krb5_getportbyname,
|
||||
(const void *)krb5_h_addr2addr,
|
||||
(const void *)krb5_h_addr2sockaddr,
|
||||
(const void *)krb5_h_errno_to_heim_errno,
|
||||
(const void *)krb5_hmac,
|
||||
(const void *)krb5_init_context,
|
||||
(const void *)krb5_init_context_flags,
|
||||
(const void *)krb5_init_creds_free,
|
||||
(const void *)krb5_init_creds_get,
|
||||
(const void *)krb5_init_creds_get_creds,
|
||||
(const void *)krb5_init_creds_init,
|
||||
(const void *)krb5_init_creds_set_password,
|
||||
(const void *)krb5_init_creds_set_pkinit_client_cert,
|
||||
(const void *)krb5_init_creds_set_service,
|
||||
(const void *)krb5_init_creds_set_sitename,
|
||||
(const void *)krb5_init_creds_set_source_app,
|
||||
(const void *)krb5_init_creds_step,
|
||||
(const void *)krb5_init_creds_get_as_reply_key,
|
||||
(const void *)krb5_init_ets,
|
||||
(const void *)_krb5_init_etype,
|
||||
(const void *)krb5_initlog,
|
||||
(const void *)krb5_is_config_principal,
|
||||
(const void *)krb5_is_thread_safe,
|
||||
#ifdef HAVE_KCM
|
||||
(const void *)krb5_kcm_call,
|
||||
(const void *)krb5_kcm_storage_request,
|
||||
#endif
|
||||
(const void *)krb5_kerberos_enctypes,
|
||||
(const void *)krb5_keyblock_get_enctype,
|
||||
(const void *)krb5_keyblock_init,
|
||||
(const void *)krb5_keyblock_key_proc,
|
||||
(const void *)krb5_keyblock_zero,
|
||||
(const void *)krb5_krbhst_format_string,
|
||||
(const void *)krb5_krbhst_free,
|
||||
(const void *)krb5_krbhst_get_addrinfo,
|
||||
(const void *)krb5_krbhst_init,
|
||||
(const void *)krb5_krbhst_init_flags,
|
||||
(const void *)krb5_krbhst_next,
|
||||
(const void *)krb5_krbhst_next_as_string,
|
||||
(const void *)krb5_krbhst_reset,
|
||||
(const void *)krb5_krbhst_set_delgated_uuid,
|
||||
(const void *)krb5_kt_add_entry,
|
||||
(const void *)krb5_kt_close,
|
||||
(const void *)krb5_kt_compare,
|
||||
(const void *)krb5_kt_copy_entry_contents,
|
||||
(const void *)krb5_kt_default,
|
||||
(const void *)krb5_kt_default_modify_name,
|
||||
(const void *)krb5_kt_default_name,
|
||||
(const void *)krb5_kt_destroy,
|
||||
(const void *)krb5_kt_end_seq_get,
|
||||
(const void *)krb5_kt_free_entry,
|
||||
(const void *)krb5_kt_get_entry,
|
||||
(const void *)krb5_kt_get_full_name,
|
||||
(const void *)krb5_kt_get_name,
|
||||
(const void *)krb5_kt_get_type,
|
||||
(const void *)krb5_kt_next_entry,
|
||||
(const void *)krb5_kt_read_service_key,
|
||||
(const void *)krb5_kt_register,
|
||||
(const void *)krb5_kt_remove_entry,
|
||||
(const void *)krb5_kt_resolve,
|
||||
(const void *)krb5_kt_start_seq_get,
|
||||
(const void *)krb5_kuserok,
|
||||
(const void *)krb5_log,
|
||||
(const void *)krb5_log_msg,
|
||||
(const void *)krb5_make_addrport,
|
||||
(const void *)krb5_make_principal,
|
||||
(const void *)krb5_max_sockaddr_size,
|
||||
(const void *)krb5_mk_error,
|
||||
(const void *)krb5_mk_priv,
|
||||
(const void *)krb5_mk_rep,
|
||||
(const void *)krb5_mk_req,
|
||||
(const void *)krb5_mk_req_exact,
|
||||
(const void *)krb5_mk_req_extended,
|
||||
(const void *)krb5_mk_safe,
|
||||
(const void *)krb5_net_read,
|
||||
(const void *)krb5_net_write,
|
||||
(const void *)krb5_net_write_block,
|
||||
(const void *)krb5_openlog,
|
||||
(const void *)krb5_pac_add_buffer,
|
||||
(const void *)krb5_pac_copy_credential_package,
|
||||
(const void *)krb5_pac_process_credentials_buffer,
|
||||
(const void *)krb5_pac_free,
|
||||
(const void *)krb5_pac_get_buffer,
|
||||
(const void *)krb5_pac_get_types,
|
||||
(const void *)krb5_pac_init,
|
||||
(const void *)krb5_pac_parse,
|
||||
(const void *)krb5_pac_verify,
|
||||
(const void *)krb5_padata_add,
|
||||
(const void *)krb5_parse_address,
|
||||
(const void *)krb5_parse_name,
|
||||
(const void *)krb5_parse_name_flags,
|
||||
(const void *)krb5_parse_nametype,
|
||||
(const void *)krb5_passwd_result_to_string,
|
||||
(const void *)krb5_plugin_register,
|
||||
(const void *)krb5_prepend_config_files,
|
||||
(const void *)krb5_prepend_config_files_default,
|
||||
(const void *)krb5_principal_compare,
|
||||
(const void *)krb5_principal_compare_any_realm,
|
||||
(const void *)krb5_principal_get_comp_string,
|
||||
(const void *)krb5_principal_get_num_comp,
|
||||
(const void *)krb5_principal_get_realm,
|
||||
(const void *)krb5_principal_get_type,
|
||||
(const void *)krb5_principal_is_lkdc,
|
||||
(const void *)krb5_principal_is_gss_hostbased_service,
|
||||
(const void *)krb5_principal_match,
|
||||
(const void *)krb5_principal_set_realm,
|
||||
(const void *)krb5_principal_set_type,
|
||||
(const void *)krb5_print_address,
|
||||
(const void *)krb5_prompter_posix,
|
||||
(const void *)krb5_prompter_print_only,
|
||||
(const void *)krb5_random_to_key,
|
||||
(const void *)krb5_rc_close,
|
||||
(const void *)krb5_rc_default,
|
||||
(const void *)krb5_rc_default_name,
|
||||
(const void *)krb5_rc_default_type,
|
||||
(const void *)krb5_rc_destroy,
|
||||
(const void *)krb5_rc_expunge,
|
||||
(const void *)krb5_rc_get_lifespan,
|
||||
(const void *)krb5_rc_get_name,
|
||||
(const void *)krb5_rc_get_type,
|
||||
(const void *)krb5_rc_initialize,
|
||||
(const void *)krb5_rc_recover,
|
||||
(const void *)krb5_rc_resolve,
|
||||
(const void *)krb5_rc_resolve_full,
|
||||
(const void *)krb5_rc_resolve_type,
|
||||
(const void *)krb5_rc_store,
|
||||
(const void *)krb5_rd_cred,
|
||||
(const void *)krb5_rd_cred2,
|
||||
(const void *)krb5_rd_error,
|
||||
(const void *)krb5_rd_priv,
|
||||
(const void *)krb5_rd_rep,
|
||||
(const void *)krb5_rd_req,
|
||||
(const void *)krb5_rd_req_ctx,
|
||||
(const void *)krb5_rd_req_in_ctx_alloc,
|
||||
(const void *)krb5_rd_req_in_ctx_free,
|
||||
(const void *)krb5_rd_req_in_set_keyblock,
|
||||
(const void *)krb5_rd_req_in_set_keytab,
|
||||
(const void *)krb5_rd_req_in_set_pac_check,
|
||||
(const void *)krb5_rd_req_in_set_as_reply_key,
|
||||
(const void *)krb5_rd_req_out_ctx_free,
|
||||
(const void *)krb5_rd_req_out_copy_pac,
|
||||
(const void *)krb5_rd_req_out_get_ap_req_options,
|
||||
(const void *)krb5_rd_req_out_get_flags,
|
||||
(const void *)krb5_rd_req_out_get_keyblock,
|
||||
(const void *)krb5_rd_req_out_get_ticket,
|
||||
(const void *)krb5_rd_req_out_get_server,
|
||||
(const void *)krb5_rd_req_with_keyblock,
|
||||
(const void *)krb5_rd_safe,
|
||||
(const void *)krb5_read_message,
|
||||
(const void *)krb5_read_priv_message,
|
||||
(const void *)krb5_read_safe_message,
|
||||
(const void *)krb5_realm_compare,
|
||||
(const void *)krb5_realm_is_lkdc,
|
||||
(const void *)krb5_recvauth,
|
||||
(const void *)krb5_recvauth_match_version,
|
||||
(const void *)krb5_ret_address,
|
||||
(const void *)krb5_ret_addrs,
|
||||
(const void *)krb5_ret_authdata,
|
||||
(const void *)krb5_ret_creds,
|
||||
(const void *)krb5_ret_creds_tag,
|
||||
(const void *)krb5_ret_data,
|
||||
(const void *)krb5_ret_int16,
|
||||
(const void *)krb5_ret_int32,
|
||||
(const void *)krb5_ret_int8,
|
||||
(const void *)krb5_ret_keyblock,
|
||||
(const void *)krb5_ret_principal,
|
||||
(const void *)krb5_ret_string,
|
||||
(const void *)krb5_ret_stringnl,
|
||||
(const void *)krb5_ret_stringz,
|
||||
(const void *)krb5_ret_times,
|
||||
(const void *)krb5_ret_uint16,
|
||||
(const void *)krb5_ret_uint32,
|
||||
(const void *)krb5_ret_uint8,
|
||||
(const void *)krb5_salttype_to_string,
|
||||
(const void *)krb5_sendauth,
|
||||
(const void *)krb5_sendto_context,
|
||||
(const void *)krb5_sendto_ctx_add_flags,
|
||||
(const void *)krb5_sendto_ctx_alloc,
|
||||
(const void *)krb5_sendto_ctx_free,
|
||||
(const void *)krb5_sendto_ctx_get_flags,
|
||||
(const void *)krb5_sendto_ctx_set_func,
|
||||
(const void *)krb5_sendto_ctx_set_type,
|
||||
(const void *)krb5_sendto_set_delegated_app,
|
||||
(const void *)krb5_set_config_files,
|
||||
(const void *)krb5_set_debug_dest,
|
||||
(const void *)krb5_set_default_in_tkt_etypes,
|
||||
(const void *)krb5_set_default_realm,
|
||||
(const void *)krb5_set_dns_canonicalize_hostname,
|
||||
(const void *)krb5_set_error_message,
|
||||
(const void *)krb5_set_extra_addresses,
|
||||
(const void *)krb5_set_fcache_version,
|
||||
(const void *)krb5_set_home_dir_access,
|
||||
(const void *)krb5_set_ignore_addresses,
|
||||
(const void *)krb5_set_kdc_sec_offset,
|
||||
(const void *)krb5_set_max_time_skew,
|
||||
(const void *)krb5_set_password,
|
||||
(const void *)krb5_set_password_using_ccache,
|
||||
(const void *)krb5_set_real_time,
|
||||
(const void *)krb5_set_use_admin_kdc,
|
||||
(const void *)krb5_set_warn_dest,
|
||||
(const void *)krb5_sname_to_principal,
|
||||
(const void *)krb5_sock_to_principal,
|
||||
(const void *)krb5_sockaddr2address,
|
||||
(const void *)krb5_sockaddr2port,
|
||||
(const void *)krb5_sockaddr_uninteresting,
|
||||
(const void *)krb5_storage_clear_flags,
|
||||
(const void *)krb5_storage_emem,
|
||||
(const void *)krb5_storage_free,
|
||||
(const void *)krb5_storage_from_data,
|
||||
(const void *)krb5_storage_from_fd,
|
||||
(const void *)krb5_storage_from_mem,
|
||||
(const void *)krb5_storage_from_mem_copy,
|
||||
(const void *)krb5_storage_from_readonly_mem,
|
||||
(const void *)krb5_storage_get_byteorder,
|
||||
(const void *)krb5_storage_get_eof_code,
|
||||
(const void *)krb5_storage_is_flags,
|
||||
(const void *)krb5_storage_read,
|
||||
(const void *)krb5_storage_seek,
|
||||
(const void *)krb5_storage_set_byteorder,
|
||||
(const void *)krb5_storage_set_eof_code,
|
||||
(const void *)krb5_storage_set_flags,
|
||||
(const void *)krb5_storage_to_data,
|
||||
(const void *)krb5_storage_truncate,
|
||||
(const void *)krb5_storage_write,
|
||||
(const void *)krb5_store_address,
|
||||
(const void *)krb5_store_addrs,
|
||||
(const void *)krb5_store_authdata,
|
||||
(const void *)krb5_store_creds,
|
||||
(const void *)krb5_store_creds_tag,
|
||||
(const void *)krb5_store_data,
|
||||
(const void *)krb5_store_int16,
|
||||
(const void *)krb5_store_int32,
|
||||
(const void *)krb5_store_int8,
|
||||
(const void *)krb5_store_keyblock,
|
||||
(const void *)krb5_store_principal,
|
||||
(const void *)krb5_store_string,
|
||||
(const void *)krb5_store_stringnl,
|
||||
(const void *)krb5_store_stringz,
|
||||
(const void *)krb5_store_times,
|
||||
(const void *)krb5_store_uint16,
|
||||
(const void *)krb5_store_uint32,
|
||||
(const void *)krb5_store_uint8,
|
||||
(const void *)krb5_string_to_deltat,
|
||||
(const void *)krb5_string_to_enctype,
|
||||
(const void *)krb5_string_to_key,
|
||||
(const void *)krb5_string_to_key_data,
|
||||
(const void *)krb5_string_to_key_data_salt,
|
||||
(const void *)krb5_string_to_key_data_salt_opaque,
|
||||
#ifdef HEIM_KRB5_DES3
|
||||
(const void *)krb5_string_to_key_derived,
|
||||
#endif
|
||||
(const void *)krb5_string_to_key_salt,
|
||||
(const void *)krb5_string_to_key_salt_opaque,
|
||||
(const void *)krb5_string_to_salttype,
|
||||
(const void *)krb5_ticket_get_authorization_data_type,
|
||||
(const void *)krb5_ticket_get_client,
|
||||
(const void *)krb5_ticket_get_endtime,
|
||||
(const void *)krb5_ticket_get_server,
|
||||
(const void *)krb5_timeofday,
|
||||
(const void *)krb5_unparse_name,
|
||||
(const void *)krb5_unparse_name_fixed,
|
||||
(const void *)krb5_unparse_name_fixed_flags,
|
||||
(const void *)krb5_unparse_name_fixed_short,
|
||||
(const void *)krb5_unparse_name_flags,
|
||||
(const void *)krb5_unparse_name_short,
|
||||
(const void *)krb5_us_timeofday,
|
||||
(const void *)krb5_vabort,
|
||||
(const void *)krb5_vabortx,
|
||||
(const void *)krb5_verify_ap_req,
|
||||
(const void *)krb5_verify_ap_req2,
|
||||
(const void *)krb5_verify_authenticator_checksum,
|
||||
(const void *)krb5_verify_checksum,
|
||||
(const void *)krb5_verify_checksum_iov,
|
||||
(const void *)krb5_verify_init_creds,
|
||||
(const void *)krb5_verify_init_creds_opt_init,
|
||||
(const void *)krb5_verify_init_creds_opt_set_ap_req_nofail,
|
||||
(const void *)krb5_verify_opt_alloc,
|
||||
(const void *)krb5_verify_opt_free,
|
||||
(const void *)krb5_verify_opt_init,
|
||||
(const void *)krb5_verify_opt_set_ccache,
|
||||
(const void *)krb5_verify_opt_set_flags,
|
||||
(const void *)krb5_verify_opt_set_keytab,
|
||||
(const void *)krb5_verify_opt_set_secure,
|
||||
(const void *)krb5_verify_opt_set_service,
|
||||
(const void *)krb5_verify_opt_set_server,
|
||||
(const void *)krb5_verify_user,
|
||||
(const void *)krb5_verify_user_lrealm,
|
||||
(const void *)krb5_verify_user_opt,
|
||||
(const void *)krb5_verr,
|
||||
(const void *)krb5_verrx,
|
||||
(const void *)krb5_vlog,
|
||||
(const void *)krb5_vlog_msg,
|
||||
(const void *)krb5_vset_error_message,
|
||||
(const void *)krb5_vwarn,
|
||||
(const void *)krb5_vwarnx,
|
||||
(const void *)krb5_warn,
|
||||
(const void *)krb5_warnx,
|
||||
(const void *)krb5_write_message,
|
||||
(const void *)krb5_write_priv_message,
|
||||
(const void *)krb5_write_safe_message,
|
||||
(const void *)krb5_xfree,
|
||||
(const void *)reset_com_err_hook,
|
||||
(const void *)set_com_err_hook,
|
||||
(const void *)wind_ucs2utf8,
|
||||
(const void *)wind_ucs2utf8_length,
|
||||
(const void *)wind_ucs4utf8,
|
||||
(const void *)wind_ucs4utf8_copy,
|
||||
(const void *)wind_utf8ucs2,
|
||||
(const void *)wind_utf8ucs2_length,
|
||||
(const void *)wind_utf8ucs4,
|
||||
(const void *)wind_utf8ucs4_copy,
|
||||
(const void *)krb5_init_creds_set_kdc_hostname,
|
||||
(const void *)krb5_init_creds_store_config,
|
||||
(const void *)krb5_principal_is_pku2u,
|
||||
(const void *)krb5_principal_is_null,
|
||||
(const void *)krb5_get_init_creds_opt_set_process_last_req,
|
||||
(const void *)krb5_get_all_any_addrs,
|
||||
(const void *)krb5_init_creds_set_keytab,
|
||||
(const void *)krb5_init_creds_warn_user,
|
||||
(const void *)krb5_reload_config,
|
||||
(const void *)krb5_cc_hold,
|
||||
(const void *)krb5_cc_unhold,
|
||||
(const void *)krb5_tkt_creds_step,
|
||||
(const void *)krb5_tkt_creds_free,
|
||||
(const void *)krb5_tkt_creds_get_creds,
|
||||
(const void *)krb5_tkt_creds_init,
|
||||
(const void *)krb5_cc_resolve_by_uuid,
|
||||
(const void *)krb5_cc_get_uuid,
|
||||
(const void *)krb5_principal_is_krbtgt,
|
||||
(const void *)krb5_principal_is_root_krbtgt,
|
||||
(const void *)krb5_homedir_access,
|
||||
(const void *)krb5_verify_opt_set_prompter,
|
||||
(const void *)krb5_ret_uuid,
|
||||
(const void *)krb5_store_uuid,
|
||||
(const void *)krb5_plugin_run_f,
|
||||
(const void *)krb5_load_plugins,
|
||||
(const void *)krb5_kt_have_content,
|
||||
(const void *)krb5_enomem,
|
||||
(const void *)krb5_init_creds_store,
|
||||
(const void *)krb5_process_last_request,
|
||||
(const void *)krb5_init_creds_set_fast_ccache,
|
||||
(const void *)krb5_crypto_fx_cf2,
|
||||
(const void *)_krb5_fast_armor_key,
|
||||
(const void *)krb5_uuid_to_string,
|
||||
(const void *)krb5_string_to_uuid,
|
||||
(const void *)krb5_time_abs,
|
||||
(const void *)_krb5_init_creds_get_cred_endtime,
|
||||
(const void *)krb5_cc_set_acl,
|
||||
(const void *)_krb5_init_creds_get_cred_client,
|
||||
(const void *)_krb5_state_srv_sort,
|
||||
(const void *)_krb5_fast_cf2,
|
||||
(const void *)_krb5_validate_pa_enc_challange,
|
||||
(const void *)_krb5_make_pa_enc_challange,
|
||||
(const void *)HeimCredCopyAttribute,
|
||||
(const void *)HeimCredCopyAttributes,
|
||||
(const void *)HeimCredCopyFromUUID,
|
||||
(const void *)HeimCredCopyQuery,
|
||||
(const void *)HeimCredCreate,
|
||||
(const void *)HeimCredDelete,
|
||||
(const void *)HeimCredDeleteByUUID,
|
||||
(const void *)HeimCredDeleteQuery,
|
||||
(const void *)HeimCredGetUUID,
|
||||
(const void *)HeimCredGetImpersonateBundle,
|
||||
(const void *)HeimCredMove,
|
||||
(const void *)HeimCredReleaseTransient,
|
||||
(const void *)HeimCredRetainTransient,
|
||||
(const void *)HeimCredSetAttribute,
|
||||
(const void *)HeimCredSetAttributes,
|
||||
(const void *)HeimCredSetImpersonateBundle,
|
||||
(const void *)HeimCredCopyStatus,
|
||||
(const void *)&kHEIMTypeKerberos,
|
||||
(const void *)&kHEIMAttrType,
|
||||
(const void *)&kHEIMTypeConfiguration,
|
||||
(const void *)&kHEIMTypeGeneric,
|
||||
(const void *)&kHEIMTypeNTLM,
|
||||
(const void *)&kHEIMTypeSchema,
|
||||
(const void *)_krb5_srp_create,
|
||||
(const void *)_krb5_srp_create_pa,
|
||||
(const void *)_krb5_srp_keysize,
|
||||
(const void *)_krb5_srp_pkisize,
|
||||
(const void *)_krb5_srp_reply_key,
|
||||
(const void *)_krb5_srp_validate_group,
|
||||
(const void *)krb5_enctype_warning,
|
||||
NULL
|
||||
};
|
||||
|
||||
#pragma clang diagnostic pop
|
||||
|
96
gen/sym_pkinit.c
Executable file
96
gen/sym_pkinit.c
Executable file
@ -0,0 +1,96 @@
|
||||
struct krb5_dh_moduli;
|
||||
struct _krb5_krb_auth_data;
|
||||
struct AlgorithmIdentifier;
|
||||
struct _krb5_key_data;
|
||||
struct _krb5_checksum_type;
|
||||
struct _krb5_key_type;
|
||||
struct _krb5_encryption_type;
|
||||
struct _krb5_srv_query_ctx;
|
||||
struct krb5_fast_state;
|
||||
struct _krb5_srp_group;
|
||||
struct _krb5_srp;
|
||||
|
||||
#define KRB5_DEPRECATED
|
||||
#define KRB5_DEPRECATED_FUNCTION(x)
|
||||
#define GSSAPI_DEPRECATED
|
||||
#define HC_DEPRECATED
|
||||
#define HC_DEPRECATED_CRYPTO
|
||||
#define GSSAPI_DEPRECATED_FUNCTION(x)
|
||||
|
||||
#include <config.h>
|
||||
#include <krb5.h>
|
||||
#include <krb5_asn1.h>
|
||||
#include "crypto-headers.h"
|
||||
#include <gssapi_rewrite.h>
|
||||
#include <GSS.h>
|
||||
#include <GSSPrivate.h>
|
||||
#include <gssapi.h>
|
||||
#include <gssapi_krb5.h>
|
||||
#include <gssapi_scram.h>
|
||||
#include <gssapi_spnego.h>
|
||||
#include <gssapi_ntlm.h>
|
||||
#include <gssapi_netlogon.h>
|
||||
#include <gssapi_apple.h>
|
||||
#include <gssapi_spi.h>
|
||||
#include <GSSItem.h>
|
||||
#include <heimbase.h>
|
||||
#include <heimbasepriv.h>
|
||||
#include <hx509.h>
|
||||
#include <krb5-private.h>
|
||||
#include <roken.h>
|
||||
#include <rtbl.h>
|
||||
#include <parse_bytes.h>
|
||||
#include <krb5_err.h>
|
||||
#include <heim_err.h>
|
||||
#include <krb_err.h>
|
||||
#include <hdb_err.h>
|
||||
#include <hx509_err.h>
|
||||
#include <heim-ipc.h>
|
||||
#include <wind.h>
|
||||
#include <parse_units.h>
|
||||
#include <parse_time.h>
|
||||
#include <base64.h>
|
||||
#include <hex.h>
|
||||
#include <com_err.h>
|
||||
#include <der.h>
|
||||
#include <rfc2459_asn1.h>
|
||||
#include <cms_asn1.h>
|
||||
#include <spnego_asn1.h>
|
||||
#include <gkrb5_err.h>
|
||||
#include <heimcred.h>
|
||||
|
||||
krb5_error_code _gsskrb5_init (krb5_context *);
|
||||
|
||||
extern int _krb5_AES_string_to_default_iterator;
|
||||
|
||||
struct hx509_collector;
|
||||
struct hx_expr;
|
||||
struct hx509_generate_private_context;
|
||||
struct hx509_keyset_ops;
|
||||
typedef struct hx509_path hx509_path;
|
||||
typedef void (*_hx509_cert_release_func)(struct hx509_cert_data *, void *);
|
||||
|
||||
#include <hx509-private.h>
|
||||
|
||||
extern const void *pkinit_sym_export[];
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
||||
const void *pkinit_sym_export[] = {
|
||||
#ifdef PKINIT
|
||||
(const void *)_krb5_parse_moduli,
|
||||
(const void *)_krb5_pk_kdf,
|
||||
(const void *)_krb5_pk_load_id,
|
||||
(const void *)_krb5_pk_mk_ContentInfo,
|
||||
(const void *)_krb5_pk_octetstring2key,
|
||||
(const void *)_krb5_dh_group_ok,
|
||||
(const void *)krb5_pk_enterprise_cert,
|
||||
(const void *)_krb5_pk_enterprise_cert,
|
||||
(const void *)_krb5_pk_match_cert,
|
||||
(const void *)_krb5_pk_find_cert,
|
||||
#endif
|
||||
NULL
|
||||
};
|
||||
|
||||
#pragma clang diagnostic pop
|
||||
|
131
gen/sym_roken.c
Executable file
131
gen/sym_roken.c
Executable file
@ -0,0 +1,131 @@
|
||||
struct krb5_dh_moduli;
|
||||
struct _krb5_krb_auth_data;
|
||||
struct AlgorithmIdentifier;
|
||||
struct _krb5_key_data;
|
||||
struct _krb5_checksum_type;
|
||||
struct _krb5_key_type;
|
||||
struct _krb5_encryption_type;
|
||||
struct _krb5_srv_query_ctx;
|
||||
struct krb5_fast_state;
|
||||
struct _krb5_srp_group;
|
||||
struct _krb5_srp;
|
||||
|
||||
#define KRB5_DEPRECATED
|
||||
#define KRB5_DEPRECATED_FUNCTION(x)
|
||||
#define GSSAPI_DEPRECATED
|
||||
#define HC_DEPRECATED
|
||||
#define HC_DEPRECATED_CRYPTO
|
||||
#define GSSAPI_DEPRECATED_FUNCTION(x)
|
||||
|
||||
#include <config.h>
|
||||
#include <krb5.h>
|
||||
#include <krb5_asn1.h>
|
||||
#include "crypto-headers.h"
|
||||
#include <gssapi_rewrite.h>
|
||||
#include <GSS.h>
|
||||
#include <GSSPrivate.h>
|
||||
#include <gssapi.h>
|
||||
#include <gssapi_krb5.h>
|
||||
#include <gssapi_scram.h>
|
||||
#include <gssapi_spnego.h>
|
||||
#include <gssapi_ntlm.h>
|
||||
#include <gssapi_netlogon.h>
|
||||
#include <gssapi_apple.h>
|
||||
#include <gssapi_spi.h>
|
||||
#include <GSSItem.h>
|
||||
#include <heimbase.h>
|
||||
#include <heimbasepriv.h>
|
||||
#include <hx509.h>
|
||||
#include <krb5-private.h>
|
||||
#include <roken.h>
|
||||
#include <rtbl.h>
|
||||
#include <parse_bytes.h>
|
||||
#include <krb5_err.h>
|
||||
#include <heim_err.h>
|
||||
#include <krb_err.h>
|
||||
#include <hdb_err.h>
|
||||
#include <hx509_err.h>
|
||||
#include <heim-ipc.h>
|
||||
#include <wind.h>
|
||||
#include <parse_units.h>
|
||||
#include <parse_time.h>
|
||||
#include <base64.h>
|
||||
#include <hex.h>
|
||||
#include <com_err.h>
|
||||
#include <der.h>
|
||||
#include <rfc2459_asn1.h>
|
||||
#include <cms_asn1.h>
|
||||
#include <spnego_asn1.h>
|
||||
#include <gkrb5_err.h>
|
||||
#include <heimcred.h>
|
||||
|
||||
krb5_error_code _gsskrb5_init (krb5_context *);
|
||||
|
||||
extern int _krb5_AES_string_to_default_iterator;
|
||||
|
||||
struct hx509_collector;
|
||||
struct hx_expr;
|
||||
struct hx509_generate_private_context;
|
||||
struct hx509_keyset_ops;
|
||||
typedef struct hx509_path hx509_path;
|
||||
typedef void (*_hx509_cert_release_func)(struct hx509_cert_data *, void *);
|
||||
|
||||
#include <hx509-private.h>
|
||||
|
||||
extern const void *roken_sym_export[];
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
||||
const void *roken_sym_export[] = {
|
||||
(const void *)base64_decode,
|
||||
(const void *)base64_encode,
|
||||
(const void *)ct_memcmp,
|
||||
(const void *)issuid,
|
||||
(const void *)parse_bytes,
|
||||
(const void *)parse_flags,
|
||||
(const void *)parse_time,
|
||||
(const void *)parse_units,
|
||||
(const void *)print_flags_table,
|
||||
(const void *)print_time_table,
|
||||
(const void *)rk_cfstring2cstring,
|
||||
(const void *)rk_cloexec_file,
|
||||
(const void *)rk_dumpdata,
|
||||
(const void *)rk_estrdup,
|
||||
(const void *)rk_hex_decode,
|
||||
(const void *)rk_hex_encode,
|
||||
(const void *)rk_socket_set_nopipe,
|
||||
(const void *)rk_socket_set_ipv6only,
|
||||
(const void *)rk_socket_set_reuseaddr,
|
||||
(const void *)rk_strlwr,
|
||||
(const void *)rk_strpoolcollect,
|
||||
(const void *)rk_strpoolprintf,
|
||||
(const void *)rk_strsep_copy,
|
||||
(const void *)rk_strupr,
|
||||
(const void *)rk_socket_sockaddr_size,
|
||||
(const void *)rk_undumpdata,
|
||||
(const void *)rtbl_add_column,
|
||||
(const void *)rtbl_add_column_by_id,
|
||||
(const void *)rtbl_add_column_entry,
|
||||
(const void *)rtbl_add_column_entry_by_id,
|
||||
(const void *)rtbl_add_column_entryv,
|
||||
(const void *)rtbl_add_column_entryv_by_id,
|
||||
(const void *)rtbl_create,
|
||||
(const void *)rtbl_destroy,
|
||||
(const void *)rtbl_format,
|
||||
(const void *)rtbl_format_str,
|
||||
(const void *)rtbl_get_flags,
|
||||
(const void *)rtbl_new_row,
|
||||
(const void *)rtbl_set_column_affix_by_id,
|
||||
(const void *)rtbl_set_column_prefix,
|
||||
(const void *)rtbl_set_flags,
|
||||
(const void *)rtbl_set_prefix,
|
||||
(const void *)rtbl_set_separator,
|
||||
(const void *)unparse_bytes,
|
||||
(const void *)unparse_bytes_short,
|
||||
(const void *)unparse_flags,
|
||||
(const void *)unparse_time,
|
||||
NULL
|
||||
};
|
||||
|
||||
#pragma clang diagnostic pop
|
||||
|
1
lib/asn1/Heimdal
Symbolic link
1
lib/asn1/Heimdal
Symbolic link
@ -0,0 +1 @@
|
||||
.
|
@ -35,6 +35,8 @@
|
||||
|
||||
#include <pkinit_asn1.h>
|
||||
|
||||
#include <CommonCrypto/CommonDigestSPI.h>
|
||||
|
||||
krb5_error_code
|
||||
_krb5_pk_octetstring2key(krb5_context context,
|
||||
krb5_enctype type,
|
||||
|
@ -294,7 +294,7 @@ host_get_dns_service_id(krb5_context context,
|
||||
DNSServiceFlags *flags)
|
||||
{
|
||||
int dns_service_id = 0;
|
||||
#if !TARGET_IPHONE_SIMULATOR
|
||||
#if 0
|
||||
nw_path_evaluator_t evaluator = NULL;
|
||||
nw_parameters_t parameters = NULL;
|
||||
nw_interface_t iface = NULL;
|
||||
|
@ -42,7 +42,10 @@
|
||||
|
||||
#include <pkinit_asn1.h>
|
||||
|
||||
#warning this file has been edited so that it doesn't depend on official corecrypto headers\
|
||||
and it doesn't function properly because of it
|
||||
|
||||
#if 0
|
||||
struct _krb5_pfs_data {
|
||||
ccec25519secretkey x25519priv;
|
||||
ccec25519pubkey x25519pub;
|
||||
@ -55,6 +58,7 @@ struct _krb5_pfs_data {
|
||||
krb5_principal client;
|
||||
KRB5_PFS_GROUP group;
|
||||
};
|
||||
#endif
|
||||
|
||||
#define PFS_X25519 1
|
||||
#define PFS_P256 2
|
||||
@ -125,6 +129,7 @@ _krb5_auth_con_setup_pfs(krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
krb5_enctype enctype)
|
||||
{
|
||||
#if 0
|
||||
ccec_const_cp_t cp = ccec_cp_256();
|
||||
struct ccrng_state *rng = ccDRBGGetRngState();
|
||||
struct _krb5_pfs_data *pfs = NULL;
|
||||
@ -171,7 +176,7 @@ _krb5_auth_con_setup_pfs(krb5_context context,
|
||||
}
|
||||
|
||||
auth_context->pfs = pfs;
|
||||
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -182,6 +187,7 @@ _krb5_auth_con_setup_pfs(krb5_context context,
|
||||
void
|
||||
_krb5_auth_con_free_pfs(krb5_context context, krb5_auth_context auth_context)
|
||||
{
|
||||
#if 0
|
||||
if (auth_context->pfs) {
|
||||
free(auth_context->pfs->p256._full);
|
||||
krb5_free_keyblock_contents(context, &auth_context->pfs->keyblock);
|
||||
@ -191,6 +197,7 @@ _krb5_auth_con_free_pfs(krb5_context context, krb5_auth_context auth_context)
|
||||
free(auth_context->pfs);
|
||||
auth_context->pfs = NULL;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
@ -203,6 +210,7 @@ pfs_make_share_secret(krb5_context context,
|
||||
krb5_enctype enctype,
|
||||
KRB5_PFS_SELECTION *peer)
|
||||
{
|
||||
#if 0
|
||||
struct _krb5_pfs_data *pfs = auth_context->pfs;
|
||||
krb5_data shared_secret;
|
||||
krb5_error_code ret;
|
||||
@ -283,6 +291,8 @@ pfs_make_share_secret(krb5_context context,
|
||||
krb5_data_free(&shared_secret);
|
||||
|
||||
return ret;
|
||||
#endif
|
||||
return HEIM_PFS_GROUP_INVALID;
|
||||
}
|
||||
|
||||
/*
|
||||
@ -295,6 +305,7 @@ _krb5_pfs_update_key(krb5_context context,
|
||||
const char *direction,
|
||||
krb5_keyblock *subkey)
|
||||
{
|
||||
#if 0
|
||||
struct _krb5_pfs_data *pfs = auth_context->pfs;
|
||||
krb5_keyblock newkey;
|
||||
krb5_error_code ret;
|
||||
@ -327,7 +338,7 @@ _krb5_pfs_update_key(krb5_context context,
|
||||
*subkey = newkey;
|
||||
|
||||
_krb5_debug_keyblock(context, 20, direction, subkey);
|
||||
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -335,8 +346,11 @@ static krb5_error_code
|
||||
fill_x25519_proposal(KRB5_PFS_SELECTION *sel,
|
||||
ccec25519pubkey pubkey)
|
||||
{
|
||||
#if 0
|
||||
sel->group = KRB5_PFS_X25519;
|
||||
return krb5_data_copy(&sel->public_key, pubkey, sizeof(ccec25519pubkey));
|
||||
#endif
|
||||
return HEIM_PFS_GROUP_INVALID;
|
||||
}
|
||||
|
||||
static krb5_error_code
|
||||
@ -366,14 +380,14 @@ fill_nist_proposal(krb5_context context,
|
||||
krb5_error_code ret;
|
||||
|
||||
sel->group = group;
|
||||
sel->public_key.length = ccec_export_pub_size(fullkey);
|
||||
//sel->public_key.length = ccec_export_pub_size(fullkey);
|
||||
sel->public_key.data = malloc(sel->public_key.length);
|
||||
if (sel->public_key.data == NULL) {
|
||||
ret = krb5_enomem(context);
|
||||
goto out;
|
||||
}
|
||||
|
||||
ccec_export_pub(fullkey, sel->public_key.data);
|
||||
//ccec_export_pub(fullkey, sel->public_key.data);
|
||||
ret = 0;
|
||||
|
||||
out:
|
||||
@ -433,6 +447,7 @@ _krb5_pfs_ap_req(krb5_context context,
|
||||
krb5_const_principal client,
|
||||
AuthorizationData *output)
|
||||
{
|
||||
#if 0
|
||||
struct _krb5_pfs_data *pfs = auth_context->pfs;
|
||||
AuthorizationDataElement ade;
|
||||
krb5_crypto crypto = NULL;
|
||||
@ -515,6 +530,8 @@ _krb5_pfs_ap_req(krb5_context context,
|
||||
free(data.data);
|
||||
|
||||
return ret;
|
||||
#endif
|
||||
return HEIM_PFS_GROUP_INVALID;
|
||||
}
|
||||
|
||||
/*
|
||||
@ -575,6 +592,7 @@ krb5_error_code
|
||||
_krb5_pfs_rd_req(krb5_context context,
|
||||
krb5_auth_context auth_context)
|
||||
{
|
||||
#if 0
|
||||
KRB5_PFS_SELECTION *selected = NULL;
|
||||
AuthorizationData *ad = NULL;
|
||||
KRB5_PFS_PROPOSE pp;
|
||||
@ -650,6 +668,8 @@ _krb5_pfs_rd_req(krb5_context context,
|
||||
free_KRB5_PFS_PROPOSE(&pp);
|
||||
_krb5_auth_con_free_pfs(context, auth_context);
|
||||
return ret;
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
@ -661,6 +681,7 @@ _krb5_pfs_mk_rep(krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
AP_REP *rep)
|
||||
{
|
||||
#if 0
|
||||
struct _krb5_pfs_data *pfs = auth_context->pfs;
|
||||
krb5_error_code ret;
|
||||
krb5_crypto crypto = NULL;
|
||||
@ -750,6 +771,8 @@ _krb5_pfs_mk_rep(krb5_context context,
|
||||
}
|
||||
|
||||
return ret;
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
@ -836,7 +859,7 @@ _krb5_pfs_rd_rep(krb5_context context, krb5_auth_context auth_context, AP_REP *a
|
||||
goto out;
|
||||
}
|
||||
|
||||
heim_assert(auth_context->pfs->group != KRB5_PFS_INVALID, "no pfs group selected");
|
||||
//heim_assert(auth_context->pfs->group != KRB5_PFS_INVALID, "no pfs group selected");
|
||||
auth_context->flags |= KRB5_AUTH_CONTEXT_USED_PFS;
|
||||
out:
|
||||
if (ret) {
|
||||
|
@ -942,7 +942,7 @@ prepare_app_vpn(krb5_context context,
|
||||
krb5_krbhst_info *hi,
|
||||
int fd)
|
||||
{
|
||||
#if !TARGET_OS_SIMULATOR
|
||||
#if 0
|
||||
const char *hostname = hi->hostname;
|
||||
nw_path_evaluator_t evaluator = NULL;
|
||||
nw_parameters_t parameters = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user