[Modify] Polish it
This commit is contained in:
parent
fdd52f3d4e
commit
a64125b4a3
@ -187,11 +187,11 @@ namespace WebSocketSharp.Net
|
|||||||
prefixes.Add (prefix);
|
prefixes.Add (prefix);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static RSACryptoServiceProvider createRSAFromFile (string filename)
|
private static RSACryptoServiceProvider createRSAFromFile (string path)
|
||||||
{
|
{
|
||||||
var rsa = new RSACryptoServiceProvider ();
|
var rsa = new RSACryptoServiceProvider ();
|
||||||
|
|
||||||
var pvk = File.ReadAllBytes (filename);
|
var pvk = File.ReadAllBytes (path);
|
||||||
rsa.ImportCspBlob (pvk);
|
rsa.ImportCspBlob (pvk);
|
||||||
|
|
||||||
return rsa;
|
return rsa;
|
||||||
|
Loading…
Reference in New Issue
Block a user