1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

heimdal_build: autogenerate the heimdal private/proto headers

Now it's possible to just use a plain heimdal tree in source/heimdal/
without any pregenerated files.

metze
This commit is contained in:
Stefan Metzmacher 2008-08-26 11:20:54 +02:00
parent f4cfba26ae
commit da333ca711
15 changed files with 464 additions and 8824 deletions

12
.gitignore vendored
View File

@ -47,6 +47,18 @@ source/heimdal/lib/krb5/k524_err.?
source/heimdal/lib/krb5/krb5_err.?
source/heimdal/lib/roken/vis.h
source/heimdal/lib/wind/*_table.?
source/heimdal/kdc/kdc-private.h
source/heimdal/kdc/kdc-protos.h
source/heimdal/lib/asn1/der-protos.h
source/heimdal/lib/gssapi/krb5/gsskrb5-private.h
source/heimdal/lib/gssapi/spnego/spnego-private.h
source/heimdal/lib/hdb/hdb-private.h
source/heimdal/lib/hdb/hdb-protos.h
source/heimdal/lib/hx509/hx509-private.h
source/heimdal/lib/hx509/hx509-protos.h
source/heimdal/lib/krb5/krb5-private.h
source/heimdal/lib/krb5/krb5-protos.h
source/heimdal/lib/ntlm/heimntlm-protos.h
source/include/build.h
config.h
config.h.in

View File

@ -0,0 +1,351 @@
# Make prototypes from .c files
# $Id: make-proto.pl 23023 2008-04-17 10:01:46Z lha $
##use Getopt::Std;
require 'getopts.pl';
my $comment = 0;
my $if_0 = 0;
my $brace = 0;
my $line = "";
my $debug = 0;
my $oproto = 1;
my $private_func_re = "^_";
do Getopts('x:m:o:p:dqE:R:P:') || die "foo";
if($opt_d) {
$debug = 1;
}
if($opt_q) {
$oproto = 0;
}
if($opt_R) {
$private_func_re = $opt_R;
}
%flags = (
'multiline-proto' => 1,
'header' => 1,
'function-blocking' => 0,
'gnuc-attribute' => 1,
'cxx' => 1
);
if($opt_m) {
foreach $i (split(/,/, $opt_m)) {
if($i eq "roken") {
$flags{"multiline-proto"} = 0;
$flags{"header"} = 0;
$flags{"function-blocking"} = 0;
$flags{"gnuc-attribute"} = 0;
$flags{"cxx"} = 0;
} else {
if(substr($i, 0, 3) eq "no-") {
$flags{substr($i, 3)} = 0;
} else {
$flags{$i} = 1;
}
}
}
}
if($opt_x) {
open(EXP, $opt_x);
while(<EXP>) {
chomp;
s/\#.*//g;
s/\s+/ /g;
if(/^([a-zA-Z0-9_]+)\s?(.*)$/) {
$exported{$1} = $2;
} else {
print $_, "\n";
}
}
close EXP;
}
while(<>) {
print $brace, " ", $_ if($debug);
# Handle C comments
s@/\*.*\*/@@;
s@//.*/@@;
if ( s@/\*.*@@) { $comment = 1;
} elsif ($comment && s@.*\*/@@) { $comment = 0;
} elsif ($comment) { next; }
if(/^\#if 0/) {
$if_0 = 1;
}
if($if_0 && /^\#endif/) {
$if_0 = 0;
}
if($if_0) { next }
if(/^\s*\#/) {
next;
}
if(/^\s*$/) {
$line = "";
next;
}
if(/\{/){
if (!/\}/) {
$brace++;
}
$_ = $line;
while(s/\*\//\ca/){
s/\/\*(.|\n)*\ca//;
}
s/^\s*//;
s/\s*$//;
s/\s+/ /g;
if($_ =~ /\)$/){
if(!/^static/ && !/^PRIVATE/){
if(/(.*)(__attribute__\s?\(.*\))/) {
$attr = $2;
$_ = $1;
} else {
$attr = "";
}
# remove outer ()
s/\s*\(/</;
s/\)\s?$/>/;
# remove , within ()
while(s/\(([^()]*),(.*)\)/($1\$$2)/g){}
s/\<\s*void\s*\>/<>/;
# remove parameter names
if($opt_P eq "remove") {
s/(\s*)([a-zA-Z0-9_]+)([,>])/$3/g;
s/\s+\*/*/g;
s/\(\*(\s*)([a-zA-Z0-9_]+)\)/(*)/g;
} elsif($opt_P eq "comment") {
s/([a-zA-Z0-9_]+)([,>])/\/\*$1\*\/$2/g;
s/\(\*([a-zA-Z0-9_]+)\)/(*\/\*$1\*\/)/g;
}
s/\<\>/<void>/;
# add newlines before parameters
if($flags{"multiline-proto"}) {
s/,\s*/,\n\t/g;
} else {
s/,\s*/, /g;
}
# fix removed ,
s/\$/,/g;
# match function name
/([a-zA-Z0-9_]+)\s*\</;
$f = $1;
if($oproto) {
$LP = "__P((";
$RP = "))";
} else {
$LP = "(";
$RP = ")";
}
# only add newline if more than one parameter
if($flags{"multiline-proto"} && /,/){
s/\</ $LP\n\t/;
}else{
s/\</ $LP/;
}
s/\>/$RP/;
# insert newline before function name
if($flags{"multiline-proto"}) {
s/(.*)\s([a-zA-Z0-9_]+ \Q$LP\E)/$1\n$2/;
}
if($attr ne "") {
$_ .= "\n $attr";
}
$_ = $_ . ";";
$funcs{$f} = $_;
}
}
$line = "";
}
if(/\}/){
$brace--;
}
if(/^\}/){
$brace = 0;
}
if($brace == 0) {
$line = $line . " " . $_;
}
}
sub foo {
local ($arg) = @_;
$_ = $arg;
s/.*\/([^\/]*)/$1/;
s/[^a-zA-Z0-9]/_/g;
"__" . $_ . "__";
}
if($opt_o) {
open(OUT, ">$opt_o");
$block = &foo($opt_o);
} else {
$block = "__public_h__";
}
if($opt_p) {
open(PRIV, ">$opt_p");
$private = &foo($opt_p);
} else {
$private = "__private_h__";
}
$public_h = "";
$private_h = "";
$public_h_header .= "/* This is a generated file */
#ifndef $block
#define $block
";
if ($oproto) {
$public_h_header .= "#ifdef __STDC__
#include <stdarg.h>
#ifndef __P
#define __P(x) x
#endif
#else
#ifndef __P
#define __P(x) ()
#endif
#endif
";
} else {
$public_h_header .= "#include <stdarg.h>
";
}
$public_h_trailer = "";
$private_h_header = "/* This is a generated file */
#ifndef $private
#define $private
";
if($oproto) {
$private_h_header .= "#ifdef __STDC__
#include <stdarg.h>
#ifndef __P
#define __P(x) x
#endif
#else
#ifndef __P
#define __P(x) ()
#endif
#endif
";
} else {
$private_h_header .= "#include <stdarg.h>
";
}
$private_h_trailer = "";
foreach(sort keys %funcs){
if(/^(main)$/) { next }
if(!defined($exported{$_}) && /$private_func_re/) {
$private_h .= $funcs{$_} . "\n\n";
if($funcs{$_} =~ /__attribute__/) {
$private_attribute_seen = 1;
}
} else {
if($flags{"function-blocking"}) {
$fupper = uc $_;
if($exported{$_} =~ /proto/) {
$public_h .= "#if !defined(HAVE_$fupper) || defined(NEED_${fupper}_PROTO)\n";
} else {
$public_h .= "#ifndef HAVE_$fupper\n";
}
}
$public_h .= $funcs{$_} . "\n";
if($funcs{$_} =~ /__attribute__/) {
$public_attribute_seen = 1;
}
if($flags{"function-blocking"}) {
$public_h .= "#endif\n";
}
$public_h .= "\n";
}
}
if($flags{"gnuc-attribute"}) {
if ($public_attribute_seen) {
$public_h_header .= "#if !defined(__GNUC__) && !defined(__attribute__)
#define __attribute__(x)
#endif
";
}
if ($private_attribute_seen) {
$private_h_header .= "#if !defined(__GNUC__) && !defined(__attribute__)
#define __attribute__(x)
#endif
";
}
}
if($flags{"cxx"}) {
$public_h_header .= "#ifdef __cplusplus
extern \"C\" {
#endif
";
$public_h_trailer .= "#ifdef __cplusplus
}
#endif
";
}
if ($opt_E) {
$public_h_header .= "#ifndef $opt_E
#if defined(_WIN32)
#define ${opt_E}_FUNCTION _stdcall __declspec(dllimport)
#define ${opt_E}_VARIABLE __declspec(dllimport)
#else
#define ${opt_E}_FUNCTION
#define ${opt_E}_VARIABLE
#endif
#endif
";
$private_h_header .= "#ifndef $opt_E
#if defined(_WIN32)
#define ${opt_E}_FUNCTION _stdcall __declspec(dllimport)
#define ${opt_E}_VARIABLE __declspec(dllimport)
#else
#define ${opt_E}_FUNCTION
#define ${opt_E}_VARIABLE
#endif
#endif
";
}
if ($public_h ne "" && $flags{"header"}) {
$public_h = $public_h_header . $public_h .
$public_h_trailer . "#endif /* $block */\n";
}
if ($private_h ne "" && $flags{"header"}) {
$private_h = $private_h_header . $private_h .
$private_h_trailer . "#endif /* $private */\n";
}
if($opt_o) {
print OUT $public_h;
}
if($opt_p) {
print PRIV $private_h;
}
close OUT;
close PRIV;

View File

@ -1,287 +0,0 @@
/* This is a generated file */
#ifndef __kdc_private_h__
#define __kdc_private_h__
#include <stdarg.h>
krb5_error_code
_kdc_add_KRB5SignedPath (
krb5_context /*context*/,
krb5_kdc_configuration */*config*/,
hdb_entry_ex */*krbtgt*/,
krb5_enctype /*enctype*/,
krb5_const_principal /*server*/,
KRB5SignedPathPrincipals */*principals*/,
EncTicketPart */*tkt*/);
krb5_error_code
_kdc_add_inital_verified_cas (
krb5_context /*context*/,
krb5_kdc_configuration */*config*/,
pk_client_params */*params*/,
EncTicketPart */*tkt*/);
krb5_error_code
_kdc_as_rep (
krb5_context /*context*/,
krb5_kdc_configuration */*config*/,
KDC_REQ */*req*/,
const krb5_data */*req_buffer*/,
krb5_data */*reply*/,
const char */*from*/,
struct sockaddr */*from_addr*/,
int /*datagram_reply*/);
krb5_boolean
_kdc_check_addresses (
krb5_context /*context*/,
krb5_kdc_configuration */*config*/,
HostAddresses */*addresses*/,
const struct sockaddr */*from*/);
krb5_error_code
_kdc_check_flags (
krb5_context /*context*/,
krb5_kdc_configuration */*config*/,
hdb_entry_ex */*client_ex*/,
const char */*client_name*/,
hdb_entry_ex */*server_ex*/,
const char */*server_name*/,
krb5_boolean /*is_as_req*/);
krb5_error_code
_kdc_db_fetch (
krb5_context /*context*/,
krb5_kdc_configuration */*config*/,
krb5_const_principal /*principal*/,
unsigned /*flags*/,
HDB **/*db*/,
hdb_entry_ex **/*h*/);
krb5_error_code
_kdc_db_fetch4 (
krb5_context /*context*/,
krb5_kdc_configuration */*config*/,
const char */*name*/,
const char */*instance*/,
const char */*realm*/,
unsigned /*flags*/,
hdb_entry_ex **/*ent*/);
krb5_error_code
_kdc_do_524 (
krb5_context /*context*/,
krb5_kdc_configuration */*config*/,
const Ticket */*t*/,
krb5_data */*reply*/,
const char */*from*/,
struct sockaddr */*addr*/);
krb5_error_code
_kdc_do_digest (
krb5_context /*context*/,
krb5_kdc_configuration */*config*/,
const DigestREQ */*req*/,
krb5_data */*reply*/,
const char */*from*/,
struct sockaddr */*addr*/);
krb5_error_code
_kdc_do_kaserver (
krb5_context /*context*/,
krb5_kdc_configuration */*config*/,
unsigned char */*buf*/,
size_t /*len*/,
krb5_data */*reply*/,
const char */*from*/,
struct sockaddr_in */*addr*/);
krb5_error_code
_kdc_do_kx509 (
krb5_context /*context*/,
krb5_kdc_configuration */*config*/,
const Kx509Request */*req*/,
krb5_data */*reply*/,
const char */*from*/,
struct sockaddr */*addr*/);
krb5_error_code
_kdc_do_version4 (
krb5_context /*context*/,
krb5_kdc_configuration */*config*/,
unsigned char */*buf*/,
size_t /*len*/,
krb5_data */*reply*/,
const char */*from*/,
struct sockaddr_in */*addr*/);
krb5_error_code
_kdc_encode_reply (
krb5_context /*context*/,
krb5_kdc_configuration */*config*/,
KDC_REP */*rep*/,
const EncTicketPart */*et*/,
EncKDCRepPart */*ek*/,
krb5_enctype /*etype*/,
int /*skvno*/,
const EncryptionKey */*skey*/,
int /*ckvno*/,
const EncryptionKey */*ckey*/,
const char **/*e_text*/,
krb5_data */*reply*/);
krb5_error_code
_kdc_encode_v4_ticket (
krb5_context /*context*/,
krb5_kdc_configuration */*config*/,
void */*buf*/,
size_t /*len*/,
const EncTicketPart */*et*/,
const PrincipalName */*service*/,
size_t */*size*/);
krb5_error_code
_kdc_find_etype (
krb5_context /*context*/,
const hdb_entry_ex */*princ*/,
krb5_enctype */*etypes*/,
unsigned /*len*/,
Key **/*ret_key*/,
krb5_enctype */*ret_etype*/);
const PA_DATA*
_kdc_find_padata (
const KDC_REQ */*req*/,
int */*start*/,
int /*type*/);
void
_kdc_fix_time (time_t **/*t*/);
void
_kdc_free_ent (
krb5_context /*context*/,
hdb_entry_ex */*ent*/);
krb5_error_code
_kdc_get_des_key (
krb5_context /*context*/,
hdb_entry_ex */*principal*/,
krb5_boolean /*is_server*/,
krb5_boolean /*prefer_afs_key*/,
Key **/*ret_key*/);
krb5_error_code
_kdc_get_preferred_key (
krb5_context /*context*/,
krb5_kdc_configuration */*config*/,
hdb_entry_ex */*h*/,
const char */*name*/,
krb5_enctype */*enctype*/,
Key **/*key*/);
void
_kdc_log_timestamp (
krb5_context /*context*/,
krb5_kdc_configuration */*config*/,
const char */*type*/,
KerberosTime /*authtime*/,
KerberosTime */*starttime*/,
KerberosTime /*endtime*/,
KerberosTime */*renew_till*/);
krb5_error_code
_kdc_make_anonymous_principalname (PrincipalName */*pn*/);
int
_kdc_maybe_version4 (
unsigned char */*buf*/,
int /*len*/);
krb5_error_code
_kdc_pac_generate (
krb5_context /*context*/,
hdb_entry_ex */*client*/,
krb5_pac */*pac*/);
krb5_error_code
_kdc_pac_verify (
krb5_context /*context*/,
const krb5_principal /*client_principal*/,
hdb_entry_ex */*client*/,
hdb_entry_ex */*server*/,
krb5_pac */*pac*/);
krb5_error_code
_kdc_pk_check_client (
krb5_context /*context*/,
krb5_kdc_configuration */*config*/,
const hdb_entry_ex */*client*/,
pk_client_params */*client_params*/,
char **/*subject_name*/);
void
_kdc_pk_free_client_param (
krb5_context /*context*/,
pk_client_params */*client_params*/);
krb5_error_code
_kdc_pk_initialize (
krb5_context /*context*/,
krb5_kdc_configuration */*config*/,
const char */*user_id*/,
const char */*anchors*/,
char **/*pool*/,
char **/*revoke_list*/);
krb5_error_code
_kdc_pk_mk_pa_reply (
krb5_context /*context*/,
krb5_kdc_configuration */*config*/,
pk_client_params */*client_params*/,
const hdb_entry_ex */*client*/,
const KDC_REQ */*req*/,
const krb5_data */*req_buffer*/,
krb5_keyblock **/*reply_key*/,
METHOD_DATA */*md*/);
krb5_error_code
_kdc_pk_rd_padata (
krb5_context /*context*/,
krb5_kdc_configuration */*config*/,
const KDC_REQ */*req*/,
const PA_DATA */*pa*/,
pk_client_params **/*ret_params*/);
krb5_error_code
_kdc_tgs_rep (
krb5_context /*context*/,
krb5_kdc_configuration */*config*/,
KDC_REQ */*req*/,
krb5_data */*data*/,
const char */*from*/,
struct sockaddr */*from_addr*/,
int /*datagram_reply*/);
krb5_error_code
_kdc_tkt_add_if_relevant_ad (
krb5_context /*context*/,
EncTicketPart */*tkt*/,
int /*type*/,
const krb5_data */*data*/);
krb5_error_code
_kdc_try_kx509_request (
void */*ptr*/,
size_t /*len*/,
Kx509Request */*req*/,
size_t */*size*/);
krb5_error_code
_kdc_windc_client_access (
krb5_context /*context*/,
struct hdb_entry_ex */*client*/,
KDC_REQ */*req*/,
krb5_data */*e_data*/);
#endif /* __kdc_private_h__ */

