Lines Matching defs:mech
540 nread = conn->mech->decode(conn->app_data, buf->data, len,
620 bytes = conn->mech->encode(conn->app_data, from, length, prot_level,
687 /* decoded_len should be size_t or ssize_t but conn->mech->decode returns an
697 if(!conn->mech)
713 decoded_len = conn->mech->decode(conn->app_data, buf, decoded_len,
818 const struct Curl_sec_client_mech *mech = &Curl_krb5_client_mech;
820 tmp_allocation = realloc(conn->app_data, mech->size);
822 failf(data, "Failed realloc of size %zu", mech->size);
823 mech = NULL;
828 if(mech->init) {
829 ret = mech->init(conn->app_data);
832 mech->name);
837 infof(data, "Trying mechanism %s...", mech->name);
838 ret = ftp_send_command(data, "AUTH %s", mech->name);
846 "returned ftp code: 504).", mech->name);
850 "ftp code: 534).", mech->name);
863 ret = mech->auth(conn->app_data, data, conn);
872 conn->mech = mech;
897 if(conn->mech && conn->mech->end)
898 conn->mech->end(conn->app_data);
910 conn->mech = NULL;