OSDN Git Service

na-get-lib,TLSv1.1/1.2使用不能時のメッセージをWARNINGから単なるINFOに変更
authorttp <ttp@users.sourceforge.jp>
Tue, 10 Oct 2017 15:16:04 +0000 (00:16 +0900)
committerttp <ttp@users.sourceforge.jp>
Tue, 10 Oct 2017 15:16:04 +0000 (00:16 +0900)
na-get-lib/NaGet.SubCommands.SubTask/SecurityProtocolConfigSubTask.cs

index ec04e9b..8c99e14 100644 (file)
@@ -28,14 +28,14 @@ namespace NaGet.SubCommands.SubTask
                                ServicePointManager.SecurityProtocol |= (SecurityProtocolType)768; // SecurityProtocolType.Tls11
                                RaiseTaskSetEvent(TaskEventType.PING, string.Empty, 66);
                        } catch (NotSupportedException) {
                                ServicePointManager.SecurityProtocol |= (SecurityProtocolType)768; // SecurityProtocolType.Tls11
                                RaiseTaskSetEvent(TaskEventType.PING, string.Empty, 66);
                        } catch (NotSupportedException) {
-                               RaiseTaskSetEvent(TaskEventType.WARNING, "TLSv1.1は有効ではありません", 66);
+                               RaiseTaskSetEvent(TaskEventType.INFO, "TLSv1.1は有効ではありません", 66);
                        }
                        
                        try {
                                ServicePointManager.SecurityProtocol |= (SecurityProtocolType)3072; // SecurityProtocolType.Tls12
                                RaiseTaskSetEvent(TaskEventType.PING, string.Empty, 99);
                        } catch (NotSupportedException) {
                        }
                        
                        try {
                                ServicePointManager.SecurityProtocol |= (SecurityProtocolType)3072; // SecurityProtocolType.Tls12
                                RaiseTaskSetEvent(TaskEventType.PING, string.Empty, 99);
                        } catch (NotSupportedException) {
-                               RaiseTaskSetEvent(TaskEventType.WARNING, "TLSv1.2は有効ではありません", 99);
+                               RaiseTaskSetEvent(TaskEventType.INFO, "TLSv1.2は有効ではありません", 99);
                        }
                        
                        RaiseTaskSetEvent(TaskEventType.COMPLETED, "セキュリティプロトコル設定の確認", 100);
                        }
                        
                        RaiseTaskSetEvent(TaskEventType.COMPLETED, "セキュリティプロトコル設定の確認", 100);