Lines Matching refs:mech
532 nread = conn->mech->decode(conn->app_data, buf->data, len, in read_data()
612 bytes = conn->mech->encode(conn->app_data, from, length, prot_level, in do_sec_send()
689 if(!conn->mech) in Curl_sec_read_msg()
705 decoded_len = conn->mech->decode(conn->app_data, buf, decoded_len, in Curl_sec_read_msg()
807 const struct Curl_sec_client_mech *mech = &Curl_krb5_client_mech; in choose_mech() local
809 tmp_allocation = realloc(conn->app_data, mech->size); in choose_mech()
811 failf(data, "Failed realloc of size %zu", mech->size); in choose_mech()
812 mech = NULL; in choose_mech()
817 if(mech->init) { in choose_mech()
818 ret = mech->init(conn->app_data); in choose_mech()
821 mech->name); in choose_mech()
826 infof(data, "Trying mechanism %s...", mech->name); in choose_mech()
827 ret = ftp_send_command(data, "AUTH %s", mech->name); in choose_mech()
835 "returned ftp code: 504).", mech->name); in choose_mech()
839 "ftp code: 534).", mech->name); in choose_mech()
852 ret = mech->auth(conn->app_data, data, conn); in choose_mech()
861 conn->mech = mech; in choose_mech()
886 if(conn->mech && conn->mech->end) in Curl_sec_end()
887 conn->mech->end(conn->app_data); in Curl_sec_end()
899 conn->mech = NULL; in Curl_sec_end()