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

/freebsd-13-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-13-stable/lib/libgssapi/
H A Dgss_import_sec_context.c46 gss_OID_desc mech_oid; local
62 mech_oid.length = (p[0] << 8) | p[1];
63 if (len < mech_oid.length + 2)
65 mech_oid.elements = p + 2;
66 buf.length = len - 2 - mech_oid.length;
67 buf.value = p + 2 + mech_oid.length;
69 m = _gss_find_mech_switch(&mech_oid);
H A Dgss_decapsulate_token.c44 gss_OID_desc mech_oid; local
91 mech_oid.length = p[1];
94 mech_oid.elements = p;
96 if (!gss_oid_equal(&mech_oid, oid))
99 p += mech_oid.length;
100 len -= mech_oid.length;
H A Dgss_import_name.c49 gss_OID_desc mech_oid; local
91 mech_oid.length = 0;
93 mech_oid.length = (mech_oid.length << 8) | p[0];
99 mech_oid.length = p[0];
104 if (mech_oid.length != t)
107 mech_oid.elements = p;
121 m = _gss_find_mech_switch(&mech_oid);
H A Dgss_accept_sec_context.c43 parse_header(const gss_buffer_t input_token, gss_OID mech_oid) argument
94 mech_oid->length = p[1];
97 mech_oid->elements = p;
110 choose_mech(const gss_buffer_t input, gss_OID mech_oid) argument
119 status = parse_header(input, mech_oid);
130 *mech_oid = ntlm_mechanism;
136 *mech_oid = krb5_mechanism;
145 *mech_oid = spnego_mechanism;
189 gss_OID_desc mech_oid; local
191 major_status = choose_mech(input_token, &mech_oid);
[all...]
/freebsd-13-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-13-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-13-stable/lib/librpcsec_gss/
H A Dsvc_rpcsec_gss.c192 gss_OID mech_oid; local
198 if (!rpc_gss_mech_to_oid(mechanism, &mech_oid))
201 oid_set.elements = mech_oid;
222 sname->sn_mech = mech_oid;
237 gss_OID mech_oid; local
245 if (!rpc_gss_mech_to_oid(mech, &mech_oid))
280 log_status("gss_import_name", mech_oid, maj_stat, min_stat);
283 maj_stat = gss_canonicalize_name(&min_stat, gss_name, mech_oid,
286 log_status("gss_canonicalize_name", mech_oid, maj_stat,
299 log_status("gss_export_name", mech_oid, maj_sta
[all...]
/freebsd-13-stable/sys/rpc/rpcsec_gss/
H A Drpcsec_gss.c196 gss_OID mech_oid, rpc_gss_service_t service)
219 h = rpc_gss_hash(principal, mech_oid, cred, service);
226 && gd->gd_mech == mech_oid
259 auth = rpc_gss_seccreate_int(clnt, cred, NULL, principal, mech_oid,
271 && tgd->gd_mech == mech_oid
358 const char *clnt_principal, const char *principal, gss_OID mech_oid,
425 gd->gd_mech = mech_oid;
752 gss_OID mech_oid; local
789 rpc_gss_mech_to_oid("kerberosv5", &mech_oid) &&
790 gd->gd_mech == mech_oid) {
195 rpc_gss_secfind(CLIENT *clnt, struct ucred *cred, const char *principal, gss_OID mech_oid, rpc_gss_service_t service) argument
357 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.c295 gss_OID mech_oid; local
297 if (!rpc_gss_mech_to_oid(mechanism, &mech_oid))
304 sname->sn_mech = mech_oid;
350 gss_OID mech_oid; local
356 if (!rpc_gss_mech_to_oid(mech, &mech_oid))
391 rpc_gss_log_status("gss_import_name", mech_oid, maj_stat, min_stat);
394 maj_stat = gss_canonicalize_name(&min_stat, gss_name, mech_oid,
397 rpc_gss_log_status("gss_canonicalize_name", mech_oid, maj_stat,
410 rpc_gss_log_status("gss_export_name", mech_oid, maj_stat, min_stat);
/freebsd-13-stable/sys/rpc/
H A Drpcsec_gss.h154 const char *principal, gss_OID mech_oid,
217 gss_OID mech_oid, rpc_gss_service_t service)
223 mech_oid, service);
423 const char *principal, gss_OID mech_oid, rpc_gss_service_t service);
216 rpc_gss_secfind_call(CLIENT *clnt, struct ucred *cred, const char *principal, gss_OID mech_oid, rpc_gss_service_t service) argument
/freebsd-13-stable/sys/fs/nfs/
H A Dnfs_commonkrpc.c461 char *srv_principal, gss_OID mech_oid, struct ucred *cred)
470 if (!mech_oid) {
471 if (!rpc_gss_mech_to_oid_call("kerberosv5", &mech_oid))
483 srv_principal, mech_oid, svc);
460 nfs_getauth(struct nfssockreq *nrp, int secflavour, char *clnt_principal, char *srv_principal, gss_OID mech_oid, struct ucred *cred) argument

Completed in 94 milliseconds