View File

@ -1,92 +0,0 @@
/* This is a generated file */
#ifndef __kdc_protos_h__
#define __kdc_protos_h__
#include <stdarg.h>
#ifdef __cplusplus
extern "C" {
#endif
void
kdc_log (
krb5_context /*context*/,
krb5_kdc_configuration */*config*/,
int /*level*/,
const char */*fmt*/,
...);
char*
kdc_log_msg (
krb5_context /*context*/,
krb5_kdc_configuration */*config*/,
int /*level*/,
const char */*fmt*/,
...);
char*
kdc_log_msg_va (
krb5_context /*context*/,
krb5_kdc_configuration */*config*/,
int /*level*/,
const char */*fmt*/,
va_list /*ap*/);
void
kdc_openlog (
krb5_context /*context*/,
krb5_kdc_configuration */*config*/);
krb5_error_code
krb5_kdc_get_config (
krb5_context /*context*/,
krb5_kdc_configuration **/*config*/);
int
krb5_kdc_process_krb5_request (
krb5_context /*context*/,
krb5_kdc_configuration */*config*/,
unsigned char */*buf*/,
size_t /*len*/,
krb5_data */*reply*/,
const char */*from*/,
struct sockaddr */*addr*/,
int /*datagram_reply*/);
int
krb5_kdc_process_request (
krb5_context /*context*/,
krb5_kdc_configuration */*config*/,
unsigned char */*buf*/,
size_t /*len*/,
krb5_data */*reply*/,
krb5_boolean */*prependlength*/,
const char */*from*/,
struct sockaddr */*addr*/,
int /*datagram_reply*/);
int
krb5_kdc_save_request (
krb5_context /*context*/,
const char */*fn*/,
const unsigned char */*buf*/,
size_t /*len*/,
const krb5_data */*reply*/,
const struct sockaddr */*sa*/);
krb5_error_code
krb5_kdc_set_dbinfo (
krb5_context /*context*/,
struct krb5_kdc_configuration */*c*/);
void
krb5_kdc_update_time (struct timeval */*tv*/);
krb5_error_code
krb5_kdc_windc_init (krb5_context /*context*/);
#ifdef __cplusplus
}
#endif
#endif /* __kdc_protos_h__ */

View File

@ -1,567 +0,0 @@
/* This is a generated file */
#ifndef __der_protos_h__
#define __der_protos_h__
#include <stdarg.h>
#ifdef __cplusplus
extern "C" {
#endif
int
copy_heim_any (
const heim_any */*from*/,
heim_any */*to*/);
int
copy_heim_any_set (
const heim_any_set */*from*/,
heim_any_set */*to*/);
int
decode_heim_any (
const unsigned char */*p*/,
size_t /*len*/,
heim_any */*data*/,
size_t */*size*/);
int
decode_heim_any_set (
const unsigned char */*p*/,
size_t /*len*/,
heim_any_set */*data*/,
size_t */*size*/);
int
der_copy_bit_string (
const heim_bit_string */*from*/,
heim_bit_string */*to*/);
int
der_copy_bmp_string (
const heim_bmp_string */*from*/,
heim_bmp_string */*to*/);
int
der_copy_general_string (
const heim_general_string */*from*/,
heim_general_string */*to*/);
int
der_copy_heim_integer (
const heim_integer */*from*/,
heim_integer */*to*/);
int
der_copy_ia5_string (
const heim_printable_string */*from*/,
heim_printable_string */*to*/);
int
der_copy_octet_string (
const heim_octet_string */*from*/,
heim_octet_string */*to*/);
int
der_copy_oid (
const heim_oid */*from*/,
heim_oid */*to*/);
int
der_copy_printable_string (
const heim_printable_string */*from*/,
heim_printable_string */*to*/);
int
der_copy_universal_string (
const heim_universal_string */*from*/,
heim_universal_string */*to*/);
int
der_copy_utf8string (
const heim_utf8_string */*from*/,
heim_utf8_string */*to*/);
int
der_copy_visible_string (
const heim_visible_string */*from*/,
heim_visible_string */*to*/);
void
der_free_bit_string (heim_bit_string */*k*/);
void
der_free_bmp_string (heim_bmp_string */*k*/);
void
der_free_general_string (heim_general_string */*str*/);
void
der_free_heim_integer (heim_integer */*k*/);
void
der_free_ia5_string (heim_ia5_string */*str*/);
void
der_free_octet_string (heim_octet_string */*k*/);
void
der_free_oid (heim_oid */*k*/);
void
der_free_printable_string (heim_printable_string */*str*/);
void
der_free_universal_string (heim_universal_string */*k*/);
void
der_free_utf8string (heim_utf8_string */*str*/);
void
der_free_visible_string (heim_visible_string */*str*/);
int
der_get_bit_string (
const unsigned char */*p*/,
size_t /*len*/,
heim_bit_string */*data*/,
size_t */*size*/);
int
der_get_bmp_string (
const unsigned char */*p*/,
size_t /*len*/,
heim_bmp_string */*data*/,
size_t */*size*/);
int
der_get_boolean (
const unsigned char */*p*/,
size_t /*len*/,
int */*data*/,
size_t */*size*/);
const char *
der_get_class_name (unsigned /*num*/);
int
der_get_class_num (const char */*name*/);
int
der_get_general_string (
const unsigned char */*p*/,
size_t /*len*/,
heim_general_string */*str*/,
size_t */*size*/);
int
der_get_generalized_time (
const unsigned char */*p*/,
size_t /*len*/,
time_t */*data*/,
size_t */*size*/);
int
der_get_heim_integer (
const unsigned char */*p*/,
size_t /*len*/,
heim_integer */*data*/,
size_t */*size*/);
int
der_get_ia5_string (
const unsigned char */*p*/,
size_t /*len*/,
heim_ia5_string */*str*/,
size_t */*size*/);
int
der_get_integer (
const unsigned char */*p*/,
size_t /*len*/,
int */*ret*/,
size_t */*size*/);
int
der_get_length (
const unsigned char */*p*/,
size_t /*len*/,
size_t */*val*/,
size_t */*size*/);
int
der_get_octet_string (
const unsigned char */*p*/,
size_t /*len*/,
heim_octet_string */*data*/,
size_t */*size*/);
int
der_get_oid (
const unsigned char */*p*/,
size_t /*len*/,
heim_oid */*data*/,
size_t */*size*/);
int
der_get_printable_string (
const unsigned char */*p*/,
size_t /*len*/,
heim_printable_string */*str*/,
size_t */*size*/);
int
der_get_tag (
const unsigned char */*p*/,
size_t /*len*/,
Der_class */*class*/,
Der_type */*type*/,
unsigned int */*tag*/,
size_t */*size*/);
const char *
der_get_tag_name (unsigned /*num*/);
int
der_get_tag_num (const char */*name*/);
const char *
der_get_type_name (unsigned /*num*/);
int
der_get_type_num (const char */*name*/);
int
der_get_universal_string (
const unsigned char */*p*/,
size_t /*len*/,
heim_universal_string */*data*/,
size_t */*size*/);
int
der_get_unsigned (
const unsigned char */*p*/,
size_t /*len*/,
unsigned */*ret*/,
size_t */*size*/);
int
der_get_utctime (
const unsigned char */*p*/,
size_t /*len*/,
time_t */*data*/,
size_t */*size*/);
int
der_get_utf8string (
const unsigned char */*p*/,
size_t /*len*/,
heim_utf8_string */*str*/,
size_t */*size*/);
int
der_get_visible_string (
const unsigned char */*p*/,
size_t /*len*/,
heim_visible_string */*str*/,
size_t */*size*/);
int
der_heim_bit_string_cmp (
const heim_bit_string */*p*/,
const heim_bit_string */*q*/);
int
der_heim_bmp_string_cmp (
const heim_bmp_string */*p*/,
const heim_bmp_string */*q*/);
int
der_heim_integer_cmp (
const heim_integer */*p*/,
const heim_integer */*q*/);
int
der_heim_octet_string_cmp (
const heim_octet_string */*p*/,
const heim_octet_string */*q*/);
int
der_heim_oid_cmp (
const heim_oid */*p*/,
const heim_oid */*q*/);
int
der_heim_universal_string_cmp (
const heim_universal_string */*p*/,
const heim_universal_string */*q*/);
size_t
der_length_bit_string (const heim_bit_string */*k*/);
size_t
der_length_bmp_string (const heim_bmp_string */*data*/);
size_t
der_length_boolean (const int */*k*/);
size_t
der_length_enumerated (const unsigned */*data*/);
size_t
der_length_general_string (const heim_general_string */*data*/);
size_t
der_length_generalized_time (const time_t */*t*/);
size_t
der_length_heim_integer (const heim_integer */*k*/);
size_t
der_length_ia5_string (const heim_ia5_string */*data*/);
size_t
der_length_integer (const int */*data*/);
size_t
der_length_len (size_t /*len*/);
size_t
der_length_octet_string (const heim_octet_string */*k*/);
size_t
der_length_oid (const heim_oid */*k*/);
size_t
der_length_printable_string (const heim_printable_string */*data*/);
size_t
der_length_universal_string (const heim_universal_string */*data*/);
size_t
der_length_unsigned (const unsigned */*data*/);
size_t
der_length_utctime (const time_t */*t*/);
size_t
der_length_utf8string (const heim_utf8_string */*data*/);
size_t
der_length_visible_string (const heim_visible_string */*data*/);
int
der_match_tag (
const unsigned char */*p*/,
size_t /*len*/,
Der_class /*class*/,
Der_type /*type*/,
unsigned int /*tag*/,
size_t */*size*/);
int
der_match_tag_and_length (
const unsigned char */*p*/,
size_t /*len*/,
Der_class /*class*/,
Der_type /*type*/,
unsigned int /*tag*/,
size_t */*length_ret*/,
size_t */*size*/);
int
der_parse_heim_oid (
const char */*str*/,
const char */*sep*/,
heim_oid */*data*/);
int
der_parse_hex_heim_integer (
const char */*p*/,
heim_integer */*data*/);
int
der_print_heim_oid (
const heim_oid */*oid*/,
char /*delim*/,
char **/*str*/);
int
der_print_hex_heim_integer (
const heim_integer */*data*/,
char **/*p*/);
int
der_put_bit_string (
unsigned char */*p*/,
size_t /*len*/,
const heim_bit_string */*data*/,
size_t */*size*/);
int
der_put_bmp_string (
unsigned char */*p*/,
size_t /*len*/,
const heim_bmp_string */*data*/,
size_t */*size*/);
int
der_put_boolean (
unsigned char */*p*/,
size_t /*len*/,
const int */*data*/,
size_t */*size*/);
int
der_put_general_string (
unsigned char */*p*/,
size_t /*len*/,
const heim_general_string */*str*/,
size_t */*size*/);
int
der_put_generalized_time (
unsigned char */*p*/,
size_t /*len*/,
const time_t */*data*/,
size_t */*size*/);
int
der_put_heim_integer (
unsigned char */*p*/,
size_t /*len*/,
const heim_integer */*data*/,
size_t */*size*/);
int
der_put_ia5_string (
unsigned char */*p*/,
size_t /*len*/,
const heim_ia5_string */*str*/,
size_t */*size*/);
int
der_put_integer (
unsigned char */*p*/,
size_t /*len*/,
const int */*v*/,
size_t */*size*/);
int
der_put_length (
unsigned char */*p*/,
size_t /*len*/,
size_t /*val*/,
size_t */*size*/);
int
der_put_length_and_tag (
unsigned char */*p*/,
size_t /*len*/,
size_t /*len_val*/,
Der_class /*class*/,
Der_type /*type*/,
unsigned int /*tag*/,
size_t */*size*/);
int
der_put_octet_string (
unsigned char */*p*/,
size_t /*len*/,
const heim_octet_string */*data*/,
size_t */*size*/);
int
der_put_oid (
unsigned char */*p*/,
size_t /*len*/,
const heim_oid */*data*/,
size_t */*size*/);
int
der_put_printable_string (
unsigned char */*p*/,
size_t /*len*/,
const heim_printable_string */*str*/,
size_t */*size*/);
int
der_put_tag (
unsigned char */*p*/,
size_t /*len*/,
Der_class /*class*/,
Der_type /*type*/,
unsigned int /*tag*/,
size_t */*size*/);
int
der_put_universal_string (
unsigned char */*p*/,
size_t /*len*/,
const heim_universal_string */*data*/,
size_t */*size*/);
int
der_put_unsigned (
unsigned char */*p*/,
size_t /*len*/,
const unsigned */*v*/,
size_t */*size*/);
int
der_put_utctime (
unsigned char */*p*/,
size_t /*len*/,
const time_t */*data*/,
size_t */*size*/);
int
der_put_utf8string (
unsigned char */*p*/,
size_t /*len*/,
const heim_utf8_string */*str*/,
size_t */*size*/);
int
der_put_visible_string (
unsigned char */*p*/,
size_t /*len*/,
const heim_visible_string */*str*/,
size_t */*size*/);
int
encode_heim_any (
unsigned char */*p*/,
size_t /*len*/,
const heim_any */*data*/,
size_t */*size*/);
int
encode_heim_any_set (
unsigned char */*p*/,
size_t /*len*/,
const heim_any_set */*data*/,
size_t */*size*/);
void
free_heim_any (heim_any */*data*/);
void
free_heim_any_set (heim_any_set */*data*/);
int
heim_any_cmp (
const heim_any_set */*p*/,
const heim_any_set */*q*/);
size_t
length_heim_any (const heim_any */*data*/);
size_t
length_heim_any_set (const heim_any */*data*/);
#ifdef __cplusplus
}
#endif
#endif /* __der_protos_h__ */

