mirror of
https://github.com/jakobadam/RDSFactor.git
synced 2025-06-05 03:57:13 +02:00
17 lines
No EOL
538 B
VB.net
17 lines
No EOL
538 B
VB.net
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 |