Lines Matching refs:level
74 enum protection_level level;
89 return level_names[i].level;
93 /* Convert a protocol |level| to its char representation.
95 static char level_to_char(int level) {
96 switch(level) {
372 enum protection_level level)
382 DEBUGASSERT(level > PROT_NONE && level < PROT_LAST);
395 level, conn);
429 enum protection_level level = conn->request_data_prot;
431 DEBUGASSERT(level > PROT_NONE && level < PROT_LAST);
434 infof(conn->data, "Trying to change the protection level after the"
439 /* Bail out if we try to set up the same level */
440 if(conn->data_prot == level)
443 if(level) {
463 /* Now try to negiociate the protection level. */
464 code = ftp_send_command(conn, "PROT %c", level_to_char(level));
470 failf(conn->data, "Failed to set the protection level.");
474 conn->data_prot = level;
475 if(level == PROT_PRIVATE)
476 conn->command_prot = level;
482 Curl_sec_request_prot(struct connectdata *conn, const char *level)
484 enum protection_level l = name_to_level(level);
568 /* Set the requested protection level */