View File

@ -1,704 +0,0 @@
/* This is a generated file */
#ifndef __gsskrb5_private_h__
#define __gsskrb5_private_h__
#include <stdarg.h>
gssapi_mech_interface
__gss_krb5_initialize (void);
OM_uint32
__gsskrb5_ccache_lifetime (
OM_uint32 */*minor_status*/,
krb5_context /*context*/,
krb5_ccache /*id*/,
krb5_principal /*principal*/,
OM_uint32 */*lifetime*/);
OM_uint32
_gss_DES3_get_mic_compat (
OM_uint32 */*minor_status*/,
gsskrb5_ctx /*ctx*/,
krb5_context /*context*/);
OM_uint32
_gssapi_decapsulate (
OM_uint32 */*minor_status*/,
gss_buffer_t /*input_token_buffer*/,
krb5_data */*out_data*/,
const gss_OID mech );
void
_gssapi_encap_length (
size_t /*data_len*/,
size_t */*len*/,
size_t */*total_len*/,
const gss_OID /*mech*/);
OM_uint32
_gssapi_encapsulate (
OM_uint32 */*minor_status*/,
const krb5_data */*in_data*/,
gss_buffer_t /*output_token*/,
const gss_OID mech );
OM_uint32
_gssapi_get_mic_arcfour (
OM_uint32 * /*minor_status*/,
const gsskrb5_ctx /*context_handle*/,
krb5_context /*context*/,
gss_qop_t /*qop_req*/,
const gss_buffer_t /*message_buffer*/,
gss_buffer_t /*message_token*/,
krb5_keyblock */*key*/);
void *
_gssapi_make_mech_header (
void */*ptr*/,
size_t /*len*/,
const gss_OID /*mech*/);
OM_uint32
_gssapi_mic_cfx (
OM_uint32 */*minor_status*/,
const gsskrb5_ctx /*context_handle*/,
krb5_context /*context*/,
gss_qop_t /*qop_req*/,
const gss_buffer_t /*message_buffer*/,
gss_buffer_t /*message_token*/,
krb5_keyblock */*key*/);
OM_uint32
_gssapi_msg_order_check (
struct gss_msg_order */*o*/,
OM_uint32 /*seq_num*/);
OM_uint32
_gssapi_msg_order_create (
OM_uint32 */*minor_status*/,
struct gss_msg_order **/*o*/,
OM_uint32 /*flags*/,
OM_uint32 /*seq_num*/,
OM_uint32 /*jitter_window*/,
int /*use_64*/);
OM_uint32
_gssapi_msg_order_destroy (struct gss_msg_order **/*m*/);
krb5_error_code
_gssapi_msg_order_export (
krb5_storage */*sp*/,
struct gss_msg_order */*o*/);
OM_uint32
_gssapi_msg_order_f (OM_uint32 /*flags*/);
OM_uint32
_gssapi_msg_order_import (
OM_uint32 */*minor_status*/,
krb5_storage */*sp*/,
struct gss_msg_order **/*o*/);
OM_uint32
_gssapi_unwrap_arcfour (
OM_uint32 */*minor_status*/,
const gsskrb5_ctx /*context_handle*/,
krb5_context /*context*/,
const gss_buffer_t /*input_message_buffer*/,
gss_buffer_t /*output_message_buffer*/,
int */*conf_state*/,
gss_qop_t */*qop_state*/,
krb5_keyblock */*key*/);
OM_uint32
_gssapi_unwrap_cfx (
OM_uint32 */*minor_status*/,
const gsskrb5_ctx /*context_handle*/,
krb5_context /*context*/,
const gss_buffer_t /*input_message_buffer*/,
gss_buffer_t /*output_message_buffer*/,
int */*conf_state*/,
gss_qop_t */*qop_state*/,
krb5_keyblock */*key*/);
OM_uint32
_gssapi_verify_mech_header (
u_char **/*str*/,
size_t /*total_len*/,
gss_OID /*mech*/);
OM_uint32
_gssapi_verify_mic_arcfour (
OM_uint32 * /*minor_status*/,
const gsskrb5_ctx /*context_handle*/,
krb5_context /*context*/,
const gss_buffer_t /*message_buffer*/,
const gss_buffer_t /*token_buffer*/,
gss_qop_t * /*qop_state*/,
krb5_keyblock */*key*/,
char */*type*/);
OM_uint32
_gssapi_verify_mic_cfx (
OM_uint32 */*minor_status*/,
const gsskrb5_ctx /*context_handle*/,
krb5_context /*context*/,
const gss_buffer_t /*message_buffer*/,
const gss_buffer_t /*token_buffer*/,
gss_qop_t */*qop_state*/,
krb5_keyblock */*key*/);
OM_uint32
_gssapi_verify_pad (
gss_buffer_t /*wrapped_token*/,
size_t /*datalen*/,
size_t */*padlen*/);
OM_uint32
_gssapi_wrap_arcfour (
OM_uint32 * /*minor_status*/,
const gsskrb5_ctx /*context_handle*/,
krb5_context /*context*/,
int /*conf_req_flag*/,
gss_qop_t /*qop_req*/,
const gss_buffer_t /*input_message_buffer*/,
int * /*conf_state*/,
gss_buffer_t /*output_message_buffer*/,
krb5_keyblock */*key*/);
OM_uint32
_gssapi_wrap_cfx (
OM_uint32 */*minor_status*/,
const gsskrb5_ctx /*context_handle*/,
krb5_context /*context*/,
int /*conf_req_flag*/,
gss_qop_t /*qop_req*/,
const gss_buffer_t /*input_message_buffer*/,
int */*conf_state*/,
gss_buffer_t /*output_message_buffer*/,
krb5_keyblock */*key*/);
OM_uint32
_gssapi_wrap_size_arcfour (
OM_uint32 */*minor_status*/,
const gsskrb5_ctx /*ctx*/,
krb5_context /*context*/,
int /*conf_req_flag*/,
gss_qop_t /*qop_req*/,
OM_uint32 /*req_output_size*/,
OM_uint32 */*max_input_size*/,
krb5_keyblock */*key*/);
OM_uint32
_gssapi_wrap_size_cfx (
OM_uint32 */*minor_status*/,
const gsskrb5_ctx /*context_handle*/,
krb5_context /*context*/,
int /*conf_req_flag*/,
gss_qop_t /*qop_req*/,
OM_uint32 /*req_output_size*/,
OM_uint32 */*max_input_size*/,
krb5_keyblock */*key*/);
OM_uint32
_gsskrb5_accept_sec_context (
OM_uint32 * /*minor_status*/,
gss_ctx_id_t * /*context_handle*/,
const gss_cred_id_t /*acceptor_cred_handle*/,
const gss_buffer_t /*input_token_buffer*/,
const gss_channel_bindings_t /*input_chan_bindings*/,
gss_name_t * /*src_name*/,
gss_OID * /*mech_type*/,
gss_buffer_t /*output_token*/,
OM_uint32 * /*ret_flags*/,
OM_uint32 * /*time_rec*/,
gss_cred_id_t * /*delegated_cred_handle*/);
OM_uint32
_gsskrb5_acquire_cred (
OM_uint32 * /*minor_status*/,
const gss_name_t /*desired_name*/,
OM_uint32 /*time_req*/,
const gss_OID_set /*desired_mechs*/,
gss_cred_usage_t /*cred_usage*/,
gss_cred_id_t * /*output_cred_handle*/,
gss_OID_set * /*actual_mechs*/,
OM_uint32 * time_rec );
OM_uint32
_gsskrb5_add_cred (
OM_uint32 */*minor_status*/,
const gss_cred_id_t /*input_cred_handle*/,
const gss_name_t /*desired_name*/,
const gss_OID /*desired_mech*/,
gss_cred_usage_t /*cred_usage*/,
OM_uint32 /*initiator_time_req*/,
OM_uint32 /*acceptor_time_req*/,
gss_cred_id_t */*output_cred_handle*/,
gss_OID_set */*actual_mechs*/,
OM_uint32 */*initiator_time_rec*/,
OM_uint32 */*acceptor_time_rec*/);
OM_uint32
_gsskrb5_canonicalize_name (
OM_uint32 * /*minor_status*/,
const gss_name_t /*input_name*/,
const gss_OID /*mech_type*/,
gss_name_t * output_name );
void
_gsskrb5_clear_status (void);
OM_uint32
_gsskrb5_compare_name (
OM_uint32 * /*minor_status*/,
const gss_name_t /*name1*/,
const gss_name_t /*name2*/,
int * name_equal );
OM_uint32
_gsskrb5_context_time (
OM_uint32 * /*minor_status*/,
const gss_ctx_id_t /*context_handle*/,
OM_uint32 * time_rec );
OM_uint32
_gsskrb5_create_8003_checksum (
OM_uint32 */*minor_status*/,
const gss_channel_bindings_t /*input_chan_bindings*/,
OM_uint32 /*flags*/,
const krb5_data */*fwd_data*/,
Checksum */*result*/);
OM_uint32
_gsskrb5_create_ctx (
OM_uint32 * /*minor_status*/,
gss_ctx_id_t * /*context_handle*/,
krb5_context /*context*/,
const gss_channel_bindings_t /*input_chan_bindings*/,
enum gss_ctx_id_t_state /*state*/);
OM_uint32
_gsskrb5_decapsulate (
OM_uint32 */*minor_status*/,
gss_buffer_t /*input_token_buffer*/,
krb5_data */*out_data*/,
const void */*type*/,
gss_OID /*oid*/);
krb5_error_code
_gsskrb5_decode_be_om_uint32 (
const void */*ptr*/,
OM_uint32 */*n*/);
krb5_error_code
_gsskrb5_decode_om_uint32 (
const void */*ptr*/,
OM_uint32 */*n*/);
OM_uint32
_gsskrb5_delete_sec_context (
OM_uint32 * /*minor_status*/,
gss_ctx_id_t * /*context_handle*/,
gss_buffer_t /*output_token*/);
OM_uint32
_gsskrb5_display_name (
OM_uint32 * /*minor_status*/,
const gss_name_t /*input_name*/,
gss_buffer_t /*output_name_buffer*/,
gss_OID * output_name_type );
OM_uint32
_gsskrb5_display_status (
OM_uint32 */*minor_status*/,
OM_uint32 /*status_value*/,
int /*status_type*/,
const gss_OID /*mech_type*/,
OM_uint32 */*message_context*/,
gss_buffer_t /*status_string*/);
OM_uint32
_gsskrb5_duplicate_name (
OM_uint32 * /*minor_status*/,
const gss_name_t /*src_name*/,
gss_name_t * dest_name );
void
_gsskrb5_encap_length (
size_t /*data_len*/,
size_t */*len*/,
size_t */*total_len*/,
const gss_OID /*mech*/);
OM_uint32
_gsskrb5_encapsulate (
OM_uint32 */*minor_status*/,
const krb5_data */*in_data*/,
gss_buffer_t /*output_token*/,
const void */*type*/,
const gss_OID mech );
krb5_error_code
_gsskrb5_encode_be_om_uint32 (
OM_uint32 /*n*/,
u_char */*p*/);
krb5_error_code
_gsskrb5_encode_om_uint32 (
OM_uint32 /*n*/,
u_char */*p*/);
OM_uint32
_gsskrb5_export_name (
OM_uint32 * /*minor_status*/,
const gss_name_t /*input_name*/,
gss_buffer_t exported_name );
OM_uint32
_gsskrb5_export_sec_context (
OM_uint32 * /*minor_status*/,
gss_ctx_id_t * /*context_handle*/,
gss_buffer_t interprocess_token );
ssize_t
_gsskrb5_get_mech (
const u_char */*ptr*/,
size_t /*total_len*/,
const u_char **/*mech_ret*/);
OM_uint32
_gsskrb5_get_mic (
OM_uint32 * /*minor_status*/,
const gss_ctx_id_t /*context_handle*/,
gss_qop_t /*qop_req*/,
const gss_buffer_t /*message_buffer*/,
gss_buffer_t message_token );
OM_uint32
_gsskrb5_get_tkt_flags (
OM_uint32 */*minor_status*/,
gsskrb5_ctx /*ctx*/,
OM_uint32 */*tkt_flags*/);
OM_uint32
_gsskrb5_import_cred (
OM_uint32 */*minor_status*/,
krb5_ccache /*id*/,
krb5_principal /*keytab_principal*/,
krb5_keytab /*keytab*/,
gss_cred_id_t */*cred*/);
OM_uint32
_gsskrb5_import_name (
OM_uint32 * /*minor_status*/,
const gss_buffer_t /*input_name_buffer*/,
const gss_OID /*input_name_type*/,
gss_name_t * output_name );
OM_uint32
_gsskrb5_import_sec_context (
OM_uint32 * /*minor_status*/,
const gss_buffer_t /*interprocess_token*/,
gss_ctx_id_t * context_handle );
OM_uint32
_gsskrb5_indicate_mechs (
OM_uint32 * /*minor_status*/,
gss_OID_set * mech_set );
krb5_error_code
_gsskrb5_init (krb5_context */*context*/);
OM_uint32
_gsskrb5_init_sec_context (
OM_uint32 * /*minor_status*/,
const gss_cred_id_t /*cred_handle*/,
gss_ctx_id_t * /*context_handle*/,
const gss_name_t /*target_name*/,
const gss_OID /*mech_type*/,
OM_uint32 /*req_flags*/,
OM_uint32 /*time_req*/,
const gss_channel_bindings_t /*input_chan_bindings*/,
const gss_buffer_t /*input_token*/,
gss_OID * /*actual_mech_type*/,
gss_buffer_t /*output_token*/,
OM_uint32 * /*ret_flags*/,
OM_uint32 * time_rec );
OM_uint32
_gsskrb5_inquire_context (
OM_uint32 * /*minor_status*/,
const gss_ctx_id_t /*context_handle*/,
gss_name_t * /*src_name*/,
gss_name_t * /*targ_name*/,
OM_uint32 * /*lifetime_rec*/,
gss_OID * /*mech_type*/,
OM_uint32 * /*ctx_flags*/,
int * /*locally_initiated*/,
int * open_context );
OM_uint32
_gsskrb5_inquire_cred (
OM_uint32 * /*minor_status*/,
const gss_cred_id_t /*cred_handle*/,
gss_name_t * /*output_name*/,
OM_uint32 * /*lifetime*/,
gss_cred_usage_t * /*cred_usage*/,
gss_OID_set * mechanisms );
OM_uint32
_gsskrb5_inquire_cred_by_mech (
OM_uint32 * /*minor_status*/,
const gss_cred_id_t /*cred_handle*/,
const gss_OID /*mech_type*/,
gss_name_t * /*name*/,
OM_uint32 * /*initiator_lifetime*/,
OM_uint32 * /*acceptor_lifetime*/,
gss_cred_usage_t * cred_usage );
OM_uint32
_gsskrb5_inquire_cred_by_oid (
OM_uint32 * /*minor_status*/,
const gss_cred_id_t /*cred_handle*/,
const gss_OID /*desired_object*/,
gss_buffer_set_t */*data_set*/);
OM_uint32
_gsskrb5_inquire_mechs_for_name (
OM_uint32 * /*minor_status*/,
const gss_name_t /*input_name*/,
gss_OID_set * mech_types );
OM_uint32
_gsskrb5_inquire_names_for_mech (
OM_uint32 * /*minor_status*/,
const gss_OID /*mechanism*/,
gss_OID_set * name_types );
OM_uint32
_gsskrb5_inquire_sec_context_by_oid (
OM_uint32 */*minor_status*/,
const gss_ctx_id_t /*context_handle*/,
const gss_OID /*desired_object*/,
gss_buffer_set_t */*data_set*/);
OM_uint32
_gsskrb5_krb5_ccache_name (
OM_uint32 */*minor_status*/,
const char */*name*/,
const char **/*out_name*/);
OM_uint32
_gsskrb5_lifetime_left (
OM_uint32 */*minor_status*/,
krb5_context /*context*/,
OM_uint32 /*lifetime*/,
OM_uint32 */*lifetime_rec*/);
void *
_gsskrb5_make_header (
void */*ptr*/,
size_t /*len*/,
const void */*type*/,
const gss_OID /*mech*/);
OM_uint32
_gsskrb5_process_context_token (
OM_uint32 */*minor_status*/,
const gss_ctx_id_t /*context_handle*/,
const gss_buffer_t token_buffer );
OM_uint32
_gsskrb5_pseudo_random (
OM_uint32 */*minor_status*/,
gss_ctx_id_t /*context_handle*/,
int /*prf_key*/,
const gss_buffer_t /*prf_in*/,
ssize_t /*desired_output_len*/,
gss_buffer_t /*prf_out*/);
OM_uint32
_gsskrb5_register_acceptor_identity (const char */*identity*/);
OM_uint32
_gsskrb5_release_buffer (
OM_uint32 * /*minor_status*/,
gss_buffer_t buffer );
OM_uint32
_gsskrb5_release_cred (
OM_uint32 * /*minor_status*/,
gss_cred_id_t * cred_handle );
OM_uint32
_gsskrb5_release_name (
OM_uint32 * /*minor_status*/,
gss_name_t * input_name );
OM_uint32
_gsskrb5_seal (
OM_uint32 * /*minor_status*/,
gss_ctx_id_t /*context_handle*/,
int /*conf_req_flag*/,
int /*qop_req*/,
gss_buffer_t /*input_message_buffer*/,
int * /*conf_state*/,
gss_buffer_t output_message_buffer );
OM_uint32
_gsskrb5_set_cred_option (
OM_uint32 */*minor_status*/,
gss_cred_id_t */*cred_handle*/,
const gss_OID /*desired_object*/,
const gss_buffer_t /*value*/);
OM_uint32
_gsskrb5_set_sec_context_option (
OM_uint32 */*minor_status*/,
gss_ctx_id_t */*context_handle*/,
const gss_OID /*desired_object*/,
const gss_buffer_t /*value*/);
void
_gsskrb5_set_status (
const char */*fmt*/,
...);
OM_uint32
_gsskrb5_sign (
OM_uint32 * /*minor_status*/,
gss_ctx_id_t /*context_handle*/,
int /*qop_req*/,
gss_buffer_t /*message_buffer*/,
gss_buffer_t message_token );
OM_uint32
_gsskrb5_unseal (
OM_uint32 * /*minor_status*/,
gss_ctx_id_t /*context_handle*/,
gss_buffer_t /*input_message_buffer*/,
gss_buffer_t /*output_message_buffer*/,
int * /*conf_state*/,
int * qop_state );
OM_uint32
_gsskrb5_unwrap (
OM_uint32 * /*minor_status*/,
const gss_ctx_id_t /*context_handle*/,
const gss_buffer_t /*input_message_buffer*/,
gss_buffer_t /*output_message_buffer*/,
int * /*conf_state*/,
gss_qop_t * qop_state );
OM_uint32
_gsskrb5_verify (
OM_uint32 * /*minor_status*/,
gss_ctx_id_t /*context_handle*/,
gss_buffer_t /*message_buffer*/,
gss_buffer_t /*token_buffer*/,
int * qop_state );
OM_uint32
_gsskrb5_verify_8003_checksum (
OM_uint32 */*minor_status*/,
const gss_channel_bindings_t /*input_chan_bindings*/,
const Checksum */*cksum*/,
OM_uint32 */*flags*/,
krb5_data */*fwd_data*/);
OM_uint32
_gsskrb5_verify_header (
u_char **/*str*/,
size_t /*total_len*/,
const void */*type*/,
gss_OID /*oid*/);
OM_uint32
_gsskrb5_verify_mic (
OM_uint32 * /*minor_status*/,
const gss_ctx_id_t /*context_handle*/,
const gss_buffer_t /*message_buffer*/,
const gss_buffer_t /*token_buffer*/,
gss_qop_t * qop_state );
OM_uint32
_gsskrb5_verify_mic_internal (
OM_uint32 * /*minor_status*/,
const gsskrb5_ctx /*context_handle*/,
krb5_context /*context*/,
const gss_buffer_t /*message_buffer*/,
const gss_buffer_t /*token_buffer*/,
gss_qop_t * /*qop_state*/,
char * type );
OM_uint32
_gsskrb5_wrap (
OM_uint32 * /*minor_status*/,
const gss_ctx_id_t /*context_handle*/,
int /*conf_req_flag*/,
gss_qop_t /*qop_req*/,
const gss_buffer_t /*input_message_buffer*/,
int * /*conf_state*/,
gss_buffer_t output_message_buffer );
OM_uint32
_gsskrb5_wrap_size_limit (
OM_uint32 * /*minor_status*/,
const gss_ctx_id_t /*context_handle*/,
int /*conf_req_flag*/,
gss_qop_t /*qop_req*/,
OM_uint32 /*req_output_size*/,
OM_uint32 * max_input_size );
krb5_error_code
_gsskrb5cfx_max_wrap_length_cfx (
krb5_context /*context*/,
krb5_crypto /*crypto*/,
int /*conf_req_flag*/,
size_t /*input_length*/,
OM_uint32 */*output_length*/);
krb5_error_code
_gsskrb5cfx_wrap_length_cfx (
const gsskrb5_ctx /*context_handle*/,
krb5_context /*context*/,
krb5_crypto /*crypto*/,
int /*conf_req_flag*/,
size_t /*input_length*/,
size_t */*output_length*/,
size_t */*cksumsize*/,
uint16_t */*padlength*/);
krb5_error_code
_gsskrb5i_address_to_krb5addr (
krb5_context /*context*/,
OM_uint32 /*gss_addr_type*/,
gss_buffer_desc */*gss_addr*/,
int16_t /*port*/,
krb5_address */*address*/);
krb5_error_code
_gsskrb5i_get_acceptor_subkey (
const gsskrb5_ctx /*ctx*/,
krb5_context /*context*/,
krb5_keyblock **/*key*/);
krb5_error_code
_gsskrb5i_get_initiator_subkey (
const gsskrb5_ctx /*ctx*/,
krb5_context /*context*/,
krb5_keyblock **/*key*/);
OM_uint32
_gsskrb5i_get_token_key (
const gsskrb5_ctx /*ctx*/,
krb5_context /*context*/,
krb5_keyblock **/*key*/);
void
_gsskrb5i_is_cfx (
gsskrb5_ctx /*ctx*/,
int */*is_cfx*/);
#endif /* __gsskrb5_private_h__ */

