]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/target/iscsi/iscsi_target_nego.c
iommu/vt-d: dmar_parse_one_rmrr: replace WARN_TAINT with pr_warn + add_taint
[linux.git] / drivers / target / iscsi / iscsi_target_nego.c
index 181a32a6f391a0f87042028a33ab411f13f4ea24..685d771b51d410cacfa4bfc444426f6b6c268cfc 100644 (file)
@@ -152,22 +152,11 @@ static u32 iscsi_handle_authentication(
 
        if (strstr("None", authtype))
                return 1;
-#ifdef CANSRP
-       else if (strstr("SRP", authtype))
-               return srp_main_loop(conn, auth, in_buf, out_buf,
-                               &in_length, out_length);
-#endif
        else if (strstr("CHAP", authtype))
                return chap_main_loop(conn, auth, in_buf, out_buf,
                                &in_length, out_length);
-       else if (strstr("SPKM1", authtype))
-               return 2;
-       else if (strstr("SPKM2", authtype))
-               return 2;
-       else if (strstr("KRB5", authtype))
-               return 2;
-       else
-               return 2;
+       /* SRP, SPKM1, SPKM2 and KRB5 are unsupported */
+       return 2;
 }
 
 static void iscsi_remove_failed_auth_entry(struct iscsi_conn *conn)