Lines Matching refs:mech
552 nread = conn->mech->decode(conn->app_data, in read_data()
637 bytes = conn->mech->encode(conn->app_data, from, length, (int)prot_level, in do_sec_send()
715 if(!conn->mech) in Curl_sec_read_msg()
731 decoded_len = conn->mech->decode(conn->app_data, buf, decoded_len, in Curl_sec_read_msg()
836 const struct Curl_sec_client_mech *mech = &Curl_krb5_client_mech; in choose_mech() local
838 tmp_allocation = realloc(conn->app_data, mech->size); in choose_mech()
840 failf(data, "Failed realloc of size %zu", mech->size); in choose_mech()
841 mech = NULL; in choose_mech()
846 if(mech->init) { in choose_mech()
847 ret = mech->init(conn->app_data); in choose_mech()
850 mech->name); in choose_mech()
856 infof(data, "Trying mechanism %s...", mech->name); in choose_mech()
857 ret = ftp_send_command(data, "AUTH %s", mech->name); in choose_mech()
865 "returned ftp code: 504).", mech->name); in choose_mech()
869 "ftp code: 534).", mech->name); in choose_mech()
882 ret = mech->auth(conn->app_data, data, conn); in choose_mech()
891 conn->mech = mech; in choose_mech()
916 if(conn->mech && conn->mech->end) in Curl_sec_end()
917 conn->mech->end(conn->app_data); in Curl_sec_end()
924 conn->mech = NULL; in Curl_sec_end()