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

/freebsd-10-stable/crypto/heimdal/lib/gssapi/mech/
H A Dgss_import_sec_context.c39 gss_OID_desc mech_oid; local
55 mech_oid.length = (p[0] << 8) | p[1];
56 if (len < mech_oid.length + 2)
58 mech_oid.elements = p + 2;
59 buf.length = len - 2 - mech_oid.length;
60 buf.value = p + 2 + mech_oid.length;
62 m = __gss_get_mechanism(&mech_oid);
H A Dgss_import_name.c40 gss_OID_desc mech_oid; local
92 mech_oid.length = 0;
94 mech_oid.length = (mech_oid.length << 8) | p[0];
100 mech_oid.length = p[0];
105 if (mech_oid.length != t)
108 mech_oid.elements = p;
122 m = __gss_get_mechanism(&mech_oid);
H A Dgss_accept_sec_context.c32 parse_header(const gss_buffer_t input_token, gss_OID mech_oid) argument
83 mech_oid->length = p[1];
86 mech_oid->elements = p;
99 choose_mech(const gss_buffer_t input, gss_OID mech_oid) argument
108 status = parse_header(input, mech_oid);
119 *mech_oid = ntlm_mechanism;
125 *mech_oid = krb5_mechanism;
137 *mech_oid = spnego_mechanism;
185 gss_OID_desc mech_oid; local
187 major_status = choose_mech(input_token, &mech_oid);
[all...]
H A Dgss_mech_switch.c236 gss_OID_desc mech_oid; local
282 if (_gss_string_to_oid(oid, &mech_oid))
290 if (gss_oid_equal(&m->gm_mech.gm_mech_oid, &mech_oid)) {
292 free(mech_oid.elements);
318 m->gm_mech.gm_mech_oid = mech_oid;
389 major_status = mi(&minor_status, &mech_oid,
/freebsd-10-stable/lib/libgssapi/
H A Dgss_import_sec_context.c44 gss_OID_desc mech_oid; local
60 mech_oid.length = (p[0] << 8) | p[1];
61 if (len < mech_oid.length + 2)
63 mech_oid.elements = p + 2;
64 buf.length = len - 2 - mech_oid.length;
65 buf.value = p + 2 + mech_oid.length;
67 m = _gss_find_mech_switch(&mech_oid);
H A Dgss_decapsulate_token.c42 gss_OID_desc mech_oid; local
89 mech_oid.length = p[1];
92 mech_oid.elements = p;
94 if (!gss_oid_equal(&mech_oid, oid))
97 p += mech_oid.length;
98 len -= mech_oid.length;
H A Dgss_import_name.c47 gss_OID_desc mech_oid; local
89 mech_oid.length = 0;
91 mech_oid.length = (mech_oid.length << 8) | p[0];
97 mech_oid.length = p[0];
102 if (mech_oid.length != t)
105 mech_oid.elements = p;
119 m = _gss_find_mech_switch(&mech_oid);
H A Dgss_accept_sec_context.c41 parse_header(const gss_buffer_t input_token, gss_OID mech_oid) argument
92 mech_oid->length = p[1];
95 mech_oid->elements = p;
108 choose_mech(const gss_buffer_t input, gss_OID mech_oid) argument
117 status = parse_header(input, mech_oid);
128 *mech_oid = ntlm_mechanism;
134 *mech_oid = krb5_mechanism;
143 *mech_oid = spnego_mechanism;
188 gss_OID_desc mech_oid; local
190 major_status = choose_mech(input_token, &mech_oid);
[all...]
/freebsd-10-stable/crypto/heimdal/appl/test/
H A Dgssapi_server.c150 gss_OID mech_oid; local
202 &mech_oid,
220 p = (char *)mech_oid->elements;
221 if (mech_oid->length == GSS_KRB5_MECHANISM->length
222 && memcmp(p, GSS_KRB5_MECHANISM->elements, mech_oid->length) == 0)
224 else if (mech_oid->length == GSS_SPNEGO_MECHANISM->length
225 && memcmp(p, GSS_SPNEGO_MECHANISM->elements, mech_oid->length) == 0)
H A Dgssapi_client.c116 gss_OID mech_oid; local
119 mech_oid = select_mech(mech);
202 mech_oid,
H A Dhttp_client.c298 gss_OID mech_oid; local
317 mech_oid = select_mech(mech);
409 mech_oid,
/freebsd-10-stable/tools/regression/rpcsec_gss/
H A Drpctest.c313 gss_OID mech_oid;
320 rpc_gss_mech_to_oid(*mechs, &mech_oid);
322 oid_set.elements = mech_oid;
330 report_error(mech_oid, maj_stat, min_stat);
336 report_error(mech_oid, maj_stat, min_stat);
/freebsd-10-stable/lib/librpcsec_gss/
H A Dsvc_rpcsec_gss.c190 gss_OID mech_oid; local
196 if (!rpc_gss_mech_to_oid(mechanism, &mech_oid))
199 oid_set.elements = mech_oid;
220 sname->sn_mech = mech_oid;
235 gss_OID mech_oid; local
243 if (!rpc_gss_mech_to_oid(mech, &mech_oid))
278 log_status("gss_import_name", mech_oid, maj_stat, min_stat);
281 maj_stat = gss_canonicalize_name(&min_stat, gss_name, mech_oid,
284 log_status("gss_canonicalize_name", mech_oid, maj_stat,
297 log_status("gss_export_name", mech_oid, maj_sta
[all...]
/freebsd-10-stable/sys/rpc/rpcsec_gss/
H A Drpcsec_gss.c194 gss_OID mech_oid, rpc_gss_service_t service)
217 h = rpc_gss_hash(principal, mech_oid, cred, service);
224 && gd->gd_mech == mech_oid
257 auth = rpc_gss_seccreate_int(clnt, cred, NULL, principal, mech_oid,
269 && tgd->gd_mech == mech_oid
356 const char *clnt_principal, const char *principal, gss_OID mech_oid,
423 gd->gd_mech = mech_oid;
750 gss_OID mech_oid; local
787 rpc_gss_mech_to_oid("kerberosv5", &mech_oid) &&
788 gd->gd_mech == mech_oid) {
193 rpc_gss_secfind(CLIENT *clnt, struct ucred *cred, const char *principal, gss_OID mech_oid, rpc_gss_service_t service) argument
355 rpc_gss_seccreate_int(CLIENT *clnt, struct ucred *cred, const char *clnt_principal, const char *principal, gss_OID mech_oid, rpc_gss_service_t service, u_int qop_num, rpc_gss_options_req_t *options_req, rpc_gss_options_ret_t *options_ret) argument
[all...]
H A Dsvc_rpcsec_gss.c266 gss_OID mech_oid; local
268 if (!rpc_gss_mech_to_oid(mechanism, &mech_oid))
275 sname->sn_mech = mech_oid;
321 gss_OID mech_oid; local
327 if (!rpc_gss_mech_to_oid(mech, &mech_oid))
362 rpc_gss_log_status("gss_import_name", mech_oid, maj_stat, min_stat);
365 maj_stat = gss_canonicalize_name(&min_stat, gss_name, mech_oid,
368 rpc_gss_log_status("gss_canonicalize_name", mech_oid, maj_stat,
381 rpc_gss_log_status("gss_export_name", mech_oid, maj_stat, min_stat);
/freebsd-10-stable/sys/rpc/
H A Drpcsec_gss.h152 const char *principal, gss_OID mech_oid,
215 gss_OID mech_oid, rpc_gss_service_t service)
221 mech_oid, service);
421 const char *principal, gss_OID mech_oid, rpc_gss_service_t service);
214 rpc_gss_secfind_call(CLIENT *clnt, struct ucred *cred, const char *principal, gss_OID mech_oid, rpc_gss_service_t service) argument
/freebsd-10-stable/sys/fs/nfs/
H A Dnfs_commonkrpc.c402 char *srv_principal, gss_OID mech_oid, struct ucred *cred)
411 if (!mech_oid) {
412 if (!rpc_gss_mech_to_oid_call("kerberosv5", &mech_oid))
424 srv_principal, mech_oid, svc);
401 nfs_getauth(struct nfssockreq *nrp, int secflavour, char *clnt_principal, char *srv_principal, gss_OID mech_oid, struct ucred *cred) argument

Completed in 199 milliseconds