Add gsskrb5_set_dns_canonlize.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18513 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -117,6 +117,9 @@ gsskrb5_extract_authz_data_from_sec_context
|
|||||||
OM_uint32
|
OM_uint32
|
||||||
gss_krb5_compat_des3_mic(OM_uint32 *, gss_ctx_id_t, int);
|
gss_krb5_compat_des3_mic(OM_uint32 *, gss_ctx_id_t, int);
|
||||||
|
|
||||||
|
OM_uint32
|
||||||
|
gsskrb5_set_dns_canonlize(int);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Lucid - NFSv4 interface to GSS-API KRB5 to expose key material to
|
* Lucid - NFSv4 interface to GSS-API KRB5 to expose key material to
|
||||||
* do GSS content token handling in-kernel.
|
* do GSS content token handling in-kernel.
|
||||||
|
@@ -203,6 +203,31 @@ gsskrb5_register_acceptor_identity(const char *identity)
|
|||||||
return (GSS_S_COMPLETE);
|
return (GSS_S_COMPLETE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
OM_uint32
|
||||||
|
gsskrb5_set_dns_canonlize(int flag)
|
||||||
|
{
|
||||||
|
struct _gss_mech_switch *m;
|
||||||
|
gss_buffer_desc buffer;
|
||||||
|
OM_uint32 junk;
|
||||||
|
char b = (flag != 0);
|
||||||
|
|
||||||
|
_gss_load_mech();
|
||||||
|
|
||||||
|
buffer.value = &b;
|
||||||
|
buffer.length = sizeof(b);
|
||||||
|
|
||||||
|
SLIST_FOREACH(m, &_gss_mechs, gm_link) {
|
||||||
|
if (m->gm_mech.gm_set_sec_context_option == NULL)
|
||||||
|
continue;
|
||||||
|
m->gm_mech.gm_set_sec_context_option(&junk, NULL,
|
||||||
|
GSS_KRB5_REGISTER_ACCEPTOR_IDENTITY_X, &buffer);
|
||||||
|
}
|
||||||
|
|
||||||
|
return (GSS_S_COMPLETE);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
static krb5_error_code
|
static krb5_error_code
|
||||||
set_key(krb5_keyblock *keyblock, gss_krb5_lucid_key_t *key)
|
set_key(krb5_keyblock *keyblock, gss_krb5_lucid_key_t *key)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user