]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - sshsh256.c
Remove an unused variable.
[PuTTY.git] / sshsh256.c
index 2f7b52ba422f7a074299bfed72fccd39dcf6cbc8..8e3d4fc15429ae1058f4132645658868d82610d7 100644 (file)
@@ -200,7 +200,7 @@ static void *sha256_init(void)
     return s;
 }
 
-static void sha256_bytes(void *handle, void *p, int len)
+static void sha256_bytes(void *handle, const void *p, int len)
 {
     SHA256_State *s = handle;
 
@@ -225,7 +225,7 @@ const struct ssh_hash ssh_sha256 = {
  * HMAC wrapper on it.
  */
 
-static void *sha256_make_context(void)
+static void *sha256_make_context(void *cipher_ctx)
 {
     return snewn(3, SHA256_State);
 }
@@ -326,7 +326,7 @@ const struct ssh_mac ssh_hmac_sha256 = {
     sha256_generate, sha256_verify,
     hmacsha256_start, hmacsha256_bytes,
     hmacsha256_genresult, hmacsha256_verresult,
-    "hmac-sha2-256",
+    "hmac-sha2-256", "hmac-sha2-256-etm@openssh.com",
     32,
     "HMAC-SHA-256"
 };