diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2008-08-13 10:57:19 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2008-08-13 10:57:19 -0700 |
commit | d2fe082d6cf334ee4916f7f857053ed914d91432 (patch) | |
tree | df96e2f5010f9578031c7d132e08b632c52fcc4f | |
parent | 18a89390abc42a331a71ea42225b5d92abea0d61 (diff) | |
download | DotNetOpenAuth-d2fe082d6cf334ee4916f7f857053ed914d91432.zip DotNetOpenAuth-d2fe082d6cf334ee4916f7f857053ed914d91432.tar.gz DotNetOpenAuth-d2fe082d6cf334ee4916f7f857053ed914d91432.tar.bz2 |
Fixed build breaks in test lib.
-rw-r--r-- | src/DotNetOpenId.Test/AssociationTestSuite.cs | 7 | ||||
-rw-r--r-- | src/DotNetOpenId.Test/AssociationsTest.cs | 7 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/DotNetOpenId.Test/AssociationTestSuite.cs b/src/DotNetOpenId.Test/AssociationTestSuite.cs index e4fd30a..3333f3a 100644 --- a/src/DotNetOpenId.Test/AssociationTestSuite.cs +++ b/src/DotNetOpenId.Test/AssociationTestSuite.cs @@ -1,14 +1,15 @@ using System;
using System.Collections.Generic;
-using System.Text;
+using System.Security.Cryptography;
using NUnit.Framework;
namespace DotNetOpenId.Test {
[TestFixture]
public class AssociationTestSuite {
static readonly TimeSpan deltaDateTime = TimeSpan.FromSeconds(2);
- byte[] sha1Secret = new byte[CryptUtil.Sha1.HashSize / 8];
- byte[] sha1Secret2 = new byte[CryptUtil.Sha1.HashSize / 8];
+ static HashAlgorithm sha1 = DiffieHellmanUtil.Lookup(Protocol.Default, Protocol.Default.Args.SessionType.DH_SHA1);
+ byte[] sha1Secret = new byte[sha1.HashSize / 8];
+ byte[] sha1Secret2 = new byte[sha1.HashSize / 8];
public AssociationTestSuite() {
// just a little something to make it at all interesting.
diff --git a/src/DotNetOpenId.Test/AssociationsTest.cs b/src/DotNetOpenId.Test/AssociationsTest.cs index 4d6dcfb..01dad58 100644 --- a/src/DotNetOpenId.Test/AssociationsTest.cs +++ b/src/DotNetOpenId.Test/AssociationsTest.cs @@ -1,13 +1,12 @@ using System;
-using System.Collections.Generic;
-using System.Text;
+using System.Security.Cryptography;
using NUnit.Framework;
-using System.Threading;
namespace DotNetOpenId.Test {
[TestFixture]
public class AssociationsTest {
- byte[] sha1Secret = new byte[CryptUtil.Sha1.HashSize / 8];
+ static HashAlgorithm sha1 = DiffieHellmanUtil.Lookup(Protocol.Default, Protocol.Default.Args.SessionType.DH_SHA1);
+ byte[] sha1Secret = new byte[sha1.HashSize / 8];
Associations assocs;
[SetUp]
|