Imported Claus Isager's CICRadarR

This commit is contained in:
Claus Isager 2015-03-27 08:39:50 +01:00 committed by Jakob Aarøe Dam
commit 249ae5818b
156 changed files with 10807 additions and 0 deletions

17
CICRadarR/NASAuthList.vb Normal file
View file

@ -0,0 +1,17 @@
Public Class NASAuthList
Inherits System.Collections.Generic.Dictionary(Of String, String)
Public Sub AddSharedSecret(ByVal nasIP As String, ByVal secret As String)
If MyBase.ContainsKey(nasIP) Then
MyBase.Item(nasIP) = secret
Else
MyBase.Add(nasIP, secret)
End If
End Sub
Public Function GetSharedSecret(ByVal nasIP As String) As String
Dim res As String = ""
MyBase.TryGetValue(nasIP, res)
Return res
End Function
End Class