/titanic_41/usr/src/lib/libgss/ |
H A D | g_canon_name.c | 50 const gss_OID mech_type, in val_canon_name_args() argument 67 if (input_name == GSS_C_NO_NAME || mech_type == GSS_C_NULL_OID) in val_canon_name_args() 76 mech_type, in gss_canonicalize_name() argument 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) { 142 in_union->mech_type, [all …]
|
H A D | g_init_sec_context.c | 108 gss_OID mech_type = GSS_C_NULL_OID; local 121 mech_type = (gss_OID)req_mech_type; 130 mech = __gss_get_mechanism(mech_type); 137 if (mech_type == GSS_C_NULL_OID) 138 mech_type = &mech->mech_type; 145 if (union_name->mech_type && 146 g_OID_equal(union_name->mech_type, mech_type)) { 150 mech_type, union_name, 168 if (generic_gss_copy_oid(&temp_minor_status, mech_type, 169 &union_ctx_id->mech_type) != GSS_S_COMPLETE) { [all …]
|
H A D | g_glue.c | 302 OM_uint32 gssint_import_internal_name (minor_status, mech_type, union_name, in gssint_import_internal_name() argument 305 gss_OID mech_type; 312 mech = gssint_get_mechanism (mech_type); 332 OM_uint32 gssint_export_internal_name(minor_status, mech_type, in gssint_export_internal_name() argument 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->length, &buf, [all …]
|
H A D | g_accept_sec_context.c | 45 gss_OID *mech_type, in val_acc_sec_ctx_args() argument 58 if (mech_type != NULL) in val_acc_sec_ctx_args() 59 *mech_type = GSS_C_NO_OID; in val_acc_sec_ctx_args() 93 mech_type, in gss_accept_sec_context() argument 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 && (*mech_type != GSS_C_NULL_OID)) [all …]
|
H A D | g_compare_name.c | 90 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) { 188 if (union_name2->mech_type) { 194 union_name1->mech_type, 210 (void) __gss_release_internal_name(&temp_minor, union_name1->mech_type,
|
H A D | g_imp_sec_context.c | 98 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->elements); [all …]
|
H A D | g_inquire_context.c | 39 gss_OID *mech_type) in val_inq_ctx_args() argument 53 if (mech_type != NULL) in val_inq_ctx_args() 54 *mech_type = GSS_C_NO_OID; in val_inq_ctx_args() 75 gss_OID *mech_type, in gss_inquire_context() argument 89 mech_type); in gss_inquire_context() 99 mech = __gss_get_mechanism(ctx->mech_type); in gss_inquire_context() 148 if (mech_type) in gss_inquire_context() 149 *mech_type = &mech->mech_type; in gss_inquire_context()
|
H A D | g_dup_name.c | 97 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 D | g_exp_sec_context.c | 97 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 D | g_userok.c | 40 const gss_OID mech_type, in compare_names() argument 55 if (!gss_user.value || !name || !mech_type) in compare_names() 69 mech_type, in compare_names() 115 mech = __gss_get_mechanism(intName->mech_type); in __gss_userok() 120 if (intName->mech_type == NULL) { in __gss_userok() 129 major = compare_names(minor, intName->mech_type, in __gss_userok()
|
H A D | g_dsp_status.c | 63 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,
|
H A D | g_acquire_cred_with_pw.c | 147 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,
|
H A D | g_acquire_cred.c | 184 default_OID.length = mech->mech_type.length; 185 default_OID.elements = mech->mech_type.elements; 391 &mech->mech_type, 401 if (union_name->mech_type && 402 g_OID_equal(union_name->mech_type, 403 &mech->mech_type)) 407 &mech->mech_type, union_name, 485 malloc(mech->mech_type.length)) == NULL) 489 &mech->mech_type); 522 &mech->mech_type, [all …]
|
H A D | gssd_pname_to_uid.c | 144 if (uintName->mech_type) in gsscred_expname_to_unix_cred_ext() 146 uintName->mech_type); in gsscred_expname_to_unix_cred_ext() 496 gss_pname_to_uid(minor, name, mech_type, uidOut) in gss_pname_to_uid() argument 499 const gss_OID mech_type; 520 if (mech_type != NULL) 521 mech = __gss_get_mechanism(mech_type); 527 mech = __gss_get_mechanism(intName->mech_type); 534 if (intName->mech_type == NULL) { 536 mech_type, intName, 548 (void) __gss_release_internal_name(&tmpMinor, &mech->mech_type,
|
H A D | g_rel_name.c | 73 if (union_name->mech_type) { 75 union_name->mech_type, 77 (void) gss_release_oid(minor_status, &union_name->mech_type);
|
H A D | g_imp_name.c | 105 union_name->mech_type = 0; 165 union_name->mech_type, 167 if (union_name->mech_type) 169 &union_name->mech_type); 263 &unionName->mech_type); 363 major = generic_gss_copy_oid(minor, &mechOid, &unionName->mech_type);
|
/titanic_41/usr/src/uts/common/crypto/io/ |
H A D | rsa.c | 82 rsa_mech_type_t mech_type; member 91 rsa_mech_type_t mech_type; member 514 ctxp->mech_type = mechanism->cm_type; in rsa_common_init() 540 rv = rsa_encrypt_common(ctxp->mech_type, ctxp->key, plaintext, in rsaprov_encrypt() 575 if (ctxp->mech_type == RSA_PKCS_MECH_INFO_TYPE || in rsa_free_context() 576 ctxp->mech_type == RSA_X_509_MECH_INFO_TYPE) in rsa_free_context() 588 rsa_encrypt_common(rsa_mech_type_t mech_type, crypto_key_t *key, in rsa_encrypt_common() argument 607 if (mech_type == RSA_PKCS_MECH_INFO_TYPE) { in rsa_encrypt_common() 628 if (mech_type == RSA_PKCS_MECH_INFO_TYPE) { in rsa_encrypt_common() 707 rv = rsa_decrypt_common(ctxp->mech_type, ctxp->key, in rsaprov_decrypt() [all …]
|
H A D | ecc.c | 83 ecc_mech_type_t mech_type; member 93 ecc_mech_type_t mech_type; member 344 check_mech_and_key(ecc_mech_type_t mech_type, crypto_key_t *key, ulong_t class) in check_mech_and_key() argument 351 if (mech_type != ECDSA_SHA1_MECH_INFO_TYPE && in check_mech_and_key() 352 mech_type != ECDSA_MECH_INFO_TYPE) in check_mech_and_key() 455 if (ctxp->mech_type == ECDSA_MECH_INFO_TYPE) in ecc_free_context() 474 ecc_mech_type_t mech_type = mechanism->cm_type; in ecc_sign_verify_common_init() local 501 switch (mech_type) { in ecc_sign_verify_common_init() 518 switch (mech_type) { in ecc_sign_verify_common_init() 529 ctxp->mech_type = mech_type; in ecc_sign_verify_common_init() [all …]
|
/titanic_41/usr/src/cmd/gss/gssd/ |
H A D | gssdtest.c | 352 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) { 417 desired_mechs->elements = mech_type; 507 FREE(mech_type->elements, mech_type->length); 508 FREE(mech_type, sizeof (gss_OID_desc)); 529 gss_OID mech_type; local 580 mech_type = gss_str2oid((char *)GSS_DUMMY_MECH_OID); 582 mech_type = gss_str2oid(argv[0]); [all …]
|
H A D | gssd_clnt_stubs.c | 561 mech_type, in kgss_init_sec_context_wrapped() argument 577 gss_OID mech_type; 639 arg.mech_type.GSS_OID_len = (uint_t)(mech_type != GSS_C_NULL_OID ? 640 mech_type->length : 0); 641 arg.mech_type.GSS_OID_val = (char *)(mech_type != GSS_C_NULL_OID ? 642 mech_type->elements : 0); 775 gss_OID mech_type, in kgss_init_sec_context() argument 816 target_name, mech_type, req_flags, time_req, in kgss_init_sec_context() 835 mech_type, in kgss_accept_sec_context_wrapped() argument 849 gss_OID *mech_type; [all …]
|
H A D | gssd_proc.c | 836 gss_OID mech_type = &mech_type_desc; local 933 if (argp->mech_type.GSS_OID_len == 0) 934 mech_type = GSS_C_NULL_OID; 936 mech_type->length = (OM_uint32)argp->mech_type.GSS_OID_len; 937 mech_type->elements = (void *)argp->mech_type.GSS_OID_val; 1008 mech_type, 1115 gss_OID mech_type; local 1135 res->mech_type.GSS_OID_val = NULL; 1159 res->mech_type.GSS_OID_val = NULL; 1166 res->mech_type.GSS_OID_len = 0; [all …]
|
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/mech/ |
H A D | disp_status.c | 172 mech_type, message_context, status_string) in krb5_gss_display_status() argument 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) in krb5_gss_display_status2() argument 226 gss_OID mech_type; 231 status_type, mech_type, message_context,
|
H A D | krb5_gss_glue.c | 546 input_token, input_chan_bindings, src_name, mech_type, in k5glue_accept_sec_context() argument 555 gss_OID *mech_type; 567 mech_type, 696 mech_type, message_context, status_string) in k5glue_display_status() argument 701 gss_OID mech_type; 706 status_type, mech_type, message_context, 784 target_name, mech_type, req_flags, time_req, in k5glue_init_sec_context() argument 792 gss_OID mech_type; 804 target_name, mech_type, req_flags, 812 lifetime_rec, mech_type, ret_flags, in k5glue_inquire_context() argument [all …]
|
/titanic_41/usr/src/lib/gss_mechs/mech_dh/dh_common/ |
H A D | dh_common.c | 92 gss_OID_desc mech_type, /* OID of mechanism */ in __dh_generic_initialize() argument 121 mech->mech_type = mech_type; in __dh_generic_initialize() 130 context->mech = &mech->mech_type; in __dh_generic_initialize()
|
/titanic_41/usr/src/uts/common/gssapi/ |
H A D | gssd_clnt_stubs.c | 616 const gss_OID mech_type, in kgss_init_sec_context_wrapped() argument 685 arg.mech_type.GSS_OID_len = (uint_t)(mech_type != GSS_C_NULL_OID ? in kgss_init_sec_context_wrapped() 686 mech_type->length : 0); in kgss_init_sec_context_wrapped() 687 arg.mech_type.GSS_OID_val = (char *)(mech_type != GSS_C_NULL_OID ? in kgss_init_sec_context_wrapped() 688 mech_type->elements : 0); in kgss_init_sec_context_wrapped() 843 const gss_OID mech_type, in kgss_init_sec_context() argument 894 target_name, mech_type, req_flags, time_req, in kgss_init_sec_context() 929 gss_OID *mech_type, in kgss_accept_sec_context_wrapped() argument 1011 if (mech_type != NULL) in kgss_accept_sec_context_wrapped() 1012 *mech_type = NULL; in kgss_accept_sec_context_wrapped() [all …]
|