Lines Matching refs:mech
211 buf->size = conn->mech->decode(conn->app_data, buf->data, len, in read_data()
290 bytes = conn->mech->encode(conn->app_data, from, length, prot_level, in do_sec_send()
330 len -= conn->mech->overhead(conn->app_data, conn->data_prot, in sec_write()
378 decoded_len = conn->mech->decode(conn->app_data, buf, decoded_len, in Curl_sec_read_msg()
481 const struct Curl_sec_client_mech *mech = &Curl_krb5_client_mech; in choose_mech() local
483 tmp_allocation = realloc(conn->app_data, mech->size); in choose_mech()
485 failf(data, "Failed realloc of size %u", mech->size); in choose_mech()
486 mech = NULL; in choose_mech()
491 if(mech->init) { in choose_mech()
492 ret = mech->init(conn->app_data); in choose_mech()
495 mech->name); in choose_mech()
500 infof(data, "Trying mechanism %s...\n", mech->name); in choose_mech()
501 ret = ftp_send_command(conn, "AUTH %s", mech->name); in choose_mech()
510 "returned ftp code: 504).\n", mech->name); in choose_mech()
514 "ftp code: 534).\n", mech->name); in choose_mech()
527 ret = mech->auth(conn->app_data, conn); in choose_mech()
536 conn->mech = mech; in choose_mech()
561 if(conn->mech != NULL && conn->mech->end) in Curl_sec_end()
562 conn->mech->end(conn->app_data); in Curl_sec_end()
575 conn->mech = NULL; in Curl_sec_end()