| /freebsd/crypto/heimdal/lib/gssapi/ |
| H A D | Makefile.in | 157 am__objects_2 = mech/context.lo mech/doxygen.lo \ 158 mech/gss_accept_sec_context.lo mech/gss_acquire_cred.lo \ 159 mech/gss_acquire_cred_ext.lo \ 160 mech/gss_acquire_cred_with_password.lo mech/gss_add_cred.lo \ 161 mech/gss_add_cred_with_password.lo \ 162 mech/gss_add_oid_set_member.lo mech/gss_aeap.lo \ 163 mech/gss_buffer_set.lo mech/gss_canonicalize_name.lo \ 164 mech/gss_compare_name.lo mech/gss_context_time.lo \ 165 mech/gss_create_empty_oid_set.lo mech/gss_cred.lo \ 166 mech/gss_decapsulate_token.lo \ [all …]
|
| H A D | Makefile.am | 11 -I$(srcdir)/mech \ 79 mech/context.h \ 80 mech/context.c \ 81 mech/cred.h \ 82 mech/compat.h \ 83 mech/doxygen.c \ 84 mech/gss_accept_sec_context.c \ 85 mech/gss_acquire_cred.c \ 86 mech/gss_acquire_cred_ext.c \ 87 mech/gss_acquire_cred_with_password.c \ [all …]
|
| /freebsd/crypto/krb5/src/lib/gssapi/mechglue/ |
| H A D | g_initialize.c | 198 if (aMech->mech && aMech->mech->gss_internal_release_oid) { in gss_release_oid() 199 major = aMech->mech->gss_internal_release_oid( in gss_release_oid() 205 map_error(minor_status, aMech->mech); in gss_release_oid() 533 if (minfo->is_interposer && minfo->mech == NULL) in updateMechList() 572 cf->mech_type != &cf->mech->mech_type) in releaseMechInfo() 575 zapfree(cf->mech, sizeof(*cf->mech)); in releaseMechInfo() 603 new_cf->mech = (gss_mechanism)calloc(1, sizeof(struct gss_config)); in gssint_register_mechinfo() 604 if (new_cf->mech == NULL) { in gssint_register_mechinfo() 608 *new_cf->mech = *template->mech; in gssint_register_mechinfo() 610 new_cf->mech->mech_type = *(template->mech_type); in gssint_register_mechinfo() [all …]
|
| H A D | g_glue.c | 155 gss_mechanism mech; in gssint_import_internal_name() local 158 mech = gssint_get_mechanism (mech_type); in gssint_import_internal_name() 159 if (mech == NULL) in gssint_import_internal_name() 169 mech->gss_duplicate_name != NULL) { in gssint_import_internal_name() 170 status = mech->gss_duplicate_name(minor_status, in gssint_import_internal_name() 175 map_error(minor_status, mech); in gssint_import_internal_name() 180 if (mech->gssspi_import_name_by_mech) { in gssint_import_internal_name() 182 status = mech->gssspi_import_name_by_mech(minor_status, public_mech, in gssint_import_internal_name() 186 } else if (mech->gss_import_name) { in gssint_import_internal_name() 187 status = mech->gss_import_name(minor_status, union_name->external_name, in gssint_import_internal_name() [all …]
|
| H A D | g_wrap_iov.c | 71 gss_mechanism mech; in gss_wrap_iov() local 87 mech = gssint_get_mechanism (ctx->mech_type); in gss_wrap_iov() 89 if (mech) { in gss_wrap_iov() 90 if (mech->gss_wrap_iov) { in gss_wrap_iov() 91 status = mech->gss_wrap_iov( in gss_wrap_iov() 100 map_error(minor_status, mech); in gss_wrap_iov() 121 gss_mechanism mech; in gss_wrap_iov_length() local 137 mech = gssint_get_mechanism (ctx->mech_type); in gss_wrap_iov_length() 139 if (mech) { in gss_wrap_iov_length() 140 if (mech->gss_wrap_iov_length) { in gss_wrap_iov_length() [all …]
|
| H A D | g_seal.c | 80 gss_mechanism mech; in gss_wrap() local 97 mech = gssint_get_mechanism (ctx->mech_type); in gss_wrap() 99 if (mech) { in gss_wrap() 100 if (mech->gss_wrap) { in gss_wrap() 101 status = mech->gss_wrap(minor_status, in gss_wrap() 109 map_error(minor_status, mech); in gss_wrap() 110 } else if (mech->gss_wrap_aead || in gss_wrap() 111 (mech->gss_wrap_iov && mech->gss_wrap_iov_length)) { in gss_wrap() 112 status = gssint_wrap_aead(mech, in gss_wrap() 153 gssint_wrap_size_limit_iov_shim(gss_mechanism mech, in gssint_wrap_size_limit_iov_shim() argument [all …]
|
| H A D | g_inq_cred.c | 44 gss_mechanism mech; in gss_inquire_cred() local 78 mech = gssint_get_mechanism(&union_cred->mechs_array[0]); in gss_inquire_cred() 82 mech = gssint_get_mechanism(GSS_C_NULL_OID); in gss_inquire_cred() 88 if (mech == NULL) in gss_inquire_cred() 90 if (!mech->gss_inquire_cred) in gss_inquire_cred() 93 status = mech->gss_inquire_cred(minor_status, mech_cred, in gss_inquire_cred() 97 map_error(minor_status, mech); in gss_inquire_cred() 104 mech, mech_name, name); in gss_inquire_cred() 107 map_error(minor_status, mech); in gss_inquire_cred() 131 &mech->mech_type, &mechs); in gss_inquire_cred() [all …]
|
| H A D | g_saslname.c | 35 oidToSaslName(OM_uint32 *minor, const gss_OID mech, in oidToSaslName() argument 43 if (mech->length > 127) { in oidToSaslName() 49 derBuf[1] = (unsigned char)mech->length; in oidToSaslName() 55 iov[1].data.length = mech->length; in oidToSaslName() 56 iov[1].data.data = (char *)mech->elements; in oidToSaslName() 87 oidToSaslNameAlloc(OM_uint32 *minor, const gss_OID mech, in oidToSaslNameAlloc() argument 99 status = oidToSaslName(minor, mech, (char *)sasl_name->value); in oidToSaslNameAlloc() 117 gss_mechanism mech; in gss_inquire_saslname_for_mech() local 144 mech = gssint_get_mechanism(desired_mech); in gss_inquire_saslname_for_mech() 145 if (mech == NULL) { in gss_inquire_saslname_for_mech() [all …]
|
| H A D | g_store_cred.c | 17 gss_mechanism mech, in store_cred_fallback() argument 29 if (mech->gss_store_cred_into != NULL) { in store_cred_fallback() 30 return mech->gss_store_cred_into(minor_status, mech_cred, in store_cred_fallback() 36 return mech->gss_store_cred(minor_status, mech_cred, in store_cred_fallback() 118 gss_mechanism mech; in gss_store_cred_into() local 151 mech = gssint_get_mechanism(selected_mech); in gss_store_cred_into() 152 if (mech == NULL) in gss_store_cred_into() 155 if (mech->gss_store_cred_into == NULL && in gss_store_cred_into() 159 if (mech->gss_store_cred == NULL && in gss_store_cred_into() 160 mech->gss_store_cred_into == NULL) in gss_store_cred_into() [all …]
|
| H A D | g_mechname.c | 47 return p->mech; in gss_find_mechanism_from_name_type() 58 gss_OID mech) in gss_add_mech_name_type() argument 69 if (p->mech) { in gss_add_mech_name_type() 70 if (!g_OID_equal(mech, p->mech)) { in gss_add_mech_name_type() 71 generic_gss_release_oid(minor_status, &p->mech); in gss_add_mech_name_type() 72 p->mech = 0; in gss_add_mech_name_type() 84 p->mech = 0; in gss_add_mech_name_type() 92 major_status = generic_gss_copy_oid(minor_status, mech, in gss_add_mech_name_type() 93 &p->mech); in gss_add_mech_name_type() 107 if (p->mech) in gss_add_mech_name_type() [all …]
|
| H A D | g_negoex.c | 51 gss_mechanism mech; in gssspi_query_meta_data() local 66 mech = gssint_get_mechanism(selected_mech); in gssspi_query_meta_data() 67 if (mech == NULL) in gssspi_query_meta_data() 69 if (mech->gssspi_query_meta_data == NULL) in gssspi_query_meta_data() 92 status = mech->gssspi_query_meta_data(minor_status, public_mech, in gssspi_query_meta_data() 96 map_error(minor_status, mech); in gssspi_query_meta_data() 119 (void)gssint_delete_internal_sec_context(&minor, &mech->mech_type, in gssspi_query_meta_data() 136 gss_mechanism mech; in gssspi_exchange_meta_data() local 149 mech = gssint_get_mechanism(selected_mech); in gssspi_exchange_meta_data() 150 if (mech == NULL) in gssspi_exchange_meta_data() [all …]
|
| H A D | g_unwrap_aead.c | 65 gssint_unwrap_aead_iov_shim(gss_mechanism mech, in gssint_unwrap_aead_iov_shim() argument 93 assert(mech->gss_unwrap_iov); in gssint_unwrap_aead_iov_shim() 95 status = mech->gss_unwrap_iov(minor_status, context_handle, conf_state, in gssint_unwrap_aead_iov_shim() 102 map_error(minor_status, mech); in gssint_unwrap_aead_iov_shim() 114 gssint_unwrap_aead (gss_mechanism mech, in gssint_unwrap_aead() argument 125 assert(mech != NULL); in gssint_unwrap_aead() 130 if (mech->gss_unwrap_aead) { in gssint_unwrap_aead() 131 status = mech->gss_unwrap_aead(minor_status, in gssint_unwrap_aead() 139 map_error(minor_status, mech); in gssint_unwrap_aead() 140 } else if (mech->gss_unwrap_iov) { in gssint_unwrap_aead() [all …]
|
| H A D | g_set_cred_option.c | 37 gss_mechanism mech, in alloc_union_cred() argument 66 &mech->mech_type, in alloc_union_cred() 98 gss_mechanism mech; in gss_set_cred_option() local 121 mech = gssint_get_mechanism(NULL); in gss_set_cred_option() 122 if (mech == NULL) in gss_set_cred_option() 125 if (mech->gssspi_set_cred_option == NULL) in gss_set_cred_option() 128 status = mech->gssspi_set_cred_option(minor_status, in gss_set_cred_option() 133 map_error(minor_status, mech); in gss_set_cred_option() 139 mech, in gss_set_cred_option() 150 mech = gssint_get_mechanism(&union_cred->mechs_array[i]); in gss_set_cred_option() [all …]
|
| H A D | g_unwrap_iov.c | 70 gss_mechanism mech; in gss_unwrap_iov() local 85 mech = gssint_get_mechanism (ctx->mech_type); in gss_unwrap_iov() 87 if (mech) { in gss_unwrap_iov() 88 if (mech->gss_unwrap_iov) { in gss_unwrap_iov() 89 status = mech->gss_unwrap_iov( in gss_unwrap_iov() 97 map_error(minor_status, mech); in gss_unwrap_iov() 115 gss_mechanism mech; in gss_verify_mic_iov() local 126 mech = gssint_get_mechanism(ctx->mech_type); in gss_verify_mic_iov() 127 if (mech == NULL) in gss_verify_mic_iov() 129 if (mech->gss_verify_mic_iov == NULL) in gss_verify_mic_iov() [all …]
|
| H A D | g_wrap_aead.c | 66 gssint_wrap_aead_iov_shim(gss_mechanism mech, in gssint_wrap_aead_iov_shim() argument 110 assert(mech->gss_wrap_iov_length); in gssint_wrap_aead_iov_shim() 112 status = mech->gss_wrap_iov_length(minor_status, context_handle, in gssint_wrap_aead_iov_shim() 116 map_error(minor_status, mech); in gssint_wrap_aead_iov_shim() 164 assert(mech->gss_wrap_iov); in gssint_wrap_aead_iov_shim() 166 status = mech->gss_wrap_iov(minor_status, context_handle, in gssint_wrap_aead_iov_shim() 172 map_error(minor_status, mech); in gssint_wrap_aead_iov_shim() 180 gssint_wrap_aead(gss_mechanism mech, OM_uint32 *minor_status, in gssint_wrap_aead() argument 190 assert(mech != NULL); in gssint_wrap_aead() 192 if (mech->gss_wrap_aead) { in gssint_wrap_aead() [all …]
|
| H A D | gssd_pname_to_uid.c | 71 const gss_mechanism mech, in attr_localname() argument 84 if (mech->gss_get_name_attribute == NULL) in attr_localname() 87 major = mech->gss_get_name_attribute(minor, in attr_localname() 96 map_error(minor, mech); in attr_localname() 123 gss_mechanism mech; in gss_localname() local 150 mech = gssint_get_mechanism(selected_mech); in gss_localname() 152 mech = gssint_get_mechanism(unionName->mech_type); in gss_localname() 154 if (mech == NULL) in gss_localname() 160 !g_OID_equal(unionName->mech_type, &mech->mech_type))) { in gss_localname() 161 major = gssint_import_internal_name(minor, &mech->mech_type, in gss_localname() [all …]
|
| H A D | g_compare_name.c | 67 gss_mechanism mech = NULL; in gss_compare_name() local 91 mech = gssint_get_mechanism (union_name1->mech_type); in gss_compare_name() 92 if (!mech) in gss_compare_name() 94 if (!mech->gss_compare_name) in gss_compare_name() 109 if (!mech) in gss_compare_name() 111 if (!mech->gss_compare_name) in gss_compare_name() 113 major_status = mech->gss_compare_name(minor_status, in gss_compare_name() 118 map_error(minor_status, mech); in gss_compare_name() 189 if (!mech) in gss_compare_name() 191 if (!mech->gss_compare_name) in gss_compare_name() [all …]
|
| H A D | g_inq_context.c | 87 gss_mechanism mech; in gss_inquire_context() local 109 mech = gssint_get_mechanism (ctx->mech_type); in gss_inquire_context() 111 if (!mech || !mech->gss_inquire_context || !mech->gss_display_name || in gss_inquire_context() 112 !mech->gss_release_name) { in gss_inquire_context() 116 status = mech->gss_inquire_context( in gss_inquire_context() 128 map_error(minor_status, mech); in gss_inquire_context() 136 status = gssint_convert_name_to_union_name(minor_status, mech, in gss_inquire_context() 141 mech->gss_release_name(&temp_minor, &localTargName); in gss_inquire_context() 151 status = gssint_convert_name_to_union_name(minor_status, mech, in gss_inquire_context()
|
| /freebsd/crypto/krb5/src/lib/gssapi/spnego/ |
| H A D | negoex_ctx.c | 99 get_session_keys(OM_uint32 *minor, struct negoex_auth_mech *mech) in get_session_keys() argument 104 major = gss_inquire_sec_context_by_oid(&tmpmin, mech->mech_context, in get_session_keys() 107 major = buffer_set_to_key(minor, buffers, &mech->key); in get_session_keys() 113 major = gss_inquire_sec_context_by_oid(&tmpmin, mech->mech_context, in get_session_keys() 117 major = buffer_set_to_key(minor, buffers, &mech->verify_key); in get_session_keys() 213 struct negoex_auth_mech *mech; in exchange_meta_data() local 225 mech = negoex_locate_auth_scheme(ctx, msg->scheme); in exchange_meta_data() 226 if (mech == NULL) in exchange_meta_data() 229 major = gssspi_exchange_meta_data(&minor, mech->oid, cred, in exchange_meta_data() 230 &mech->mech_context, target, in exchange_meta_data() [all …]
|
| H A D | negoex_util.c | 37 release_auth_mech(struct negoex_auth_mech *mech); 58 struct negoex_auth_mech *mech; in negoex_prep_context_for_spnego() local 60 mech = K5_TAILQ_FIRST(&ctx->negoex_mechs); in negoex_prep_context_for_spnego() 61 if (mech == NULL || mech->mech_context == GSS_C_NO_CONTEXT) in negoex_prep_context_for_spnego() 65 ctx->ctx_handle = mech->mech_context; in negoex_prep_context_for_spnego() 66 mech->mech_context = GSS_C_NO_CONTEXT; in negoex_prep_context_for_spnego() 73 struct negoex_auth_mech *mech; in negoex_prep_context_for_negoex() local 79 mech = K5_TAILQ_FIRST(&ctx->negoex_mechs); in negoex_prep_context_for_negoex() 80 assert(mech != NULL && mech->mech_context == GSS_C_NO_CONTEXT); in negoex_prep_context_for_negoex() 81 mech->mech_context = ctx->ctx_handle; in negoex_prep_context_for_negoex() [all …]
|
| /freebsd/crypto/krb5/src/lib/gssapi/generic/ |
| H A D | util_errmap.c | 42 gss_OID_desc mech; member 64 if (m1.mech.length < m2.mech.length) in mecherror_cmp() 66 if (m1.mech.length > m2.mech.length) in mecherror_cmp() 68 if (m1.mech.length == 0) in mecherror_cmp() 70 return memcmp(m1.mech.elements, m2.mech.elements, m1.mech.length); in mecherror_cmp() 83 if (src.mech.length > 0) { in mecherror_copy() 84 dest->mech.elements = malloc(src.mech.length); in mecherror_copy() 85 if (dest->mech.elements == NULL) in mecherror_copy() 87 memcpy(dest->mech.elements, src.mech.elements, src.mech.length); in mecherror_copy() 89 dest->mech.elements = NULL; in mecherror_copy() [all …]
|
| /freebsd/crypto/heimdal/lib/gssapi/krb5/ |
| H A D | encapsulate.c | 40 const gss_OID mech) in _gssapi_encap_length() argument 44 *len = 1 + 1 + mech->length + data_len; in _gssapi_encap_length() 55 const gss_OID mech) in _gsskrb5_encap_length() argument 57 _gssapi_encap_length(data_len + 2, len, total_len, mech); in _gsskrb5_encap_length() 64 const gss_OID mech) in _gsskrb5_make_header() argument 67 p = _gssapi_make_mech_header(p, len, mech); in _gsskrb5_make_header() 76 const gss_OID mech) in _gssapi_make_mech_header() argument 89 *p++ = mech->length; in _gssapi_make_mech_header() 90 memcpy (p, mech->elements, mech->length); in _gssapi_make_mech_header() 91 p += mech->length; in _gssapi_make_mech_header() [all …]
|
| /freebsd/crypto/heimdal/appl/ftp/ftp/ |
| H A D | security.c | 97 static struct sec_server_mech *mech; variable 108 static struct sec_client_mech *mech; variable 180 buf->size = (*mech->decode)(app_data, buf->data, len, data_prot); in sec_get_data() 256 bytes = (*mech->encode)(app_data, from, length, data_prot, &buf); in sec_send() 287 len -= (*mech->overhead)(app_data, data_prot, len); in sec_write() 353 len = (*mech->decode)(app_data, buf, len, level); in sec_read_msg() 383 len = (*mech->encode)(app_data, buf, strlen(buf), command_prot, &enc); in sec_vfprintf() 437 for(i = 0; (mech = mechs[i]) != NULL; i++){ in auth() 438 if(!strcasecmp(auth_name, mech->name)){ in auth() 439 tmp = realloc(app_data, mech->size); in auth() [all …]
|
| /freebsd/crypto/heimdal/appl/ftp/ftpd/ |
| H A D | security.c | 97 static struct sec_server_mech *mech; variable 108 static struct sec_client_mech *mech; variable 180 buf->size = (*mech->decode)(app_data, buf->data, len, data_prot); in sec_get_data() 256 bytes = (*mech->encode)(app_data, from, length, data_prot, &buf); in sec_send() 287 len -= (*mech->overhead)(app_data, data_prot, len); in sec_write() 353 len = (*mech->decode)(app_data, buf, len, level); in sec_read_msg() 383 len = (*mech->encode)(app_data, buf, strlen(buf), command_prot, &enc); in sec_vfprintf() 437 for(i = 0; (mech = mechs[i]) != NULL; i++){ in auth() 438 if(!strcasecmp(auth_name, mech->name)){ in auth() 439 tmp = realloc(app_data, mech->size); in auth() [all …]
|
| /freebsd/lib/librpcsec_gss/ |
| H A D | rpcsec_gss_conf.c | 64 char* mech; member 239 char *name, *num, *mech; in _rpc_gss_load_qop() local 261 mech = strsep(&p, "\t\n "); in _rpc_gss_load_qop() 262 if (!name || !num || !mech) in _rpc_gss_load_qop() 270 info->mech = strdup(mech); in _rpc_gss_load_qop() 281 if (strcmp(info->mech, minfo->name) == 0) in _rpc_gss_load_qop() 287 if (strcmp(info->mech, minfo->name) == 0) in _rpc_gss_load_qop() 296 rpc_gss_mech_to_oid(const char *mech, gss_OID *oid_ret) in rpc_gss_mech_to_oid() argument 302 if (!strcmp(info->name, mech)) { in rpc_gss_mech_to_oid() 330 rpc_gss_qop_to_num(const char *qop, const char *mech, u_int *num_ret) in rpc_gss_qop_to_num() argument [all …]
|