View File

@ -1,337 +0,0 @@
/* This is a generated file */
#ifndef __spnego_private_h__
#define __spnego_private_h__
#include <stdarg.h>
gssapi_mech_interface
__gss_spnego_initialize (void);
OM_uint32
_gss_spnego_accept_sec_context (
OM_uint32 * /*minor_status*/,
gss_ctx_id_t * /*context_handle*/,
const gss_cred_id_t /*acceptor_cred_handle*/,
const gss_buffer_t /*input_token_buffer*/,
const gss_channel_bindings_t /*input_chan_bindings*/,
gss_name_t * /*src_name*/,
gss_OID * /*mech_type*/,
gss_buffer_t /*output_token*/,
OM_uint32 * /*ret_flags*/,
OM_uint32 * /*time_rec*/,
gss_cred_id_t *delegated_cred_handle );
OM_uint32
_gss_spnego_acquire_cred (
OM_uint32 */*minor_status*/,
const gss_name_t /*desired_name*/,
OM_uint32 /*time_req*/,
const gss_OID_set /*desired_mechs*/,
gss_cred_usage_t /*cred_usage*/,
gss_cred_id_t * /*output_cred_handle*/,
gss_OID_set * /*actual_mechs*/,
OM_uint32 * time_rec );
OM_uint32
_gss_spnego_add_cred (
OM_uint32 * /*minor_status*/,
const gss_cred_id_t /*input_cred_handle*/,
const gss_name_t /*desired_name*/,
const gss_OID /*desired_mech*/,
gss_cred_usage_t /*cred_usage*/,
OM_uint32 /*initiator_time_req*/,
OM_uint32 /*acceptor_time_req*/,
gss_cred_id_t * /*output_cred_handle*/,
gss_OID_set * /*actual_mechs*/,
OM_uint32 * /*initiator_time_rec*/,
OM_uint32 * acceptor_time_rec );
OM_uint32
_gss_spnego_alloc_cred (
OM_uint32 */*minor_status*/,
gss_cred_id_t /*mech_cred_handle*/,
gss_cred_id_t */*cred_handle*/);
OM_uint32
_gss_spnego_alloc_sec_context (
OM_uint32 * /*minor_status*/,
gss_ctx_id_t */*context_handle*/);
OM_uint32
_gss_spnego_canonicalize_name (
OM_uint32 * /*minor_status*/,
const gss_name_t /*input_name*/,
const gss_OID /*mech_type*/,
gss_name_t * output_name );
OM_uint32
_gss_spnego_compare_name (
OM_uint32 */*minor_status*/,
const gss_name_t /*name1*/,
const gss_name_t /*name2*/,
int * name_equal );
OM_uint32
_gss_spnego_context_time (
OM_uint32 */*minor_status*/,
const gss_ctx_id_t /*context_handle*/,
OM_uint32 *time_rec );
OM_uint32
_gss_spnego_delete_sec_context (
OM_uint32 */*minor_status*/,
gss_ctx_id_t */*context_handle*/,
gss_buffer_t output_token );
OM_uint32
_gss_spnego_display_name (
OM_uint32 * /*minor_status*/,
const gss_name_t /*input_name*/,
gss_buffer_t /*output_name_buffer*/,
gss_OID * output_name_type );
OM_uint32
_gss_spnego_duplicate_name (
OM_uint32 * /*minor_status*/,
const gss_name_t /*src_name*/,
gss_name_t * dest_name );
OM_uint32
_gss_spnego_export_name (
OM_uint32 * /*minor_status*/,
const gss_name_t /*input_name*/,
gss_buffer_t exported_name );
OM_uint32
_gss_spnego_export_sec_context (
OM_uint32 * /*minor_status*/,
gss_ctx_id_t * /*context_handle*/,
gss_buffer_t interprocess_token );
OM_uint32
_gss_spnego_get_mic (
OM_uint32 */*minor_status*/,
const gss_ctx_id_t /*context_handle*/,
gss_qop_t /*qop_req*/,
const gss_buffer_t /*message_buffer*/,
gss_buffer_t message_token );
OM_uint32
_gss_spnego_import_name (
OM_uint32 * /*minor_status*/,
const gss_buffer_t /*name_buffer*/,
const gss_OID /*name_type*/,
gss_name_t * output_name );
OM_uint32
_gss_spnego_import_sec_context (
OM_uint32 * /*minor_status*/,
const gss_buffer_t /*interprocess_token*/,
gss_ctx_id_t *context_handle );
OM_uint32
_gss_spnego_indicate_mechtypelist (
OM_uint32 */*minor_status*/,
gss_name_t /*target_name*/,
OM_uint32 (*/*func*/)(gss_name_t, gss_OID),
int /*includeMSCompatOID*/,
const gssspnego_cred /*cred_handle*/,
MechTypeList */*mechtypelist*/,
gss_OID */*preferred_mech*/);
OM_uint32
_gss_spnego_init_sec_context (
OM_uint32 * /*minor_status*/,
const gss_cred_id_t /*initiator_cred_handle*/,
gss_ctx_id_t * /*context_handle*/,
const gss_name_t /*target_name*/,
const gss_OID /*mech_type*/,
OM_uint32 /*req_flags*/,
OM_uint32 /*time_req*/,
const gss_channel_bindings_t /*input_chan_bindings*/,
const gss_buffer_t /*input_token*/,
gss_OID * /*actual_mech_type*/,
gss_buffer_t /*output_token*/,
OM_uint32 * /*ret_flags*/,
OM_uint32 * time_rec );
OM_uint32
_gss_spnego_inquire_context (
OM_uint32 * /*minor_status*/,
const gss_ctx_id_t /*context_handle*/,
gss_name_t * /*src_name*/,
gss_name_t * /*targ_name*/,
OM_uint32 * /*lifetime_rec*/,
gss_OID * /*mech_type*/,
OM_uint32 * /*ctx_flags*/,
int * /*locally_initiated*/,
int * open_context );
OM_uint32
_gss_spnego_inquire_cred (
OM_uint32 * /*minor_status*/,
const gss_cred_id_t /*cred_handle*/,
gss_name_t * /*name*/,
OM_uint32 * /*lifetime*/,
gss_cred_usage_t * /*cred_usage*/,
gss_OID_set * mechanisms );
OM_uint32
_gss_spnego_inquire_cred_by_mech (
OM_uint32 * /*minor_status*/,
const gss_cred_id_t /*cred_handle*/,
const gss_OID /*mech_type*/,
gss_name_t * /*name*/,
OM_uint32 * /*initiator_lifetime*/,
OM_uint32 * /*acceptor_lifetime*/,
gss_cred_usage_t * cred_usage );
OM_uint32
_gss_spnego_inquire_cred_by_oid (
OM_uint32 * /*minor_status*/,
const gss_cred_id_t /*cred_handle*/,
const gss_OID /*desired_object*/,
gss_buffer_set_t */*data_set*/);
OM_uint32
_gss_spnego_inquire_mechs_for_name (
OM_uint32 * /*minor_status*/,
const gss_name_t /*input_name*/,
gss_OID_set * mech_types );
OM_uint32
_gss_spnego_inquire_names_for_mech (
OM_uint32 * /*minor_status*/,
const gss_OID /*mechanism*/,
gss_OID_set * name_types );
OM_uint32
_gss_spnego_inquire_sec_context_by_oid (
OM_uint32 * /*minor_status*/,
const gss_ctx_id_t /*context_handle*/,
const gss_OID /*desired_object*/,
gss_buffer_set_t */*data_set*/);
OM_uint32
_gss_spnego_internal_delete_sec_context (
OM_uint32 */*minor_status*/,
gss_ctx_id_t */*context_handle*/,
gss_buffer_t output_token );
OM_uint32
_gss_spnego_process_context_token (
OM_uint32 */*minor_status*/,
const gss_ctx_id_t /*context_handle*/,
const gss_buffer_t token_buffer );
OM_uint32
_gss_spnego_pseudo_random (
OM_uint32 */*minor_status*/,
gss_ctx_id_t /*context_handle*/,
int /*prf_key*/,
const gss_buffer_t /*prf_in*/,
ssize_t /*desired_output_len*/,
gss_buffer_t /*prf_out*/);
OM_uint32
_gss_spnego_release_cred (
OM_uint32 */*minor_status*/,
gss_cred_id_t */*cred_handle*/);
OM_uint32
_gss_spnego_release_name (
OM_uint32 * /*minor_status*/,
gss_name_t * input_name );
OM_uint32
_gss_spnego_require_mechlist_mic (
OM_uint32 */*minor_status*/,
gssspnego_ctx /*ctx*/,
int */*require_mic*/);
OM_uint32
_gss_spnego_seal (
OM_uint32 * /*minor_status*/,
gss_ctx_id_t /*context_handle*/,
int /*conf_req_flag*/,
int /*qop_req*/,
gss_buffer_t /*input_message_buffer*/,
int * /*conf_state*/,
gss_buffer_t output_message_buffer );
OM_uint32
_gss_spnego_set_cred_option (
OM_uint32 */*minor_status*/,
gss_cred_id_t */*cred_handle*/,
const gss_OID /*object*/,
const gss_buffer_t /*value*/);
OM_uint32
_gss_spnego_set_sec_context_option (
OM_uint32 * /*minor_status*/,
gss_ctx_id_t * /*context_handle*/,
const gss_OID /*desired_object*/,
const gss_buffer_t /*value*/);
OM_uint32
_gss_spnego_sign (
OM_uint32 * /*minor_status*/,
gss_ctx_id_t /*context_handle*/,
int /*qop_req*/,
gss_buffer_t /*message_buffer*/,
gss_buffer_t message_token );
OM_uint32
_gss_spnego_unseal (
OM_uint32 * /*minor_status*/,
gss_ctx_id_t /*context_handle*/,
gss_buffer_t /*input_message_buffer*/,
gss_buffer_t /*output_message_buffer*/,
int * /*conf_state*/,
int * qop_state );
OM_uint32
_gss_spnego_unwrap (
OM_uint32 * /*minor_status*/,
const gss_ctx_id_t /*context_handle*/,
const gss_buffer_t /*input_message_buffer*/,
gss_buffer_t /*output_message_buffer*/,
int * /*conf_state*/,
gss_qop_t * qop_state );
OM_uint32
_gss_spnego_verify (
OM_uint32 * /*minor_status*/,
gss_ctx_id_t /*context_handle*/,
gss_buffer_t /*message_buffer*/,
gss_buffer_t /*token_buffer*/,
int * qop_state );
OM_uint32
_gss_spnego_verify_mic (
OM_uint32 * /*minor_status*/,
const gss_ctx_id_t /*context_handle*/,
const gss_buffer_t /*message_buffer*/,
const gss_buffer_t /*token_buffer*/,
gss_qop_t * qop_state );
OM_uint32
_gss_spnego_wrap (
OM_uint32 * /*minor_status*/,
const gss_ctx_id_t /*context_handle*/,
int /*conf_req_flag*/,
gss_qop_t /*qop_req*/,
const gss_buffer_t /*input_message_buffer*/,
int * /*conf_state*/,
gss_buffer_t output_message_buffer );
OM_uint32
_gss_spnego_wrap_size_limit (
OM_uint32 * /*minor_status*/,
const gss_ctx_id_t /*context_handle*/,
int /*conf_req_flag*/,
gss_qop_t /*qop_req*/,
OM_uint32 /*req_output_size*/,
OM_uint32 * max_input_size );
#endif /* __spnego_private_h__ */

