diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2011-10-10 21:13:50 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2011-10-10 21:13:50 -0700 |
commit | e28d275f1e328d1cc2939cfadb576db7ed7b56a3 (patch) | |
tree | 35eea80dd2325bb9ba64d60629b56a943b54bac1 /src/DotNetOpenAuth.OpenId.Provider/OpenId/Messages/AssociateDiffieHellmanProviderRequest.cs | |
parent | 6cf86e7495159343bc41b2004fe1b9100c5c1423 (diff) | |
download | DotNetOpenAuth-e28d275f1e328d1cc2939cfadb576db7ed7b56a3.zip DotNetOpenAuth-e28d275f1e328d1cc2939cfadb576db7ed7b56a3.tar.gz DotNetOpenAuth-e28d275f1e328d1cc2939cfadb576db7ed7b56a3.tar.bz2 |
Fixed up Provider so that DH assoc requests don't result in exceptions.
Diffstat (limited to 'src/DotNetOpenAuth.OpenId.Provider/OpenId/Messages/AssociateDiffieHellmanProviderRequest.cs')
-rw-r--r-- | src/DotNetOpenAuth.OpenId.Provider/OpenId/Messages/AssociateDiffieHellmanProviderRequest.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.OpenId.Provider/OpenId/Messages/AssociateDiffieHellmanProviderRequest.cs b/src/DotNetOpenAuth.OpenId.Provider/OpenId/Messages/AssociateDiffieHellmanProviderRequest.cs index f55fe7a..1a3cf5d 100644 --- a/src/DotNetOpenAuth.OpenId.Provider/OpenId/Messages/AssociateDiffieHellmanProviderRequest.cs +++ b/src/DotNetOpenAuth.OpenId.Provider/OpenId/Messages/AssociateDiffieHellmanProviderRequest.cs @@ -31,9 +31,13 @@ namespace DotNetOpenAuth.OpenId.Messages { /// The appropriate association response message. /// </returns> public IProtocolMessage CreateResponseCore() { +#if !ExcludeDiffieHellman var response = new AssociateDiffieHellmanProviderResponse(this.Version, this); response.AssociationType = this.AssociationType; return response; +#else + throw new NotSupportedException(); +#endif } } } |