Lines Matching defs:mech
218 buf->size = conn->mech->decode(conn->app_data, buf->data, len,
297 bytes = conn->mech->encode(conn->app_data, from, length, prot_level,
338 len -= conn->mech->overhead(conn->app_data, conn->data_prot,
367 /* decoded_len should be size_t or ssize_t but conn->mech->decode returns an
387 decoded_len = conn->mech->decode(conn->app_data, buf, decoded_len,
489 const struct Curl_sec_client_mech * const *mech;
493 for(mech = mechs; (*mech); ++mech) {
494 mech_name = (*mech)->name;
498 infof(data, "Skipping mechanism with empty name (%p)\n", (void *)mech);
501 tmp_allocation = realloc(conn->app_data, (*mech)->size);
503 failf(data, "Failed realloc of size %u", (*mech)->size);
504 mech = NULL;
509 if((*mech)->init) {
510 ret = (*mech)->init(conn->app_data);
544 ret = (*mech)->auth(conn->app_data, conn);
554 conn->mech = *mech;
567 return mech != NULL ? CURLE_OK : CURLE_FAILED_INIT;
580 if(conn->mech != NULL && conn->mech->end)
581 conn->mech->end(conn->app_data);
596 conn->mech = NULL;