View File

@ -1,54 +0,0 @@
/* This is a generated file */
#ifndef __hdb_private_h__
#define __hdb_private_h__
#include <stdarg.h>
krb5_error_code
_hdb_fetch (
krb5_context /*context*/,
HDB */*db*/,
krb5_const_principal /*principal*/,
unsigned /*flags*/,
hdb_entry_ex */*entry*/);
hdb_master_key
_hdb_find_master_key (
uint32_t */*mkvno*/,
hdb_master_key /*mkey*/);
int
_hdb_mkey_decrypt (
krb5_context /*context*/,
hdb_master_key /*key*/,
krb5_key_usage /*usage*/,
void */*ptr*/,
size_t /*size*/,
krb5_data */*res*/);
int
_hdb_mkey_encrypt (
krb5_context /*context*/,
hdb_master_key /*key*/,
krb5_key_usage /*usage*/,
const void */*ptr*/,
size_t /*size*/,
krb5_data */*res*/);
int
_hdb_mkey_version (hdb_master_key /*mkey*/);
krb5_error_code
_hdb_remove (
krb5_context /*context*/,
HDB */*db*/,
krb5_const_principal /*principal*/);
krb5_error_code
_hdb_store (
krb5_context /*context*/,
HDB */*db*/,
unsigned /*flags*/,
hdb_entry_ex */*entry*/);
#endif /* __hdb_private_h__ */

View File

@ -1,400 +0,0 @@
/* This is a generated file */
#ifndef __hdb_protos_h__
#define __hdb_protos_h__
#include <stdarg.h>
#ifdef __cplusplus
extern "C" {
#endif
krb5_error_code
hdb_add_master_key (
krb5_context /*context*/,
krb5_keyblock */*key*/,
hdb_master_key */*inout*/);
krb5_error_code
hdb_check_db_format (
krb5_context /*context*/,
HDB */*db*/);
krb5_error_code
hdb_clear_extension (
krb5_context /*context*/,
hdb_entry */*entry*/,
int /*type*/);
krb5_error_code
hdb_clear_master_key (
krb5_context /*context*/,
HDB */*db*/);
krb5_error_code
hdb_create (
krb5_context /*context*/,
HDB **/*db*/,
const char */*filename*/);
krb5_error_code
hdb_db_create (
krb5_context /*context*/,
HDB **/*db*/,
const char */*filename*/);
const char *
hdb_db_dir (krb5_context /*context*/);
const char *
hdb_dbinfo_get_acl_file (
krb5_context /*context*/,
struct hdb_dbinfo */*dbp*/);
const krb5_config_binding *
hdb_dbinfo_get_binding (
krb5_context /*context*/,
struct hdb_dbinfo */*dbp*/);
const char *
hdb_dbinfo_get_dbname (
krb5_context /*context*/,
struct hdb_dbinfo */*dbp*/);
const char *
hdb_dbinfo_get_label (
krb5_context /*context*/,
struct hdb_dbinfo */*dbp*/);
const char *
hdb_dbinfo_get_log_file (
krb5_context /*context*/,
struct hdb_dbinfo */*dbp*/);
const char *
hdb_dbinfo_get_mkey_file (
krb5_context /*context*/,
struct hdb_dbinfo */*dbp*/);
struct hdb_dbinfo *
hdb_dbinfo_get_next (
struct hdb_dbinfo */*dbp*/,
struct hdb_dbinfo */*dbprevp*/);
const char *
hdb_dbinfo_get_realm (
krb5_context /*context*/,
struct hdb_dbinfo */*dbp*/);
const char *
hdb_default_db (krb5_context /*context*/);
krb5_error_code
hdb_enctype2key (
krb5_context /*context*/,
hdb_entry */*e*/,
krb5_enctype /*enctype*/,
Key **/*key*/);
krb5_error_code
hdb_entry2string (
krb5_context /*context*/,
hdb_entry */*ent*/,
char **/*str*/);
int
hdb_entry2value (
krb5_context /*context*/,
const hdb_entry */*ent*/,
krb5_data */*value*/);
int
hdb_entry_alias2value (
krb5_context /*context*/,
const hdb_entry_alias */*alias*/,
krb5_data */*value*/);
krb5_error_code
hdb_entry_check_mandatory (
krb5_context /*context*/,
const hdb_entry */*ent*/);
int
hdb_entry_clear_password (
krb5_context /*context*/,
hdb_entry */*entry*/);
krb5_error_code
hdb_entry_get_ConstrainedDelegACL (
const hdb_entry */*entry*/,
const HDB_Ext_Constrained_delegation_acl **/*a*/);
krb5_error_code
hdb_entry_get_aliases (
const hdb_entry */*entry*/,
const HDB_Ext_Aliases **/*a*/);
int
hdb_entry_get_password (
krb5_context /*context*/,
HDB */*db*/,
const hdb_entry */*entry*/,
char **/*p*/);
krb5_error_code
hdb_entry_get_pkinit_acl (
const hdb_entry */*entry*/,
const HDB_Ext_PKINIT_acl **/*a*/);
krb5_error_code
hdb_entry_get_pkinit_hash (
const hdb_entry */*entry*/,
const HDB_Ext_PKINIT_hash **/*a*/);
krb5_error_code
hdb_entry_get_pw_change_time (
const hdb_entry */*entry*/,
time_t */*t*/);
int
hdb_entry_set_password (
krb5_context /*context*/,
HDB */*db*/,
hdb_entry */*entry*/,
const char */*p*/);
krb5_error_code
hdb_entry_set_pw_change_time (
krb5_context /*context*/,
hdb_entry */*entry*/,
time_t /*t*/);
HDB_extension *
hdb_find_extension (
const hdb_entry */*entry*/,
int /*type*/);
krb5_error_code
hdb_foreach (
krb5_context /*context*/,
HDB */*db*/,
unsigned /*flags*/,
hdb_foreach_func_t /*func*/,
void */*data*/);
void
hdb_free_dbinfo (
krb5_context /*context*/,
struct hdb_dbinfo **/*dbp*/);
void
hdb_free_entry (
krb5_context /*context*/,
hdb_entry_ex */*ent*/);
void
hdb_free_key (Key */*key*/);
void
hdb_free_keys (
krb5_context /*context*/,
int /*len*/,
Key */*keys*/);
void
hdb_free_master_key (
krb5_context /*context*/,
hdb_master_key /*mkey*/);
krb5_error_code
hdb_generate_key_set (
krb5_context /*context*/,
krb5_principal /*principal*/,
Key **/*ret_key_set*/,
size_t */*nkeyset*/,
int /*no_salt*/);
krb5_error_code
hdb_generate_key_set_password (
krb5_context /*context*/,
krb5_principal /*principal*/,
const char */*password*/,
Key **/*keys*/,
size_t */*num_keys*/);
int
hdb_get_dbinfo (
krb5_context /*context*/,
struct hdb_dbinfo **/*dbp*/);
krb5_error_code
hdb_init_db (
krb5_context /*context*/,
HDB */*db*/);
int
hdb_key2principal (
krb5_context /*context*/,
krb5_data */*key*/,
krb5_principal /*p*/);
krb5_error_code
hdb_ldap_common (
krb5_context /*context*/,
HDB ** /*db*/,
const char */*search_base*/,
const char */*url*/);
krb5_error_code
hdb_ldap_create (
krb5_context /*context*/,
HDB ** /*db*/,
const char */*arg*/);
krb5_error_code
hdb_ldapi_create (
krb5_context /*context*/,
HDB ** /*db*/,
const char */*arg*/);
krb5_error_code
hdb_list_builtin (
krb5_context /*context*/,
char **/*list*/);
krb5_error_code
hdb_lock (
int /*fd*/,
int /*operation*/);
krb5_error_code
hdb_ndbm_create (
krb5_context /*context*/,
HDB **/*db*/,
const char */*filename*/);
krb5_error_code
hdb_next_enctype2key (
krb5_context /*context*/,
const hdb_entry */*e*/,
krb5_enctype /*enctype*/,
Key **/*key*/);
int
hdb_principal2key (
krb5_context /*context*/,
krb5_const_principal /*p*/,
krb5_data */*key*/);
krb5_error_code
hdb_print_entry (
krb5_context /*context*/,
HDB */*db*/,
hdb_entry_ex */*entry*/,
void */*data*/);
krb5_error_code
hdb_process_master_key (
krb5_context /*context*/,
int /*kvno*/,
krb5_keyblock */*key*/,
krb5_enctype /*etype*/,
hdb_master_key */*mkey*/);
krb5_error_code
hdb_read_master_key (
krb5_context /*context*/,
const char */*filename*/,
hdb_master_key */*mkey*/);
krb5_error_code
hdb_replace_extension (
krb5_context /*context*/,
hdb_entry */*entry*/,
const HDB_extension */*ext*/);
krb5_error_code
hdb_seal_key (
krb5_context /*context*/,
HDB */*db*/,
Key */*k*/);
krb5_error_code
hdb_seal_key_mkey (
krb5_context /*context*/,
Key */*k*/,
hdb_master_key /*mkey*/);
krb5_error_code
hdb_seal_keys (
krb5_context /*context*/,
HDB */*db*/,
hdb_entry */*ent*/);
krb5_error_code
hdb_seal_keys_mkey (
krb5_context /*context*/,
hdb_entry */*ent*/,
hdb_master_key /*mkey*/);
krb5_error_code
hdb_set_master_key (
krb5_context /*context*/,
HDB */*db*/,
krb5_keyblock */*key*/);
krb5_error_code
hdb_set_master_keyfile (
krb5_context /*context*/,
HDB */*db*/,
const char */*keyfile*/);
krb5_error_code
hdb_unlock (int /*fd*/);
krb5_error_code
hdb_unseal_key (
krb5_context /*context*/,
HDB */*db*/,
Key */*k*/);
krb5_error_code
hdb_unseal_key_mkey (
krb5_context /*context*/,
Key */*k*/,
hdb_master_key /*mkey*/);
krb5_error_code
hdb_unseal_keys (
krb5_context /*context*/,
HDB */*db*/,
hdb_entry */*ent*/);
krb5_error_code
hdb_unseal_keys_mkey (
krb5_context /*context*/,
hdb_entry */*ent*/,
hdb_master_key /*mkey*/);
int
hdb_value2entry (
krb5_context /*context*/,
krb5_data */*value*/,
hdb_entry */*ent*/);
int
hdb_value2entry_alias (
krb5_context /*context*/,
krb5_data */*value*/,
hdb_entry_alias */*ent*/);
krb5_error_code
hdb_write_master_key (
krb5_context /*context*/,
const char */*filename*/,
hdb_master_key /*mkey*/);
#ifdef __cplusplus
}
#endif
#endif /* __hdb_protos_h__ */

