Searched refs:mech_type (Results 1 - 25 of 89) sorted by relevance

1234

/illumos-gate/usr/src/lib/libgss/
H A Dg_canon_name.c50 const gss_OID mech_type,
67 if (input_name == GSS_C_NO_NAME || mech_type == GSS_C_NULL_OID)
76 mech_type,
80 const gss_OID mech_type;
90 mech_type,
103 if (!output_name && in_union->mech_type &&
104 g_OID_equal(in_union->mech_type, mech_type))
114 out_union->mech_type = 0;
140 if (in_union->mech_type) {
47 val_canon_name_args( OM_uint32 *minor_status, const gss_name_t input_name, const gss_OID mech_type, gss_name_t *output_name) argument
[all...]
H A Dg_inquire_context.c39 gss_OID *mech_type)
53 if (mech_type != NULL)
54 *mech_type = GSS_C_NO_OID;
75 gss_OID *mech_type,
89 mech_type);
99 mech = __gss_get_mechanism(ctx->mech_type);
148 if (mech_type)
149 *mech_type = &mech->mech_type;
34 val_inq_ctx_args( OM_uint32 *minor_status, gss_ctx_id_t context_handle, gss_name_t *src_name, gss_name_t *targ_name, gss_OID *mech_type) argument
69 gss_inquire_context( OM_uint32 *minor_status, gss_ctx_id_t context_handle, gss_name_t *src_name, gss_name_t *targ_name, OM_uint32 *lifetime_rec, gss_OID *mech_type, OM_uint32 *ctx_flags, int *locally_initiated, int *opened) argument
H A Dg_compare_name.c90 if (union_name1->mech_type == 0) {
98 if (union_name1->mech_type) {
99 mech = __gss_get_mechanism(union_name1->mech_type);
111 if (union_name1->mech_type && union_name2->mech_type) {
112 if (!g_OID_equal(union_name1->mech_type,
113 union_name2->mech_type))
143 if (!union_name1->mech_type && !union_name2->mech_type) {
148 * Not knowing a mech_type w
[all...]
H A Dg_init_sec_context.c108 gss_OID mech_type = GSS_C_NULL_OID; local
121 mech_type = (gss_OID)req_mech_type;
127 * mechanism. If mech_type is NULL, set it to the resultant
130 mech = __gss_get_mechanism(mech_type);
137 if (mech_type == GSS_C_NULL_OID)
138 mech_type = &mech->mech_type;
142 * mech_type that we're about to use. Otherwise, do an import on
145 if (union_name->mech_type &&
146 g_OID_equal(union_name->mech_type, mech_typ
[all...]
H A Dg_imp_sec_context.c98 ctx->mech_type = (gss_OID) malloc(sizeof (gss_OID_desc));
99 if (!ctx->mech_type) {
118 ctx->mech_type->length = length;
119 ctx->mech_type->elements = malloc(length);
120 if (!ctx->mech_type->elements) {
123 (void) memcpy(ctx->mech_type->elements, p, length);
134 mech = __gss_get_mechanism(ctx->mech_type);
155 if (ctx->mech_type) {
156 if (ctx->mech_type->elements)
157 free(ctx->mech_type
[all...]
H A Dg_dup_name.c97 dest_union->mech_type = 0;
120 if (src_union->mech_type) {
122 src_union->mech_type,
123 &dest_union->mech_type);
130 dest_union->mech_type,
153 dest_union->mech_type,
155 if (dest_union->mech_type)
157 &dest_union->mech_type);
H A Dg_accept_sec_context.c45 gss_OID *mech_type,
58 if (mech_type != NULL)
59 *mech_type = GSS_C_NO_OID;
93 mech_type,
105 gss_OID *mech_type;
128 mech_type,
162 &union_ctx_id->mech_type);
172 token_mech_type = union_ctx_id->mech_type;
199 mech_type,
211 if (mech_type
40 val_acc_sec_ctx_args( OM_uint32 *minor_status, gss_ctx_id_t *context_handle, gss_buffer_t input_token_buffer, gss_name_t *src_name, gss_OID *mech_type, gss_buffer_t output_token, gss_cred_id_t *d_cred) argument
[all...]
H A Dg_rel_name.c73 if (union_name->mech_type) {
75 union_name->mech_type,
77 (void) gss_release_oid(minor_status, &union_name->mech_type);
H A Dg_glue.c302 OM_uint32 gssint_import_internal_name (minor_status, mech_type, union_name,
305 gss_OID mech_type;
312 mech = gssint_get_mechanism (mech_type);
332 OM_uint32 gssint_export_internal_name(minor_status, mech_type,
335 const gss_OID mech_type;
350 mech = gssint_get_mechanism(mech_type);
404 mechOidDERLen = gssint_der_length_size(mech_type->length);
407 mech_type->length +
423 mechOidLen = mechOidDERLen + mechOidTagLen + mech_type->length;
432 if (gssint_put_der_length(mech_type
[all...]
H A Dg_userok.c40 const gss_OID mech_type,
55 if (!gss_user.value || !name || !mech_type)
69 mech_type,
115 mech = __gss_get_mechanism(intName->mech_type);
120 if (intName->mech_type == NULL) {
129 major = compare_names(minor, intName->mech_type,
39 compare_names(OM_uint32 *minor, const gss_OID mech_type, const gss_name_t name, const char *user, int *user_ok) argument
H A Dg_exp_sec_context.c97 mech = __gss_get_mechanism(ctx->mech_type);
110 length = token.length + 4 + ctx->mech_type->length;
118 length = ctx->mech_type->length;
126 (void) memcpy(buf+4, ctx->mech_type->elements,
127 (size_t)ctx->mech_type->length);
128 (void) memcpy(buf+4+ctx->mech_type->length, token.value, token.length);
132 free(ctx->mech_type->elements);
133 free(ctx->mech_type);
H A Dg_export_name.c71 if (!union_name->mech_type)
74 return __gss_export_internal_name(minor_status, union_name->mech_type,
H A Dg_delete_sec_context.c93 ctx->mech_type,
100 free(ctx->mech_type->elements);
101 free(ctx->mech_type);
H A Dg_inq_context_oid.c60 mech = gssint_get_mechanism (ctx->mech_type);
H A Dg_acquire_cred_with_pw.c147 default_OID.length = mech->mech_type.length;
148 default_OID.elements = mech->mech_type.elements;
302 if (union_name->mech_type &&
303 g_OID_equal(union_name->mech_type,
304 &mech->mech_type))
308 &mech->mech_type, union_name,
373 malloc(mech->mech_type.length)) == NULL)
377 &mech->mech_type);
410 &mech->mech_type,
427 &mech->mech_type,
[all...]
H A Dg_dsp_status.c63 gss_OID mech_type = (gss_OID) req_mech_type; local
126 mech_type = &m_oid;
130 mech = __gss_get_mechanism(mech_type);
135 if (mech_type == GSS_C_NULL_OID)
136 mech_type = &mech->mech_type;
139 status_value, status_type, mech_type,
/illumos-gate/usr/src/lib/gss_mechs/mech_dh/dh_common/
H A Ddh_common.c92 gss_OID_desc mech_type, /* OID of mechanism */
121 mech->mech_type = mech_type;
130 context->mech = &mech->mech_type;
91 __dh_generic_initialize(gss_mechanism dhmech, gss_OID_desc mech_type, dh_keyopts_t keyopts ) argument
H A Ddh_common.h42 gss_OID_desc mech_type, dh_keyopts_t keyopts);
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Ddisp_status.c172 mech_type, message_context, status_string)
176 gss_OID mech_type;
183 if ((mech_type != GSS_C_NULL_OID) &&
184 !g_OID_equal(gss_mech_krb5, mech_type) &&
185 !g_OID_equal(gss_mech_krb5_old, mech_type)) {
222 mech_type, message_context, status_string)
226 gss_OID mech_type;
231 status_type, mech_type, message_context,
H A Dinq_cred.c224 mech_type, name, initiator_lifetime,
228 gss_OID mech_type;
241 if ((mech_type != GSS_C_NULL_OID) &&
242 !g_OID_equal(gss_mech_krb5_old, mech_type) &&
243 !g_OID_equal(gss_mech_krb5, mech_type)) {
H A Dkrb5_gss_glue.c57 gss_OID, /* mech_type */
77 gss_OID*, /* mech_type */
141 gss_OID, /* mech_type */
192 gss_OID*, /* mech_type */
278 gss_OID, /* mech_type */
314 const gss_OID, /* mech_type */
546 input_token, input_chan_bindings, src_name, mech_type,
555 gss_OID *mech_type;
567 mech_type,
696 mech_type, message_contex
[all...]
/illumos-gate/usr/src/uts/common/crypto/io/
H A Decc.c83 ecc_mech_type_t mech_type; member in struct:ecc_ctx
93 ecc_mech_type_t mech_type; member in struct:digest_ecc_ctx
344 check_mech_and_key(ecc_mech_type_t mech_type, crypto_key_t *key, ulong_t class) argument
351 if (mech_type != ECDSA_SHA1_MECH_INFO_TYPE &&
352 mech_type != ECDSA_MECH_INFO_TYPE)
455 if (ctxp->mech_type == ECDSA_MECH_INFO_TYPE)
474 ecc_mech_type_t mech_type = mechanism->cm_type; local
501 switch (mech_type) {
518 switch (mech_type) {
529 ctxp->mech_type
552 ecc_mech_type_t mech_type = mechanism->cm_type; local
572 ecc_mech_type_t mech_type = mechanism->cm_type; local
600 ecc_mech_type_t mech_type; local
737 ecc_mech_type_t mech_type; local
786 ecc_mech_type_t mech_type = mechanism->cm_type; local
983 ecc_mech_type_t mech_type = mechanism->cm_type; local
[all...]
H A Drsa.c82 rsa_mech_type_t mech_type; member in struct:rsa_ctx
91 rsa_mech_type_t mech_type; member in struct:digest_rsa_ctx
514 ctxp->mech_type = mechanism->cm_type;
540 rv = rsa_encrypt_common(ctxp->mech_type, ctxp->key, plaintext,
575 if (ctxp->mech_type == RSA_PKCS_MECH_INFO_TYPE ||
576 ctxp->mech_type == RSA_X_509_MECH_INFO_TYPE)
588 rsa_encrypt_common(rsa_mech_type_t mech_type, crypto_key_t *key, argument
607 if (mech_type == RSA_PKCS_MECH_INFO_TYPE) {
628 if (mech_type == RSA_PKCS_MECH_INFO_TYPE) {
707 rv = rsa_decrypt_common(ctxp->mech_type, ctx
734 rsa_decrypt_common(rsa_mech_type_t mech_type, crypto_key_t *key, crypto_data_t *ciphertext, crypto_data_t *plaintext) argument
945 rsa_mech_type_t mech_type; local
1049 rsa_sign_common(rsa_mech_type_t mech_type, crypto_key_t *key, crypto_data_t *data, crypto_data_t *signature) argument
1165 rsa_mech_type_t mech_type; local
1263 rsa_verify_common(rsa_mech_type_t mech_type, crypto_key_t *key, crypto_data_t *data, crypto_data_t *signature) argument
1465 rsa_verify_recover_common(rsa_mech_type_t mech_type, crypto_key_t *key, crypto_data_t *signature, crypto_data_t *data) argument
[all...]
/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelSlot.h39 int mech_type; member in struct:cipher_mechs_threshold
/illumos-gate/usr/src/cmd/gss/gssd/
H A Dgssdtest.c352 gss_OID mech_type; local
401 mech_type = gss_str2oid((char *)GSS_KRB5_MECH_OID);
403 mech_type = gss_str2oid(argv[0]);
405 if (mech_type == 0 || mech_type->length == 0) {
411 * set up desired_mechs so it points to mech_type.
417 desired_mechs->elements = mech_type;
505 /* mech_type and desired_mechs are allocated above. Release it here */
507 FREE(mech_type->elements, mech_type
529 gss_OID mech_type; local
777 gss_OID mech_type = (gss_OID) 0; local
1026 gss_OID mech_type; local
1692 gss_OID mech_type = (gss_OID) 0; local
[all...]

Completed in 94 milliseconds

1234