mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2025-06-08 00:16:27 +00:00
Added locking of SecureString, wasn't thread safe
This commit is contained in:
parent
5328695f5f
commit
00456ea6d2
@ -30,6 +30,8 @@ namespace CryptoExchange.Net
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static string GetString(this SecureString source)
|
public static string GetString(this SecureString source)
|
||||||
|
{
|
||||||
|
lock (source)
|
||||||
{
|
{
|
||||||
string result = null;
|
string result = null;
|
||||||
int length = source.Length;
|
int length = source.Length;
|
||||||
@ -54,4 +56,5 @@ namespace CryptoExchange.Net
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user