View File

@ -1,548 +0,0 @@
/* This is a generated file */
#ifndef __hx509_private_h__
#define __hx509_private_h__
#include <stdarg.h>
#if !defined(__GNUC__) && !defined(__attribute__)
#define __attribute__(x)
#endif
int
_hx509_AlgorithmIdentifier_cmp (
const AlgorithmIdentifier */*p*/,
const AlgorithmIdentifier */*q*/);
int
_hx509_Certificate_cmp (
const Certificate */*p*/,
const Certificate */*q*/);
int
_hx509_Name_to_string (
const Name */*n*/,
char **/*str*/);
time_t
_hx509_Time2time_t (const Time */*t*/);
void
_hx509_abort (
const char */*fmt*/,
...)
__attribute__ ((noreturn, format (printf, 1, 2)));
int
_hx509_calculate_path (
hx509_context /*context*/,
int /*flags*/,
time_t /*time_now*/,
hx509_certs /*anchors*/,
unsigned int /*max_depth*/,
hx509_cert /*cert*/,
hx509_certs /*pool*/,
hx509_path */*path*/);
int
_hx509_cert_assign_key (
hx509_cert /*cert*/,
hx509_private_key /*private_key*/);
int
_hx509_cert_get_eku (
hx509_context /*context*/,
hx509_cert /*cert*/,
ExtKeyUsage */*e*/);
int
_hx509_cert_get_keyusage (
hx509_context /*context*/,
hx509_cert /*c*/,
KeyUsage */*ku*/);
int
_hx509_cert_get_version (const Certificate */*t*/);
int
_hx509_cert_is_parent_cmp (
const Certificate */*subject*/,
const Certificate */*issuer*/,
int /*allow_self_signed*/);
int
_hx509_cert_private_decrypt (
hx509_context /*context*/,
const heim_octet_string */*ciphertext*/,
const heim_oid */*encryption_oid*/,
hx509_cert /*p*/,
heim_octet_string */*cleartext*/);
hx509_private_key
_hx509_cert_private_key (hx509_cert /*p*/);
int
_hx509_cert_private_key_exportable (hx509_cert /*p*/);
int
_hx509_cert_public_encrypt (
hx509_context /*context*/,
const heim_octet_string */*cleartext*/,
const hx509_cert /*p*/,
heim_oid */*encryption_oid*/,
heim_octet_string */*ciphertext*/);
void
_hx509_cert_set_release (
hx509_cert /*cert*/,
_hx509_cert_release_func /*release*/,
void */*ctx*/);
int
_hx509_cert_to_env (
hx509_context /*context*/,
hx509_cert /*cert*/,
hx509_env */*env*/);
int
_hx509_certs_keys_add (
hx509_context /*context*/,
hx509_certs /*certs*/,
hx509_private_key /*key*/);
void
_hx509_certs_keys_free (
hx509_context /*context*/,
hx509_private_key */*keys*/);
int
_hx509_certs_keys_get (
hx509_context /*context*/,
hx509_certs /*certs*/,
hx509_private_key **/*keys*/);
hx509_certs
_hx509_certs_ref (hx509_certs /*certs*/);
int
_hx509_check_key_usage (
hx509_context /*context*/,
hx509_cert /*cert*/,
unsigned /*flags*/,
int /*req_present*/);
int
_hx509_collector_alloc (
hx509_context /*context*/,
hx509_lock /*lock*/,
struct hx509_collector **/*collector*/);
int
_hx509_collector_certs_add (
hx509_context /*context*/,
struct hx509_collector */*c*/,
hx509_cert /*cert*/);
int
_hx509_collector_collect_certs (
hx509_context /*context*/,
struct hx509_collector */*c*/,
hx509_certs */*ret_certs*/);
int
_hx509_collector_collect_private_keys (
hx509_context /*context*/,
struct hx509_collector */*c*/,
hx509_private_key **/*keys*/);
void
_hx509_collector_free (struct hx509_collector */*c*/);
hx509_lock
_hx509_collector_get_lock (struct hx509_collector */*c*/);
int
_hx509_collector_private_key_add (
hx509_context /*context*/,
struct hx509_collector */*c*/,
const AlgorithmIdentifier */*alg*/,
hx509_private_key /*private_key*/,
const heim_octet_string */*key_data*/,
const heim_octet_string */*localKeyId*/);
int
_hx509_create_signature (
hx509_context /*context*/,
const hx509_private_key /*signer*/,
const AlgorithmIdentifier */*alg*/,
const heim_octet_string */*data*/,
AlgorithmIdentifier */*signatureAlgorithm*/,
heim_octet_string */*sig*/);
int
_hx509_create_signature_bitstring (
hx509_context /*context*/,
const hx509_private_key /*signer*/,
const AlgorithmIdentifier */*alg*/,
const heim_octet_string */*data*/,
AlgorithmIdentifier */*signatureAlgorithm*/,
heim_bit_string */*sig*/);
int
_hx509_expr_eval (
hx509_context /*context*/,
hx509_env /*env*/,
struct hx_expr */*expr*/);
void
_hx509_expr_free (struct hx_expr */*expr*/);
struct hx_expr *
_hx509_expr_parse (const char */*buf*/);
int
_hx509_find_extension_subject_key_id (
const Certificate */*issuer*/,
SubjectKeyIdentifier */*si*/);
int
_hx509_generate_private_key (
hx509_context /*context*/,
struct hx509_generate_private_context */*ctx*/,
hx509_private_key */*private_key*/);
int
_hx509_generate_private_key_bits (
hx509_context /*context*/,
struct hx509_generate_private_context */*ctx*/,
unsigned long /*bits*/);
void
_hx509_generate_private_key_free (struct hx509_generate_private_context **/*ctx*/);
int
_hx509_generate_private_key_init (
hx509_context /*context*/,
const heim_oid */*oid*/,
struct hx509_generate_private_context **/*ctx*/);
int
_hx509_generate_private_key_is_ca (
hx509_context /*context*/,
struct hx509_generate_private_context */*ctx*/);
Certificate *
_hx509_get_cert (hx509_cert /*cert*/);
void
_hx509_ks_dir_register (hx509_context /*context*/);
void
_hx509_ks_file_register (hx509_context /*context*/);
void
_hx509_ks_keychain_register (hx509_context /*context*/);
void
_hx509_ks_mem_register (hx509_context /*context*/);
void
_hx509_ks_null_register (hx509_context /*context*/);
void
_hx509_ks_pkcs11_register (hx509_context /*context*/);
void
_hx509_ks_pkcs12_register (hx509_context /*context*/);
void
_hx509_ks_register (
hx509_context /*context*/,
struct hx509_keyset_ops */*ops*/);
int
_hx509_lock_find_cert (
hx509_lock /*lock*/,
const hx509_query */*q*/,
hx509_cert */*c*/);
const struct _hx509_password *
_hx509_lock_get_passwords (hx509_lock /*lock*/);
hx509_certs
_hx509_lock_unlock_certs (hx509_lock /*lock*/);
struct hx_expr *
_hx509_make_expr (
enum hx_expr_op /*op*/,
void */*arg1*/,
void */*arg2*/);
int
_hx509_map_file_os (
const char */*fn*/,
heim_octet_string */*os*/);
int
_hx509_match_keys (
hx509_cert /*c*/,
hx509_private_key /*private_key*/);
int
_hx509_name_cmp (
const Name */*n1*/,
const Name */*n2*/,
int */*c*/);
int
_hx509_name_ds_cmp (
const DirectoryString */*ds1*/,
const DirectoryString */*ds2*/,
int */*diff*/);
int
_hx509_name_from_Name (
const Name */*n*/,
hx509_name */*name*/);
int
_hx509_name_modify (
hx509_context /*context*/,
Name */*name*/,
int /*append*/,
const heim_oid */*oid*/,
const char */*str*/);
int
_hx509_parse_private_key (
hx509_context /*context*/,
const heim_oid */*key_oid*/,
const void */*data*/,
size_t /*len*/,
hx509_private_key */*private_key*/);
int
_hx509_path_append (
hx509_context /*context*/,
hx509_path */*path*/,
hx509_cert /*cert*/);
void
_hx509_path_free (hx509_path */*path*/);
int
_hx509_pbe_decrypt (
hx509_context /*context*/,
hx509_lock /*lock*/,
const AlgorithmIdentifier */*ai*/,
const heim_octet_string */*econtent*/,
heim_octet_string */*content*/);
int
_hx509_pbe_encrypt (
hx509_context /*context*/,
hx509_lock /*lock*/,
const AlgorithmIdentifier */*ai*/,
const heim_octet_string */*content*/,
heim_octet_string */*econtent*/);
void
_hx509_pi_printf (
int (*/*func*/)(void *, const char *),
void */*ctx*/,
const char */*fmt*/,
...);
int
_hx509_private_key2SPKI (
hx509_context /*context*/,
hx509_private_key /*private_key*/,
SubjectPublicKeyInfo */*spki*/);
void
_hx509_private_key_assign_rsa (
hx509_private_key /*key*/,
void */*ptr*/);
int
_hx509_private_key_export (
hx509_context /*context*/,
const hx509_private_key /*key*/,
heim_octet_string */*data*/);
int
_hx509_private_key_exportable (hx509_private_key /*key*/);
int
_hx509_private_key_free (hx509_private_key */*key*/);
BIGNUM *
_hx509_private_key_get_internal (
hx509_context /*context*/,
hx509_private_key /*key*/,
const char */*type*/);
int
_hx509_private_key_init (
hx509_private_key */*key*/,
hx509_private_key_ops */*ops*/,
void */*keydata*/);
int
_hx509_private_key_oid (
hx509_context /*context*/,
const hx509_private_key /*key*/,
heim_oid */*data*/);
int
_hx509_private_key_private_decrypt (
hx509_context /*context*/,
const heim_octet_string */*ciphertext*/,
const heim_oid */*encryption_oid*/,
hx509_private_key /*p*/,
heim_octet_string */*cleartext*/);
hx509_private_key
_hx509_private_key_ref (hx509_private_key /*key*/);
const char *
_hx509_private_pem_name (hx509_private_key /*key*/);
int
_hx509_public_encrypt (
hx509_context /*context*/,
const heim_octet_string */*cleartext*/,
const Certificate */*cert*/,
heim_oid */*encryption_oid*/,
heim_octet_string */*ciphertext*/);
void
_hx509_query_clear (hx509_query */*q*/);
int
_hx509_query_match_cert (
hx509_context /*context*/,
const hx509_query */*q*/,
hx509_cert /*cert*/);
void
_hx509_query_statistic (
hx509_context /*context*/,
int /*type*/,
const hx509_query */*q*/);
int
_hx509_request_add_dns_name (
hx509_context /*context*/,
hx509_request /*req*/,
const char */*hostname*/);
int
_hx509_request_add_eku (
hx509_context /*context*/,
hx509_request /*req*/,
const heim_oid */*oid*/);
int
_hx509_request_add_email (
hx509_context /*context*/,
hx509_request /*req*/,
const char */*email*/);
void
_hx509_request_free (hx509_request */*req*/);
int
_hx509_request_get_SubjectPublicKeyInfo (
hx509_context /*context*/,
hx509_request /*req*/,
SubjectPublicKeyInfo */*key*/);
int
_hx509_request_get_name (
hx509_context /*context*/,
hx509_request /*req*/,
hx509_name */*name*/);
int
_hx509_request_init (
hx509_context /*context*/,
hx509_request */*req*/);
int
_hx509_request_parse (
hx509_context /*context*/,
const char */*path*/,
hx509_request */*req*/);
int
_hx509_request_print (
hx509_context /*context*/,
hx509_request /*req*/,
FILE */*f*/);
int
_hx509_request_set_SubjectPublicKeyInfo (
hx509_context /*context*/,
hx509_request /*req*/,
const SubjectPublicKeyInfo */*key*/);
int
_hx509_request_set_name (
hx509_context /*context*/,
hx509_request /*req*/,
hx509_name /*name*/);
int
_hx509_request_to_pkcs10 (
hx509_context /*context*/,
const hx509_request /*req*/,
const hx509_private_key /*signer*/,
heim_octet_string */*request*/);
hx509_revoke_ctx
_hx509_revoke_ref (hx509_revoke_ctx /*ctx*/);
void
_hx509_sel_yyerror (char */*s*/);
int
_hx509_set_cert_attribute (
hx509_context /*context*/,
hx509_cert /*cert*/,
const heim_oid */*oid*/,
const heim_octet_string */*attr*/);
void
_hx509_unmap_file_os (heim_octet_string */*os*/);
int
_hx509_unparse_Name (
const Name */*aname*/,
char **/*str*/);
time_t
_hx509_verify_get_time (hx509_verify_ctx /*ctx*/);
int
_hx509_verify_signature (
hx509_context /*context*/,
const Certificate */*signer*/,
const AlgorithmIdentifier */*alg*/,
const heim_octet_string */*data*/,
const heim_octet_string */*sig*/);
int
_hx509_verify_signature_bitstring (
hx509_context /*context*/,
const Certificate */*signer*/,
const AlgorithmIdentifier */*alg*/,
const heim_octet_string */*data*/,
const heim_bit_string */*sig*/);
int
_hx509_write_file (
const char */*fn*/,
const void */*data*/,
size_t /*length*/);
#endif /* __hx509_private_h__ */

