mirror of
https://github.com/jakobadam/RDSFactor.git
synced 2025-08-04 15:21:30 +02:00
Imported Claus Isager's CICRadarR
This commit is contained in:
commit
249ae5818b
156 changed files with 10807 additions and 0 deletions
17
CICRadarR/NASAuthList.vb
Normal file
17
CICRadarR/NASAuthList.vb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue