ssh: Fix whitespace

This commit is contained in:
Hylke Bons 2018-03-10 12:26:24 +00:00
parent dd0e3d36f7
commit 45f91bbacd
2 changed files with 18 additions and 16 deletions

View file

@ -25,6 +25,7 @@ namespace Sparkles {
public static string SSHKeyScan = "ssh-keyscan"; public static string SSHKeyScan = "ssh-keyscan";
protected SSHFetcher (SparkleFetcherInfo info) : base (info) protected SSHFetcher (SparkleFetcherInfo info) : base (info)
{ {
} }
@ -116,11 +117,12 @@ namespace Sparkles {
byte [] sha256_bytes = sha256.ComputeHash (base64_bytes); byte [] sha256_bytes = sha256.ComputeHash (base64_bytes);
string fingerprint = BitConverter.ToString (sha256_bytes); string fingerprint = BitConverter.ToString (sha256_bytes);
Console.WriteLine( fingerprint.ToLower ().Replace ("-", ":")); fingerprint = fingerprint.ToLower ().Replace ("-", ":");
return fingerprint.ToLower ().Replace ("-", ":");
return fingerprint;
} catch (Exception e) { } catch (Exception e) {
Logger.LogInfo ("Fetcher", "Failed to create fingerprint: " + e.Message + " " + e.StackTrace); Logger.LogInfo ("Fetcher", "Failed to create fingerprint: ", e);
return null; return null;
} }
} }