diff options
Diffstat (limited to 'src')
3 files changed, 3 insertions, 3 deletions
diff --git a/src/DotNetOpenAuth/Messaging/MessagingUtilities.cs b/src/DotNetOpenAuth/Messaging/MessagingUtilities.cs index 88e9ab0..aebe98c 100644 --- a/src/DotNetOpenAuth/Messaging/MessagingUtilities.cs +++ b/src/DotNetOpenAuth/Messaging/MessagingUtilities.cs @@ -430,7 +430,7 @@ namespace DotNetOpenAuth.Messaging { // Also we need to sort the dictionary's keys so that we sign in the same order as we did // the last time. var sortedData = new SortedDictionary<string, string>(data, StringComparer.OrdinalIgnoreCase); - return ComputeHash(algorithm, sortedData, encoding); + return ComputeHash(algorithm, (IEnumerable<KeyValuePair<string, string>>)sortedData, encoding); } /// <summary> diff --git a/src/DotNetOpenAuth/OAuthWrap/ChannelElements/TimestampEncoder.cs b/src/DotNetOpenAuth/OAuthWrap/ChannelElements/TimestampEncoder.cs index 32eac62..d4b113a 100644 --- a/src/DotNetOpenAuth/OAuthWrap/ChannelElements/TimestampEncoder.cs +++ b/src/DotNetOpenAuth/OAuthWrap/ChannelElements/TimestampEncoder.cs @@ -18,7 +18,7 @@ namespace DotNetOpenAuth.OAuthWrap.ChannelElements { /// <summary> /// Initializes a new instance of the <see cref="TimestampEncoder"/> class. /// </summary> - internal TimestampEncoder() { + public TimestampEncoder() { } /// <summary> diff --git a/src/DotNetOpenAuth/OAuthWrap/ChannelElements/VerificationCode.cs b/src/DotNetOpenAuth/OAuthWrap/ChannelElements/VerificationCode.cs index cc7f764..cd26dd0 100644 --- a/src/DotNetOpenAuth/OAuthWrap/ChannelElements/VerificationCode.cs +++ b/src/DotNetOpenAuth/OAuthWrap/ChannelElements/VerificationCode.cs @@ -60,7 +60,7 @@ namespace DotNetOpenAuth.OAuthWrap.ChannelElements { [MessagePart] internal string Nonce { get; set; } - [MessagePart("timestamp", Encoder = typeof(TimestampEncoder))] + [MessagePart("timestamp", IsRequired = true, Encoder = typeof(TimestampEncoder))] internal DateTime CreationDateUtc { get; set; } [MessagePart("sig")] |