export internal functions so we dont need private headers
This commit is contained in:
@@ -39,12 +39,6 @@
|
||||
#include <Security/Security.h>
|
||||
#endif
|
||||
|
||||
struct krb5_dh_moduli;
|
||||
struct AlgorithmIdentifier;
|
||||
struct _krb5_krb_auth_data;
|
||||
struct hx509_certs_data;
|
||||
#include <krb5-private.h>
|
||||
|
||||
#ifndef NO_NTLM
|
||||
#include "heimntlm.h"
|
||||
#endif
|
||||
@@ -457,7 +451,7 @@ get_new_tickets(krb5_context context,
|
||||
if (ret)
|
||||
krb5_err(context, 1, ret, "krb5_get_init_creds_opt_set_pkinit");
|
||||
if (ent_user_id)
|
||||
_krb5_get_init_creds_opt_set_pkinit_user_certs(context, opt, ent_user_id);
|
||||
krb5_get_init_creds_opt_set_pkinit_user_certs(context, opt, ent_user_id);
|
||||
}
|
||||
|
||||
if (addrs_flag != -1)
|
||||
@@ -768,9 +762,9 @@ main (int argc, char **argv)
|
||||
parseflags |= KRB5_PRINCIPAL_PARSE_ENTERPRISE;
|
||||
|
||||
if (pk_enterprise_flag) {
|
||||
ret = _krb5_pk_enterprise_cert(context, pk_user_id,
|
||||
argv[0], &principal,
|
||||
&ent_user_id);
|
||||
ret = krb5_pk_enterprise_cert(context, pk_user_id,
|
||||
argv[0], &principal,
|
||||
&ent_user_id);
|
||||
if (ret)
|
||||
krb5_err(context, 1, ret, "krb5_pk_enterprise_certs");
|
||||
|
||||
|
@@ -847,6 +847,8 @@ typedef krb5_error_code
|
||||
*
|
||||
*/
|
||||
|
||||
struct hx509_certs_data;
|
||||
|
||||
#include <krb5-protos.h>
|
||||
|
||||
/* variables */
|
||||
|
@@ -766,8 +766,8 @@ EXPORTS
|
||||
_krb5_expand_path_tokens ;!
|
||||
|
||||
; kinit helper
|
||||
_krb5_get_init_creds_opt_set_pkinit_user_certs
|
||||
_krb5_pk_enterprise_cert
|
||||
krb5_get_init_creds_opt_set_pkinit_user_certs
|
||||
krb5_pk_enterprise_cert
|
||||
|
||||
; testing
|
||||
;! _krb5_aes_cts_encrypt
|
||||
|
@@ -2455,9 +2455,9 @@ krb5_get_init_creds_opt_set_pkinit(krb5_context context,
|
||||
}
|
||||
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
_krb5_get_init_creds_opt_set_pkinit_user_certs(krb5_context context,
|
||||
krb5_get_init_creds_opt *opt,
|
||||
struct hx509_certs_data *certs)
|
||||
krb5_get_init_creds_opt_set_pkinit_user_certs(krb5_context context,
|
||||
krb5_get_init_creds_opt *opt,
|
||||
struct hx509_certs_data *certs)
|
||||
{
|
||||
#ifdef PKINIT
|
||||
if (opt->opt_private == NULL) {
|
||||
@@ -2529,11 +2529,11 @@ find_ms_san(hx509_context context, hx509_cert cert, void *ctx)
|
||||
*/
|
||||
|
||||
KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
|
||||
_krb5_pk_enterprise_cert(krb5_context context,
|
||||
const char *user_id,
|
||||
krb5_const_realm realm,
|
||||
krb5_principal *principal,
|
||||
struct hx509_certs_data **res)
|
||||
krb5_pk_enterprise_cert(krb5_context context,
|
||||
const char *user_id,
|
||||
krb5_const_realm realm,
|
||||
krb5_principal *principal,
|
||||
struct hx509_certs_data **res)
|
||||
{
|
||||
#ifdef PKINIT
|
||||
krb5_error_code ret;
|
||||
|
@@ -756,8 +756,8 @@ HEIMDAL_KRB5_2.0 {
|
||||
_krb5_s4u2self_to_checksumdata;
|
||||
|
||||
# kinit helper
|
||||
_krb5_get_init_creds_opt_set_pkinit_user_certs;
|
||||
_krb5_pk_enterprise_cert;
|
||||
krb5_get_init_creds_opt_set_pkinit_user_certs;
|
||||
krb5_pk_enterprise_cert;
|
||||
|
||||
# testing
|
||||
_krb5_aes_cts_encrypt;
|
||||
|
Reference in New Issue
Block a user