Home
last modified time | relevance | path

Searched refs:mech_oid (Results 1 – 17 of 17) sorted by relevance

/NextBSD/lib/libgssapi/
HDgss_import_sec_context.c44 gss_OID_desc mech_oid; in gss_import_sec_context() local
60 mech_oid.length = (p[0] << 8) | p[1]; in gss_import_sec_context()
61 if (len < mech_oid.length + 2) in gss_import_sec_context()
63 mech_oid.elements = p + 2; in gss_import_sec_context()
64 buf.length = len - 2 - mech_oid.length; in gss_import_sec_context()
65 buf.value = p + 2 + mech_oid.length; in gss_import_sec_context()
67 m = _gss_find_mech_switch(&mech_oid); in gss_import_sec_context()
HDgss_accept_sec_context.c41 parse_header(const gss_buffer_t input_token, gss_OID mech_oid) in parse_header() argument
92 mech_oid->length = p[1]; in parse_header()
95 mech_oid->elements = p; in parse_header()
108 choose_mech(const gss_buffer_t input, gss_OID mech_oid) in choose_mech() argument
117 status = parse_header(input, mech_oid); in choose_mech()
128 *mech_oid = ntlm_mechanism; in choose_mech()
134 *mech_oid = krb5_mechanism; in choose_mech()
143 *mech_oid = spnego_mechanism; in choose_mech()
187 gss_OID_desc mech_oid; in gss_accept_sec_context() local
189 major_status = choose_mech(input_token, &mech_oid); in gss_accept_sec_context()
[all …]
HDgss_decapsulate_token.c42 gss_OID_desc mech_oid; in gss_decapsulate_token() local
89 mech_oid.length = p[1]; in gss_decapsulate_token()
92 mech_oid.elements = p; in gss_decapsulate_token()
94 if (!gss_oid_equal(&mech_oid, oid)) in gss_decapsulate_token()
97 p += mech_oid.length; in gss_decapsulate_token()
98 len -= mech_oid.length; in gss_decapsulate_token()
HDgss_import_name.c47 gss_OID_desc mech_oid; in _gss_import_export_name() local
89 mech_oid.length = 0; in _gss_import_export_name()
91 mech_oid.length = (mech_oid.length << 8) | p[0]; in _gss_import_export_name()
97 mech_oid.length = p[0]; in _gss_import_export_name()
102 if (mech_oid.length != t) in _gss_import_export_name()
105 mech_oid.elements = p; in _gss_import_export_name()
119 m = _gss_find_mech_switch(&mech_oid); in _gss_import_export_name()
/NextBSD/crypto/heimdal/lib/gssapi/mech/
HDgss_import_sec_context.c39 gss_OID_desc mech_oid; in gss_import_sec_context() local
55 mech_oid.length = (p[0] << 8) | p[1]; in gss_import_sec_context()
56 if (len < mech_oid.length + 2) in gss_import_sec_context()
58 mech_oid.elements = p + 2; in gss_import_sec_context()
59 buf.length = len - 2 - mech_oid.length; in gss_import_sec_context()
60 buf.value = p + 2 + mech_oid.length; in gss_import_sec_context()
62 m = __gss_get_mechanism(&mech_oid); in gss_import_sec_context()
HDgss_accept_sec_context.c32 parse_header(const gss_buffer_t input_token, gss_OID mech_oid) in parse_header() argument
83 mech_oid->length = p[1]; in parse_header()
86 mech_oid->elements = p; in parse_header()
99 choose_mech(const gss_buffer_t input, gss_OID mech_oid) in choose_mech() argument
108 status = parse_header(input, mech_oid); in choose_mech()
119 *mech_oid = ntlm_mechanism; in choose_mech()
125 *mech_oid = krb5_mechanism; in choose_mech()
137 *mech_oid = spnego_mechanism; in choose_mech()
185 gss_OID_desc mech_oid; in gss_accept_sec_context() local
187 major_status = choose_mech(input_token, &mech_oid); in gss_accept_sec_context()
[all …]
HDgss_import_name.c40 gss_OID_desc mech_oid; in _gss_import_export_name() local
92 mech_oid.length = 0; in _gss_import_export_name()
94 mech_oid.length = (mech_oid.length << 8) | p[0]; in _gss_import_export_name()
100 mech_oid.length = p[0]; in _gss_import_export_name()
105 if (mech_oid.length != t) in _gss_import_export_name()
108 mech_oid.elements = p; in _gss_import_export_name()
122 m = __gss_get_mechanism(&mech_oid); in _gss_import_export_name()
HDgss_mech_switch.c236 gss_OID_desc mech_oid; in _gss_load_mech() local
282 if (_gss_string_to_oid(oid, &mech_oid)) in _gss_load_mech()
290 if (gss_oid_equal(&m->gm_mech.gm_mech_oid, &mech_oid)) { in _gss_load_mech()
292 free(mech_oid.elements); in _gss_load_mech()
318 m->gm_mech.gm_mech_oid = mech_oid; in _gss_load_mech()
389 major_status = mi(&minor_status, &mech_oid, in _gss_load_mech()
/NextBSD/crypto/heimdal/appl/test/
HDgssapi_server.c150 gss_OID mech_oid; in proto() local
202 &mech_oid, in proto()
220 p = (char *)mech_oid->elements; in proto()
221 if (mech_oid->length == GSS_KRB5_MECHANISM->length in proto()
222 && memcmp(p, GSS_KRB5_MECHANISM->elements, mech_oid->length) == 0) in proto()
224 else if (mech_oid->length == GSS_SPNEGO_MECHANISM->length in proto()
225 && memcmp(p, GSS_SPNEGO_MECHANISM->elements, mech_oid->length) == 0) in proto()
HDgssapi_client.c116 gss_OID mech_oid; in proto() local
119 mech_oid = select_mech(mech); in proto()
202 mech_oid, in proto()
HDhttp_client.c298 gss_OID mech_oid; in main() local
317 mech_oid = select_mech(mech); in main()
409 mech_oid, in main()
/NextBSD/tools/regression/rpcsec_gss/
HDrpctest.c313 gss_OID mech_oid; in test_server()
320 rpc_gss_mech_to_oid(*mechs, &mech_oid); in test_server()
322 oid_set.elements = mech_oid; in test_server()
330 report_error(mech_oid, maj_stat, min_stat); in test_server()
336 report_error(mech_oid, maj_stat, min_stat); in test_server()
/NextBSD/sys/rpc/rpcsec_gss/
HDrpcsec_gss.c194 gss_OID mech_oid, rpc_gss_service_t service) in rpc_gss_secfind() argument
217 h = rpc_gss_hash(principal, mech_oid, cred, service); in rpc_gss_secfind()
224 && gd->gd_mech == mech_oid in rpc_gss_secfind()
257 auth = rpc_gss_seccreate_int(clnt, cred, NULL, principal, mech_oid, in rpc_gss_secfind()
269 && tgd->gd_mech == mech_oid in rpc_gss_secfind()
356 const char *clnt_principal, const char *principal, gss_OID mech_oid, in rpc_gss_seccreate_int() argument
423 gd->gd_mech = mech_oid; in rpc_gss_seccreate_int()
750 gss_OID mech_oid; in rpc_gss_init() local
787 rpc_gss_mech_to_oid("kerberosv5", &mech_oid) && in rpc_gss_init()
788 gd->gd_mech == mech_oid) { in rpc_gss_init()
HDsvc_rpcsec_gss.c266 gss_OID mech_oid; in rpc_gss_set_svc_name() local
268 if (!rpc_gss_mech_to_oid(mechanism, &mech_oid)) in rpc_gss_set_svc_name()
275 sname->sn_mech = mech_oid; in rpc_gss_set_svc_name()
321 gss_OID mech_oid; in rpc_gss_get_principal_name() local
327 if (!rpc_gss_mech_to_oid(mech, &mech_oid)) in rpc_gss_get_principal_name()
362 rpc_gss_log_status("gss_import_name", mech_oid, maj_stat, min_stat); in rpc_gss_get_principal_name()
365 maj_stat = gss_canonicalize_name(&min_stat, gss_name, mech_oid, in rpc_gss_get_principal_name()
368 rpc_gss_log_status("gss_canonicalize_name", mech_oid, maj_stat, in rpc_gss_get_principal_name()
381 rpc_gss_log_status("gss_export_name", mech_oid, maj_stat, min_stat); in rpc_gss_get_principal_name()
/NextBSD/lib/librpcsec_gss/
HDsvc_rpcsec_gss.c190 gss_OID mech_oid; in rpc_gss_set_svc_name() local
196 if (!rpc_gss_mech_to_oid(mechanism, &mech_oid)) in rpc_gss_set_svc_name()
199 oid_set.elements = mech_oid; in rpc_gss_set_svc_name()
220 sname->sn_mech = mech_oid; in rpc_gss_set_svc_name()
235 gss_OID mech_oid; in rpc_gss_get_principal_name() local
243 if (!rpc_gss_mech_to_oid(mech, &mech_oid)) in rpc_gss_get_principal_name()
278 log_status("gss_import_name", mech_oid, maj_stat, min_stat); in rpc_gss_get_principal_name()
281 maj_stat = gss_canonicalize_name(&min_stat, gss_name, mech_oid, in rpc_gss_get_principal_name()
284 log_status("gss_canonicalize_name", mech_oid, maj_stat, in rpc_gss_get_principal_name()
297 log_status("gss_export_name", mech_oid, maj_stat, min_stat); in rpc_gss_get_principal_name()
/NextBSD/sys/rpc/
HDrpcsec_gss.h152 const char *principal, gss_OID mech_oid,
215 gss_OID mech_oid, rpc_gss_service_t service) in rpc_gss_secfind_call() argument
221 mech_oid, service); in rpc_gss_secfind_call()
421 const char *principal, gss_OID mech_oid, rpc_gss_service_t service);
/NextBSD/sys/fs/nfs/
HDnfs_commonkrpc.c390 char *srv_principal, gss_OID mech_oid, struct ucred *cred) in nfs_getauth() argument
399 if (!mech_oid) { in nfs_getauth()
400 if (!rpc_gss_mech_to_oid_call("kerberosv5", &mech_oid)) in nfs_getauth()
412 srv_principal, mech_oid, svc); in nfs_getauth()