projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New test.
[mono.git]
/
mcs
/
class
/
System.Web
/
System.Web.Configuration
/
MachineKeyConfig.cs
diff --git
a/mcs/class/System.Web/System.Web.Configuration/MachineKeyConfig.cs
b/mcs/class/System.Web/System.Web.Configuration/MachineKeyConfig.cs
index c60f0dd6bd6e481c4b5e468f3d169411236ada85..b60fca55746633275fde707d833d97448c560196 100644
(file)
--- a/
mcs/class/System.Web/System.Web.Configuration/MachineKeyConfig.cs
+++ b/
mcs/class/System.Web/System.Web.Configuration/MachineKeyConfig.cs
@@
-40,10
+40,10
@@
namespace System.Web.Configuration
class MachineKeyConfig
{
byte [] validation_key;
class MachineKeyConfig
{
byte [] validation_key;
- bool isolate_validation;
+
//
bool isolate_validation;
byte [] decryption_key;
byte [] decryption_key_192bits;
byte [] decryption_key;
byte [] decryption_key_192bits;
- bool isolate_decryption; // For us, this is always true by now.
+
//
bool isolate_decryption; // For us, this is always true by now.
MachineKeyValidation validation_type;
static byte [] autogenerated;
MachineKeyValidation validation_type;
static byte [] autogenerated;
@@
-95,15
+95,15
@@
namespace System.Web.Configuration
return result;
}
return result;
}
- static byte [] MakeKey (string key, bool decryption, out bool isolate)
+ static byte [] MakeKey (string key, bool decryption
) //
, out bool isolate)
{
if (key == null || key.StartsWith ("AutoGenerate")){
{
if (key == null || key.StartsWith ("AutoGenerate")){
- isolate = key.IndexOf ("IsolateApps") != 1;
+
//
isolate = key.IndexOf ("IsolateApps") != 1;
return (decryption) ? autogenerated_decrypt : autogenerated;
}
return (decryption) ? autogenerated_decrypt : autogenerated;
}
- isolate = false;
+
//
isolate = false;
int len = key.Length;
if (len < 40 || len > 128 || (len % 2) == 1)
int len = key.Length;
if (len < 40 || len > 128 || (len % 2) == 1)
@@
-114,7
+114,7
@@
namespace System.Web.Configuration
internal void SetValidationKey (string n)
{
internal void SetValidationKey (string n)
{
- validation_key = MakeKey (n, false, out isolate_validation);
+ validation_key = MakeKey (n, false
); //
, out isolate_validation);
}
internal byte [] ValidationKey {
}
internal byte [] ValidationKey {
@@
-123,7
+123,7
@@
namespace System.Web.Configuration
internal void SetDecryptionKey (string n)
{
internal void SetDecryptionKey (string n)
{
- decryption_key = MakeKey (n, true, out isolate_decryption);
+ decryption_key = MakeKey (n, true
); //
, out isolate_decryption);
decryption_key_192bits = new byte [24];
int count = 24;
if (decryption_key.Length < 24)
decryption_key_192bits = new byte [24];
int count = 24;
if (decryption_key.Length < 24)