Home
last modified time | relevance | path

Searched refs:mech_type (Results 1 – 25 of 52) sorted by relevance

123

/freebsd/lib/libgssapi/
H A Dgss_init_sec_context.c41 _gss_mech_cred_find(gss_cred_id_t cred_handle, gss_OID mech_type) in _gss_mech_cred_find() argument
50 if (gss_oid_equal(mech_type, mc->gmc_mech_oid)) in _gss_mech_cred_find()
78 gss_OID mech_type = input_mech_type; in gss_init_sec_context() local
96 if (mech_type == GSS_C_NO_OID) { in gss_init_sec_context()
101 mech_type = &_gss_mech_oids->elements[0]; in gss_init_sec_context()
110 m = ctx->gc_mech = _gss_find_mech_switch(mech_type); in gss_init_sec_context()
118 mech_type = &ctx->gc_mech->gm_mech_oid; in gss_init_sec_context()
125 major_status = _gss_find_mn(minor_status, name, mech_type, &mn); in gss_init_sec_context()
135 cred_handle = _gss_mech_cred_find(initiator_cred_handle, mech_type); in gss_init_sec_context()
141 mech_type, in gss_init_sec_context()
H A Dgss_inquire_context.c41 gss_OID *mech_type, in gss_inquire_context() argument
63 if (mech_type) in gss_inquire_context()
64 *mech_type = GSS_C_NO_OID; in gss_inquire_context()
72 mech_type, in gss_inquire_context()
85 if (mech_type) in gss_inquire_context()
86 *mech_type = GSS_C_NO_OID; in gss_inquire_context()
97 if (mech_type) in gss_inquire_context()
98 *mech_type = GSS_C_NO_OID; in gss_inquire_context()
H A Dgss_canonicalize_name.c40 const gss_OID mech_type, in gss_canonicalize_name() argument
46 struct _gss_mech_switch *m = _gss_find_mech_switch(mech_type); in gss_canonicalize_name()
52 major_status = _gss_find_mn(minor_status, name, mech_type, &mn); in gss_canonicalize_name()
58 mn->gmn_name, mech_type, &new_canonical_name); in gss_canonicalize_name()
H A Dgss_inquire_cred_by_mech.c38 const gss_OID mech_type, in gss_inquire_cred_by_mech() argument
61 m = _gss_find_mech_switch(mech_type); in gss_inquire_cred_by_mech()
77 major_status = m->gm_inquire_cred_by_mech(minor_status, mc, mech_type, in gss_inquire_cred_by_mech()
/freebsd/crypto/heimdal/lib/gssapi/mech/
H A Dgss_init_sec_context.c32 _gss_mech_cred_find(gss_cred_id_t cred_handle, gss_OID mech_type) in _gss_mech_cred_find() argument
41 if (gss_oid_equal(mech_type, mc->gmc_mech_oid)) in _gss_mech_cred_find()
130 gss_OID mech_type = input_mech_type; in gss_init_sec_context() local
148 if (mech_type == NULL) in gss_init_sec_context()
149 mech_type = GSS_KRB5_MECHANISM; in gss_init_sec_context()
157 m = ctx->gc_mech = __gss_get_mechanism(mech_type); in gss_init_sec_context()
165 mech_type = &ctx->gc_mech->gm_mech_oid; in gss_init_sec_context()
172 major_status = _gss_find_mn(minor_status, name, mech_type, &mn); in gss_init_sec_context()
185 cred_handle = _gss_mech_cred_find(initiator_cred_handle, mech_type); in gss_init_sec_context()
191 mech_type, in gss_init_sec_context()
H A Dgss_inquire_context.c37 gss_OID *mech_type, in gss_inquire_context() argument
59 if (mech_type) in gss_inquire_context()
60 *mech_type = GSS_C_NO_OID; in gss_inquire_context()
68 mech_type, in gss_inquire_context()
81 if (mech_type) in gss_inquire_context()
82 *mech_type = GSS_C_NO_OID; in gss_inquire_context()
93 if (mech_type) in gss_inquire_context()
94 *mech_type = GSS_C_NO_OID; in gss_inquire_context()
H A Dgss_inquire_cred_by_mech.c34 const gss_OID mech_type, in gss_inquire_cred_by_mech() argument
57 m = __gss_get_mechanism(mech_type); in gss_inquire_cred_by_mech()
73 major_status = m->gm_inquire_cred_by_mech(minor_status, mc, mech_type, in gss_inquire_cred_by_mech()
H A Dgss_canonicalize_name.c58 const gss_OID mech_type, in gss_canonicalize_name() argument
70 major_status = _gss_find_mn(minor_status, name, mech_type, &mn); in gss_canonicalize_name()
76 mn->gmn_name, mech_type, &new_canonical_name); in gss_canonicalize_name()
H A Dgss_accept_sec_context.c151 gss_OID *mech_type, in gss_accept_sec_context() argument
169 if (mech_type) in gss_accept_sec_context()
170 *mech_type = GSS_C_NO_OID; in gss_accept_sec_context()
245 if (mech_type) in gss_accept_sec_context()
246 *mech_type = mech_ret_type; in gss_accept_sec_context()
H A Dgss_display_status.c141 const gss_OID mech_type, in gss_display_status() argument
150 major_status = _gss_mg_get_error(mech_type, status_type, in gss_display_status()
187 maj_junk = gss_oid_to_str(&min_junk, mech_type, &oid); in gss_display_status()
/freebsd/tools/regression/kgssapi/
H A Dgsstest.c108 gss_OID mech_type = GSS_C_NO_OID; in main() local
137 report_error(mech_type, maj_stat, min_stat); in main()
146 report_error(mech_type, maj_stat, min_stat); in main()
154 report_error(mech_type, maj_stat, min_stat); in main()
175 &mech_type, in main()
181 report_error(mech_type, maj_stat, min_stat); in main()
192 report_error(mech_type, res.maj_stat, in main()
208 report_error(mech_type, maj_stat, min_stat); in main()
217 report_error(mech_type, res.maj_stat, res.min_stat); in main()
225 report_error(mech_type, maj_stat, min_stat); in main()
[all …]
/freebsd/sys/contrib/openzfs/module/icp/include/sys/crypto/
H A Dimpl.h225 #define KCF_MECH2CLASS(mech_type) ((kcf_ops_class_t)((mech_type) >> 32)) argument
227 #define KCF_MECH2INDEX(mech_type) ((int)((mech_type) & 0xFFFFFFFF)) argument
229 #define KCF_TO_PROV_MECH_INDX(pd, mech_type) \ argument
230 ((pd)->pd_mech_indx[KCF_MECH2CLASS(mech_type)] \
231 [KCF_MECH2INDEX(mech_type)])
233 #define KCF_TO_PROV_MECHINFO(pd, mech_type) \ argument
234 ((pd)->pd_mechanisms[KCF_TO_PROV_MECH_INDX(pd, mech_type)])
236 #define KCF_TO_PROV_MECHNUM(pd, mech_type) \ argument
237 (KCF_TO_PROV_MECHINFO(pd, mech_type).cm_mech_number)
/freebsd/sys/contrib/openzfs/module/icp/core/
H A Dkcf_mech_tabs.c307 crypto_mech_type_t mech_type; in kcf_remove_mech_provider() local
312 if ((mech_type = crypto_mech2id(mech_name)) == in kcf_remove_mech_provider()
322 if (kcf_get_mech_entry(mech_type, &mech_entry) != KCF_SUCCESS) { in kcf_remove_mech_provider()
362 kcf_get_mech_entry(crypto_mech_type_t mech_type, kcf_mech_entry_t **mep) in kcf_get_mech_entry() argument
370 class = KCF_MECH2CLASS(mech_type); in kcf_get_mech_entry()
378 index = KCF_MECH2INDEX(mech_type); in kcf_get_mech_entry()
H A Dkcf_callprov.c83 kcf_get_mech_provider(crypto_mech_type_t mech_type, kcf_mech_entry_t **mepp, in kcf_get_mech_provider() argument
93 class = KCF_MECH2CLASS(mech_type); in kcf_get_mech_provider()
100 index = KCF_MECH2INDEX(mech_type); in kcf_get_mech_provider()
/freebsd/crypto/heimdal/lib/gssapi/ntlm/
H A Dinquire_context.c43 gss_OID * mech_type, in _gss_ntlm_inquire_context() argument
58 if (mech_type) in _gss_ntlm_inquire_context()
59 *mech_type = GSS_NTLM_MECHANISM; in _gss_ntlm_inquire_context()
H A Daccept_sec_context.c75 gss_OID * mech_type, in _gss_ntlm_accept_sec_context() argument
100 if (mech_type) in _gss_ntlm_accept_sec_context()
101 *mech_type = GSS_C_NO_OID; in _gss_ntlm_accept_sec_context()
255 if (mech_type) in _gss_ntlm_accept_sec_context()
256 *mech_type = GSS_NTLM_MECHANISM; in _gss_ntlm_accept_sec_context()
/freebsd/sys/kgssapi/
H A Dgss_impl.c116 kgss_install_mech(gss_OID mech_type, const char *name, struct kobj_class *cls) in kgss_install_mech() argument
121 km->km_mech_type = mech_type; in kgss_install_mech()
128 kgss_uninstall_mech(gss_OID mech_type) in kgss_uninstall_mech() argument
133 if (kgss_oid_equal(km->km_mech_type, mech_type)) { in kgss_uninstall_mech()
168 kgss_create_context(gss_OID mech_type) in kgss_create_context() argument
174 if (kgss_oid_equal(km->km_mech_type, mech_type)) in kgss_create_context()
H A Dgss_accept_sec_context.c50 gss_OID *mech_type, in gss_accept_sec_context() argument
99 ctx = kgss_create_context(res.mech_type); in gss_accept_sec_context()
117 if (mech_type) in gss_accept_sec_context()
118 *mech_type = KGSS_MECH_TYPE(ctx); in gss_accept_sec_context()
H A Dgss_canonicalize_name.c45 const gss_OID mech_type, in gss_canonicalize_name() argument
60 args.mech_type = mech_type; in gss_canonicalize_name()
H A Dgss_display_status.c46 const gss_OID mech_type, in gss_display_status() argument
62 args.mech_type = mech_type; in gss_display_status()
H A Dgssapi_impl.h74 extern void kgss_install_mech(gss_OID mech_type, const char *name,
76 extern void kgss_uninstall_mech(gss_OID mech_type);
79 extern gss_ctx_id_t kgss_create_context(gss_OID mech_type);
H A Dgssd.x66 gss_OID mech_type; member
78 gss_OID mech_type; member
137 gss_OID mech_type; member
218 gss_OID mech_type; member
/freebsd/crypto/heimdal/lib/gssapi/krb5/
H A Dinquire_context.c42 gss_OID * mech_type, in _gsskrb5_inquire_context() argument
85 if (mech_type) in _gsskrb5_inquire_context()
86 *mech_type = GSS_KRB5_MECHANISM; in _gsskrb5_inquire_context()
H A Ddisplay_status.c146 const gss_OID mech_type, in _gsskrb5_display_status() argument
159 if (gss_oid_equal(mech_type, GSS_C_NO_OID) == 0 && in _gsskrb5_display_status()
160 gss_oid_equal(mech_type, GSS_KRB5_MECHANISM) == 0) { in _gsskrb5_display_status()
/freebsd/crypto/heimdal/lib/gssapi/spnego/
H A Dcompat.c200 add_mech_type(gss_OID mech_type, in add_mech_type() argument
207 if (gss_oid_equal(mech_type, GSS_SPNEGO_MECHANISM)) in add_mech_type()
211 gss_oid_equal(mech_type, &_gss_spnego_krb5_mechanism_oid_desc)) { in add_mech_type()
223 ret = der_get_oid(mech_type->elements, mech_type->length, &mech, NULL); in add_mech_type()

123