Lines Matching defs:level
126 krb5_check_prot(void *app_data, int level)
129 if(level == PROT_CONFIDENTIAL)
136 int level UNUSED_PARAM,
143 (void)level;
160 krb5_encode(void *app_data, const void *from, int length, int level, void **to)
174 level == PROT_PRIVATE,
394 unsigned char level;
408 return level_names[i].level;
412 /* Convert a protocol |level| to its char representation.
414 static char level_to_char(int level)
416 switch(level) {
685 char *buffer, enum protection_level level)
701 DEBUGASSERT(level > PROT_NONE && level < PROT_LAST);
714 level, conn);
744 unsigned char level = conn->request_data_prot;
746 DEBUGASSERT(level > PROT_NONE && level < PROT_LAST);
749 infof(data, "Trying to change the protection level after the"
754 /* Bail out if we try to set up the same level */
755 if(conn->data_prot == level)
758 if(level) {
785 /* Now try to negotiate the protection level. */
786 code = ftp_send_command(data, "PROT %c", level_to_char(level));
792 failf(data, "Failed to set the protection level.");
796 conn->data_prot = level;
797 if(level == PROT_PRIVATE)
798 conn->command_prot = level;
804 Curl_sec_request_prot(struct connectdata *conn, const char *level)
806 unsigned char l = name_to_level(level);
879 /* Set the requested protection level */