File diff suppressed because it is too large Load Diff

View File

@ -1,455 +0,0 @@
/* This is a generated file */
#ifndef __krb5_private_h__
#define __krb5_private_h__
#include <stdarg.h>
void KRB5_LIB_FUNCTION
_krb5_aes_cts_encrypt (
const unsigned char */*in*/,
unsigned char */*out*/,
size_t /*len*/,
const AES_KEY */*key*/,
unsigned char */*ivec*/,
const int /*encryptp*/);
krb5_error_code
_krb5_cc_allocate (
krb5_context /*context*/,
const krb5_cc_ops */*ops*/,
krb5_ccache */*id*/);
void
_krb5_crc_init_table (void);
uint32_t
_krb5_crc_update (
const char */*p*/,
size_t /*len*/,
uint32_t /*res*/);
krb5_error_code
_krb5_dh_group_ok (
krb5_context /*context*/,
unsigned long /*bits*/,
heim_integer */*p*/,
heim_integer */*g*/,
heim_integer */*q*/,
struct krb5_dh_moduli **/*moduli*/,
char **/*name*/);
krb5_error_code
_krb5_expand_default_cc_name (
krb5_context /*context*/,
const char */*str*/,
char **/*res*/);
int
_krb5_extract_ticket (
krb5_context /*context*/,
krb5_kdc_rep */*rep*/,
krb5_creds */*creds*/,
krb5_keyblock */*key*/,
krb5_const_pointer /*keyseed*/,
krb5_key_usage /*key_usage*/,
krb5_addresses */*addrs*/,
unsigned /*nonce*/,
unsigned /*flags*/,
krb5_decrypt_proc /*decrypt_proc*/,
krb5_const_pointer /*decryptarg*/);
void
_krb5_free_krbhst_info (krb5_krbhst_info */*hi*/);
void
_krb5_free_moduli (struct krb5_dh_moduli **/*moduli*/);
krb5_error_code
_krb5_get_default_principal_local (
krb5_context /*context*/,
krb5_principal */*princ*/);
krb5_error_code KRB5_LIB_FUNCTION
_krb5_get_host_realm_int (
krb5_context /*context*/,
const char */*host*/,
krb5_boolean /*use_dns*/,
krb5_realm **/*realms*/);
krb5_error_code
_krb5_get_init_creds_opt_copy (
krb5_context /*context*/,
const krb5_get_init_creds_opt */*in*/,
krb5_get_init_creds_opt **/*out*/);
void KRB5_LIB_FUNCTION
_krb5_get_init_creds_opt_free_krb5_error (krb5_get_init_creds_opt */*opt*/);
void KRB5_LIB_FUNCTION
_krb5_get_init_creds_opt_free_pkinit (krb5_get_init_creds_opt */*opt*/);
void KRB5_LIB_FUNCTION
_krb5_get_init_creds_opt_set_krb5_error (
krb5_context /*context*/,
krb5_get_init_creds_opt */*opt*/,
const KRB_ERROR */*error*/);
krb5_ssize_t KRB5_LIB_FUNCTION
_krb5_get_int (
void */*buffer*/,
unsigned long */*value*/,
size_t /*size*/);
krb5_error_code
_krb5_get_krbtgt (
krb5_context /*context*/,
krb5_ccache /*id*/,
krb5_realm /*realm*/,
krb5_creds **/*cred*/);
krb5_error_code
_krb5_kcm_chmod (
krb5_context /*context*/,
krb5_ccache /*id*/,
uint16_t /*mode*/);
krb5_error_code
_krb5_kcm_chown (
krb5_context /*context*/,
krb5_ccache /*id*/,
uint32_t /*uid*/,
uint32_t /*gid*/);
krb5_error_code
_krb5_kcm_get_initial_ticket (
krb5_context /*context*/,
krb5_ccache /*id*/,
krb5_principal /*server*/,
krb5_keyblock */*key*/);
krb5_error_code
_krb5_kcm_get_ticket (
krb5_context /*context*/,
krb5_ccache /*id*/,
krb5_kdc_flags /*flags*/,
krb5_enctype /*enctype*/,
krb5_principal /*server*/);
krb5_boolean
_krb5_kcm_is_running (krb5_context /*context*/);
krb5_error_code
_krb5_kcm_noop (
krb5_context /*context*/,
krb5_ccache /*id*/);
krb5_error_code
_krb5_kdc_retry (
krb5_context /*context*/,
krb5_sendto_ctx /*ctx*/,
void */*data*/,
const krb5_data */*reply*/,
int */*action*/);
krb5_error_code KRB5_LIB_FUNCTION
_krb5_krb_cr_err_reply (
krb5_context /*context*/,
const char */*name*/,
const char */*inst*/,
const char */*realm*/,
uint32_t /*time_ws*/,
uint32_t /*e*/,
const char */*e_string*/,
krb5_data */*data*/);
krb5_error_code KRB5_LIB_FUNCTION
_krb5_krb_create_auth_reply (
krb5_context /*context*/,
const char */*pname*/,
const char */*pinst*/,
const char */*prealm*/,
int32_t /*time_ws*/,
int /*n*/,
uint32_t /*x_date*/,
unsigned char /*kvno*/,
const krb5_data */*cipher*/,
krb5_data */*data*/);
krb5_error_code KRB5_LIB_FUNCTION
_krb5_krb_create_ciph (
krb5_context /*context*/,
const krb5_keyblock */*session*/,
const char */*service*/,
const char */*instance*/,
const char */*realm*/,
uint32_t /*life*/,
unsigned char /*kvno*/,
const krb5_data */*ticket*/,
uint32_t /*kdc_time*/,
const krb5_keyblock */*key*/,
krb5_data */*enc_data*/);
krb5_error_code KRB5_LIB_FUNCTION
_krb5_krb_create_ticket (
krb5_context /*context*/,
unsigned char /*flags*/,
const char */*pname*/,
const char */*pinstance*/,
const char */*prealm*/,
int32_t /*paddress*/,
const krb5_keyblock */*session*/,
int16_t /*life*/,
int32_t /*life_sec*/,
const char */*sname*/,
const char */*sinstance*/,
const krb5_keyblock */*key*/,
krb5_data */*enc_data*/);
krb5_error_code KRB5_LIB_FUNCTION
_krb5_krb_decomp_ticket (
krb5_context /*context*/,
const krb5_data */*enc_ticket*/,
const krb5_keyblock */*key*/,
const char */*local_realm*/,
char **/*sname*/,
char **/*sinstance*/,
struct _krb5_krb_auth_data */*ad*/);
krb5_error_code KRB5_LIB_FUNCTION
_krb5_krb_dest_tkt (
krb5_context /*context*/,
const char */*tkfile*/);
void KRB5_LIB_FUNCTION
_krb5_krb_free_auth_data (
krb5_context /*context*/,
struct _krb5_krb_auth_data */*ad*/);
time_t KRB5_LIB_FUNCTION
_krb5_krb_life_to_time (
int /*start*/,
int /*life_*/);
krb5_error_code KRB5_LIB_FUNCTION
_krb5_krb_rd_req (
krb5_context /*context*/,
krb5_data */*authent*/,
const char */*service*/,
const char */*instance*/,
const char */*local_realm*/,
int32_t /*from_addr*/,
const krb5_keyblock */*key*/,
struct _krb5_krb_auth_data */*ad*/);
krb5_error_code KRB5_LIB_FUNCTION
_krb5_krb_tf_setup (
krb5_context /*context*/,
struct credentials */*v4creds*/,
const char */*tkfile*/,
int /*append*/);
int KRB5_LIB_FUNCTION
_krb5_krb_time_to_life (
time_t /*start*/,
time_t /*end*/);
krb5_error_code
_krb5_krbhost_info_move (
krb5_context /*context*/,
krb5_krbhst_info */*from*/,
krb5_krbhst_info **/*to*/);
krb5_error_code
_krb5_mk_req_internal (
krb5_context /*context*/,
krb5_auth_context */*auth_context*/,
const krb5_flags /*ap_req_options*/,
krb5_data */*in_data*/,
krb5_creds */*in_creds*/,
krb5_data */*outbuf*/,
krb5_key_usage /*checksum_usage*/,
krb5_key_usage /*encrypt_usage*/);
krb5_error_code KRB5_LIB_FUNCTION
_krb5_n_fold (
const void */*str*/,
size_t /*len*/,
void */*key*/,
size_t /*size*/);
krb5_error_code
_krb5_pac_sign (
krb5_context /*context*/,
krb5_pac /*p*/,
time_t /*authtime*/,
krb5_principal /*principal*/,
const krb5_keyblock */*server_key*/,
const krb5_keyblock */*priv_key*/,
krb5_data */*data*/);
krb5_error_code
_krb5_parse_moduli (
krb5_context /*context*/,
const char */*file*/,
struct krb5_dh_moduli ***/*moduli*/);
krb5_error_code
_krb5_parse_moduli_line (
krb5_context /*context*/,
const char */*file*/,
int /*lineno*/,
char */*p*/,
struct krb5_dh_moduli **/*m*/);
void KRB5_LIB_FUNCTION
_krb5_pk_allow_proxy_certificate (
struct krb5_pk_identity */*id*/,
int /*boolean*/);
void KRB5_LIB_FUNCTION
_krb5_pk_cert_free (struct krb5_pk_cert */*cert*/);
krb5_error_code
_krb5_pk_kdf (
krb5_context /*context*/,
const struct AlgorithmIdentifier */*ai*/,
const void */*dhdata*/,
size_t /*dhsize*/,
krb5_const_principal /*client*/,
krb5_const_principal /*server*/,
krb5_enctype /*enctype*/,
const krb5_data */*as_req*/,
const krb5_data */*pk_as_rep*/,
const Ticket */*ticket*/,
krb5_keyblock */*key*/);
krb5_error_code KRB5_LIB_FUNCTION
_krb5_pk_load_id (
krb5_context /*context*/,
struct krb5_pk_identity **/*ret_id*/,
const char */*user_id*/,
const char */*anchor_id*/,
char * const */*chain_list*/,
char * const */*revoke_list*/,
krb5_prompter_fct /*prompter*/,
void */*prompter_data*/,
char */*password*/);
krb5_error_code KRB5_LIB_FUNCTION
_krb5_pk_mk_ContentInfo (
krb5_context /*context*/,
const krb5_data */*buf*/,
const heim_oid */*oid*/,
struct ContentInfo */*content_info*/);
krb5_error_code KRB5_LIB_FUNCTION
_krb5_pk_mk_padata (
krb5_context /*context*/,
void */*c*/,
const KDC_REQ_BODY */*req_body*/,
unsigned /*nonce*/,
METHOD_DATA */*md*/);
krb5_error_code
_krb5_pk_octetstring2key (
krb5_context /*context*/,
krb5_enctype /*type*/,
const void */*dhdata*/,
size_t /*dhsize*/,
const heim_octet_string */*c_n*/,
const heim_octet_string */*k_n*/,
krb5_keyblock */*key*/);
krb5_error_code KRB5_LIB_FUNCTION
_krb5_pk_rd_pa_reply (
krb5_context /*context*/,
const char */*realm*/,
void */*c*/,
krb5_enctype /*etype*/,
const krb5_krbhst_info */*hi*/,
unsigned /*nonce*/,
const krb5_data */*req_buffer*/,
PA_DATA */*pa*/,
krb5_keyblock **/*key*/);
krb5_error_code KRB5_LIB_FUNCTION
_krb5_pk_verify_sign (
krb5_context /*context*/,
const void */*data*/,
size_t /*length*/,
struct krb5_pk_identity */*id*/,
heim_oid */*contentType*/,
krb5_data */*content*/,
struct krb5_pk_cert **/*signer*/);
krb5_error_code
_krb5_plugin_find (
krb5_context /*context*/,
enum krb5_plugin_type /*type*/,
const char */*name*/,
struct krb5_plugin **/*list*/);
void
_krb5_plugin_free (struct krb5_plugin */*list*/);
struct krb5_plugin *
_krb5_plugin_get_next (struct krb5_plugin */*p*/);
void *
_krb5_plugin_get_symbol (struct krb5_plugin */*p*/);
krb5_error_code KRB5_LIB_FUNCTION
_krb5_principal2principalname (
PrincipalName */*p*/,
const krb5_principal /*from*/);
krb5_boolean KRB5_LIB_FUNCTION
_krb5_principal_compare_PrincipalName (
krb5_context /*context*/,
krb5_const_principal /*princ1*/,
PrincipalName */*princ2*/);
krb5_error_code KRB5_LIB_FUNCTION
_krb5_principalname2krb5_principal (
krb5_context /*context*/,
krb5_principal */*principal*/,
const PrincipalName /*from*/,
const Realm /*realm*/);
krb5_ssize_t KRB5_LIB_FUNCTION
_krb5_put_int (
void */*buffer*/,
unsigned long /*value*/,
size_t /*size*/);
krb5_error_code KRB5_LIB_FUNCTION
_krb5_rd_req_out_ctx_alloc (
krb5_context /*context*/,
krb5_rd_req_out_ctx */*ctx*/);
krb5_error_code KRB5_LIB_FUNCTION
_krb5_s4u2self_to_checksumdata (
krb5_context /*context*/,
const PA_S4U2Self */*self*/,
krb5_data */*data*/);
int
_krb5_send_and_recv_tcp (
int /*fd*/,
time_t /*tmout*/,
const krb5_data */*req*/,
krb5_data */*rep*/);
int
_krb5_xlock (
krb5_context /*context*/,
int /*fd*/,
krb5_boolean /*exclusive*/,
const char */*filename*/);
int
_krb5_xunlock (
krb5_context /*context*/,
int /*fd*/);
#endif /* __krb5_private_h__ */

