Feb 10, 2012 at 2:32 PM
Edited Feb 10, 2012 at 2:35 PM
Due to a bug in mono 2.10.x, System.Security.Cryptography.HashAlgorithm does not have a Dispose() method. This causes a runtime exception in SshClient's Connect() and Dispose() methods (and possibly in other places too).
I've posted this as a bug against mono (http://bugzilla.xamarin.com/show_bug.cgi?id=3375). Xamarin can be quite slow to respond though so it might be worth considering a workaround. The HashAlgorithm class has a Clear() method which offers equivalent
functionality to Dispose(). I've tested locally that changing all calls to HashAlgorithm.Dispose() to HashAlgorithm.Clear() works under both MS and mono.
I'm happy to provide diffs but in this case, its maybe as easy to describe the changes. The only files affected were:
The only changes were to replace Dispose() with Clear() for HashAlgorithm members.