Author: toshok
Date: 2006-01-10 14:25:06 -0500 (Tue, 10 Jan 2006)
New Revision: 55332

Modified:
   trunk/mcs/class/System.Web/System.Web.Configuration_2.0/ChangeLog
   trunk/mcs/class/System.Web/System.Web.Configuration_2.0/MachineKeySection.cs
Log:
2006-01-10  Chris Toshok  <[EMAIL PROTECTED]>

        * MachineKeySection.cs (ValidationKeyBytes, DecryptionKeyBytes,
        DecryptionKey192Bits): if the keys are null, generate them.  Fixes
        Page.EnableViewStateMac support.



Modified: trunk/mcs/class/System.Web/System.Web.Configuration_2.0/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Configuration_2.0/ChangeLog   
2006-01-10 19:18:59 UTC (rev 55331)
+++ trunk/mcs/class/System.Web/System.Web.Configuration_2.0/ChangeLog   
2006-01-10 19:25:06 UTC (rev 55332)
@@ -1,3 +1,9 @@
+2006-01-10  Chris Toshok  <[EMAIL PROTECTED]>
+
+       * MachineKeySection.cs (ValidationKeyBytes, DecryptionKeyBytes,
+       DecryptionKey192Bits): if the keys are null, generate them.  Fixes
+       Page.EnableViewStateMac support.
+
 2006-01-09  Chris Toshok  <[EMAIL PROTECTED]>
 
        * RoleManagerSection.cs, SqlCacheDepencendySection.cs,

Modified: 
trunk/mcs/class/System.Web/System.Web.Configuration_2.0/MachineKeySection.cs
===================================================================
--- 
trunk/mcs/class/System.Web/System.Web.Configuration_2.0/MachineKeySection.cs    
    2006-01-10 19:18:59 UTC (rev 55331)
+++ 
trunk/mcs/class/System.Web/System.Web.Configuration_2.0/MachineKeySection.cs    
    2006-01-10 19:25:06 UTC (rev 55332)
@@ -191,15 +191,27 @@
                }
                
                internal byte [] ValidationKeyBytes {
-                       get { return validation_key; }
+                       get {
+                               if (validation_key == null)
+                                       SetValidationKey (ValidationKey);
+                               return validation_key;
+                       }
                }
 
                internal byte [] DecryptionKeyBytes {
-                       get { return decryption_key; }
+                       get {
+                               if (decryption_key == null)
+                                       SetDecryptionKey (DecryptionKey);
+                               return decryption_key;
+                       }
                }
 
                internal byte [] DecryptionKey192Bits {
-                       get { return decryption_key_192bits; }
+                       get {
+                               if (decryption_key_192bits == null)
+                                       SetDecryptionKey (DecryptionKey);
+                               return decryption_key_192bits;
+                       }
                }
 #endregion
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to