File diff suppressed because it is too large Load Diff

View File

@ -1,131 +0,0 @@
/* This is a generated file */
#ifndef __heimntlm_protos_h__
#define __heimntlm_protos_h__
#include <stdarg.h>
#ifdef __cplusplus
extern "C" {
#endif
int
heim_ntlm_build_ntlm1_master (
void */*key*/,
size_t /*len*/,
struct ntlm_buf */*session*/,
struct ntlm_buf */*master*/);
int
heim_ntlm_calculate_ntlm1 (
void */*key*/,
size_t /*len*/,
unsigned char challange[8],
struct ntlm_buf */*answer*/);
int
heim_ntlm_calculate_ntlm2 (
const void */*key*/,
size_t /*len*/,
const char */*username*/,
const char */*target*/,
const unsigned char serverchallange[8],
const struct ntlm_buf */*infotarget*/,
unsigned char ntlmv2[16],
struct ntlm_buf */*answer*/);
int
heim_ntlm_calculate_ntlm2_sess (
const unsigned char clnt_nonce[8],
const unsigned char svr_chal[8],
const unsigned char ntlm_hash[16],
struct ntlm_buf */*lm*/,
struct ntlm_buf */*ntlm*/);
int
heim_ntlm_decode_targetinfo (
const struct ntlm_buf */*data*/,
int /*ucs2*/,
struct ntlm_targetinfo */*ti*/);
int
heim_ntlm_decode_type1 (
const struct ntlm_buf */*buf*/,
struct ntlm_type1 */*data*/);
int
heim_ntlm_decode_type2 (
const struct ntlm_buf */*buf*/,
struct ntlm_type2 */*type2*/);
int
heim_ntlm_decode_type3 (
const struct ntlm_buf */*buf*/,
int /*ucs2*/,
struct ntlm_type3 */*type3*/);
int
heim_ntlm_encode_targetinfo (
const struct ntlm_targetinfo */*ti*/,
int /*ucs2*/,
struct ntlm_buf */*data*/);
int
heim_ntlm_encode_type1 (
const struct ntlm_type1 */*type1*/,
struct ntlm_buf */*data*/);
int
heim_ntlm_encode_type2 (
const struct ntlm_type2 */*type2*/,
struct ntlm_buf */*data*/);
int
heim_ntlm_encode_type3 (
const struct ntlm_type3 */*type3*/,
struct ntlm_buf */*data*/);
void
heim_ntlm_free_buf (struct ntlm_buf */*p*/);
void
heim_ntlm_free_targetinfo (struct ntlm_targetinfo */*ti*/);
void
heim_ntlm_free_type1 (struct ntlm_type1 */*data*/);
void
heim_ntlm_free_type2 (struct ntlm_type2 */*data*/);
void
heim_ntlm_free_type3 (struct ntlm_type3 */*data*/);
int
heim_ntlm_nt_key (
const char */*password*/,
struct ntlm_buf */*key*/);
void
heim_ntlm_ntlmv2_key (
const void */*key*/,
size_t /*len*/,
const char */*username*/,
const char */*target*/,
unsigned char ntlmv2[16]);
int
heim_ntlm_verify_ntlm2 (
const void */*key*/,
size_t /*len*/,
const char */*username*/,
const char */*target*/,
time_t /*now*/,
const unsigned char serverchallange[8],
const struct ntlm_buf */*answer*/,
struct ntlm_buf */*infotarget*/,
unsigned char ntlmv2[16]);
#ifdef __cplusplus
}
#endif
#endif /* __heimntlm_protos_h__ */

View File

@ -2,6 +2,23 @@ heimdalbuildsrcdir = $(heimdalsrcdir)/../heimdal_build
HEIMDAL_VPATH = $(heimdalbuildsrcdir):$(heimdalsrcdir)/lib/asn1:$(heimdalsrcdir)/lib/krb5:$(heimdalsrcdir)/lib/gssapi:$(heimdalsrcdir)/lib/hdb:$(heimdalsrcdir)/lib/roken:$(heimdalsrcdir)/lib/des
# Create a prototype header
# Arguments: header file, arguments, c files, deps
define heimdal_proto_header_template
proto:: $(1)
clean:: ;
rm -f $(1)
$(4):: $(1)
$(1): $(3) ;
@echo "Creating $$@"
@$$(PERL) $$(heimdalsrcdir)/cf/make-proto.pl $(2) $(1) $(3)
endef
#######################
# Start SUBSYSTEM HEIMDAL_KDC
[SUBSYSTEM::HEIMDAL_KDC]
@ -27,6 +44,20 @@ HEIMDAL_KDC_OBJ_FILES = \
$(heimdalsrcdir)/kdc/windc.o \
$(heimdalsrcdir)/kdc/kx509.o
$(eval $(call heimdal_proto_header_template, \
$(heimdalsrcdir)/kdc/kdc-protos.h, \
-q -P comment -o, \
$(HEIMDAL_KDC_OBJ_FILES:.o=.c), \
$(HEIMDAL_KDC_OBJ_FILES) $(HEIMDAL_KDC_OBJ_FILES:.o=.d) \
))
$(eval $(call heimdal_proto_header_template, \
$(heimdalsrcdir)/kdc/kdc-private.h, \
-q -P comment -p, \
$(HEIMDAL_KDC_OBJ_FILES:.o=.c), \
$(HEIMDAL_KDC_OBJ_FILES) $(HEIMDAL_KDC_OBJ_FILES:.o=.d) \
))
[SUBSYSTEM::HEIMDAL_NTLM]
CFLAGS = -I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/ntlm
PRIVATE_DEPENDENCIES = HEIMDAL_ROKEN HEIMDAL_HCRYPTO HEIMDAL_KRB5
@ -34,6 +65,13 @@ PRIVATE_DEPENDENCIES = HEIMDAL_ROKEN HEIMDAL_HCRYPTO HEIMDAL_KRB5
HEIMDAL_NTLM_OBJ_FILES = \
$(heimdalsrcdir)/lib/ntlm/ntlm.o
$(eval $(call heimdal_proto_header_template, \
$(heimdalsrcdir)/lib/ntlm/heimntlm-protos.h, \
-q -P comment -o, \
$(HEIMDAL_NTLM_OBJ_FILES:.o=.c), \
$(HEIMDAL_NTLM_OBJ_FILES) $(HEIMDAL_NTLM_OBJ_FILES:.o=.d) \
))
[SUBSYSTEM::HEIMDAL_HDB_KEYS]
CFLAGS = -I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/hdb
PRIVATE_DEPENDENCIES = HEIMDAL_ROKEN HEIMDAL_HCRYPTO HEIMDAL_KRB5 \
@ -59,6 +97,20 @@ HEIMDAL_HDB_OBJ_FILES = \
$(heimdalsrcdir)/lib/hdb/ndbm.o \
$(heimdalsrcdir)/lib/hdb/hdb_err.o
$(eval $(call heimdal_proto_header_template, \
$(heimdalsrcdir)/lib/hdb/hdb-protos.h, \
-q -P comment -o, \
$(HEIMDAL_HDB_OBJ_FILES:.o=.c), \
$(HEIMDAL_HDB_OBJ_FILES) $(HEIMDAL_HDB_OBJ_FILES:.o=.d) \
))
$(eval $(call heimdal_proto_header_template, \
$(heimdalsrcdir)/lib/hdb/hdb-private.h, \
-q -P comment -p, \
$(HEIMDAL_HDB_OBJ_FILES:.o=.c), \
$(HEIMDAL_HDB_OBJ_FILES) $(HEIMDAL_HDB_OBJ_FILES:.o=.d) \
))
#######################
# Start SUBSYSTEM HEIMDAL_GSSAPI
[SUBSYSTEM::HEIMDAL_GSSAPI]
@ -75,6 +127,13 @@ HEIMDAL_GSSAPI_SPNEGO_OBJ_FILES = \
$(heimdalsrcdir)/lib/gssapi/spnego/cred_stubs.o \
$(heimdalsrcdir)/lib/gssapi/spnego/accept_sec_context.o \
$(eval $(call heimdal_proto_header_template, \
$(heimdalsrcdir)/lib/gssapi/spnego/spnego-private.h, \
-q -P comment -p, \
$(HEIMDAL_GSSAPI_SPNEGO_OBJ_FILES:.o=.c), \
$(HEIMDAL_GSSAPI_SPNEGO_OBJ_FILES) $(HEIMDAL_GSSAPI_SPNEGO_OBJ_FILES:.o=.d) \
))
HEIMDAL_GSSAPI_KRB5_OBJ_FILES = \
$(heimdalsrcdir)/lib/gssapi/krb5/copy_ccache.o \
$(heimdalsrcdir)/lib/gssapi/krb5/delete_sec_context.o \
@ -122,6 +181,13 @@ HEIMDAL_GSSAPI_KRB5_OBJ_FILES = \
$(heimdalsrcdir)/lib/gssapi/krb5/process_context_token.o \
$(heimdalsrcdir)/lib/gssapi/krb5/prf.o
$(eval $(call heimdal_proto_header_template, \
$(heimdalsrcdir)/lib/gssapi/krb5/gsskrb5-private.h, \
-q -P comment -p, \
$(HEIMDAL_GSSAPI_KRB5_OBJ_FILES:.o=.c), \
$(HEIMDAL_GSSAPI_KRB5_OBJ_FILES) $(HEIMDAL_GSSAPI_KRB5_OBJ_FILES:.o=.d) \
))
HEIMDAL_GSSAPI_OBJ_FILES = \
$(HEIMDAL_GSSAPI_SPNEGO_OBJ_FILES) \
$(HEIMDAL_GSSAPI_KRB5_OBJ_FILES) \
@ -282,6 +348,20 @@ HEIMDAL_KRB5_OBJ_FILES = \
$(heimdalsrcdir)/lib/krb5/krb_err.o \
$(heimdalbuildsrcdir)/krb5-glue.o
$(eval $(call heimdal_proto_header_template, \
$(heimdalsrcdir)/lib/krb5/krb5-protos.h, \
-E KRB5_LIB -q -P comment -o, \
$(HEIMDAL_KRB5_OBJ_FILES:.o=.c), \
$(HEIMDAL_KRB5_OBJ_FILES) $(HEIMDAL_KRB5_OBJ_FILES:.o=.d) \
))
$(eval $(call heimdal_proto_header_template, \
$(heimdalsrcdir)/lib/krb5/krb5-private.h, \
-q -P comment -p, \
$(HEIMDAL_KRB5_OBJ_FILES:.o=.c), \
$(HEIMDAL_KRB5_OBJ_FILES) $(HEIMDAL_KRB5_OBJ_FILES:.o=.d) \
))
#######################
# Start SUBSYSTEM HEIMDAL_HEIM_ASN1
[SUBSYSTEM::HEIMDAL_HEIM_ASN1]
@ -402,6 +482,20 @@ HEIMDAL_HX509_OBJG_FILES = \
HEIMDAL_HX509_OBJ_FILES = $(HEIMDAL_HX509_OBJH_FILES) $(HEIMDAL_HX509_OBJG_FILES)
$(eval $(call heimdal_proto_header_template, \
$(heimdalsrcdir)/lib/hx509/hx509-protos.h, \
-R '^(_|^C)' -E HX509_LIB -q -P comment -o, \
$(HEIMDAL_HX509_OBJH_FILES:.o=.c), \
$(HEIMDAL_HX509_OBJH_FILES) $(HEIMDAL_HX509_OBJH_FILES:.o=.d) \
))
$(eval $(call heimdal_proto_header_template, \
$(heimdalsrcdir)/lib/hx509/hx509-private.h, \
-q -P comment -p, \
$(HEIMDAL_HX509_OBJH_FILES:.o=.c), \
$(HEIMDAL_HX509_OBJH_FILES) $(HEIMDAL_HX509_OBJH_FILES:.o=.d) \
))
#######################
# Start SUBSYSTEM HEIMDAL_WIND
[SUBSYSTEM::HEIMDAL_WIND]
@ -587,6 +681,13 @@ asn1_compile_OBJ_FILES = \
$(asn1_compile_OBJ_FILES): CFLAGS+=-I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/asn1 -I$(heimdalsrcdir)/lib/roken -I$(socketwrappersrcdir)
$(eval $(call heimdal_proto_header_template, \
$(heimdalsrcdir)/lib/asn1/der-protos.h, \
-q -P comment -o, \
$(HEIMDAL_HEIM_ASN1_DER_OBJ_FILES:.o=.c), \
$(asn1_compile_ASN1_OBJ_FILES) $(asn1_compile_ASN1_OBJ_FILES:.ho=.hd) \
))
# End BINARY asn1_compile
#######################