Browse Source

devcap: undo a mistake

I forgot we actually are using devcap, and made a mistaken
push to sha256. That's going to be a while on Harvey.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Ronald G. Minnich 7 years ago
parent
commit
ae20d5ee7d
1 changed files with 1 additions and 3 deletions
  1. 1 3
      sys/src/9/port/devcap.c

+ 1 - 3
sys/src/9/port/devcap.c

@@ -237,9 +237,7 @@ capwrite(Chan *c, void *va, int32_t n, int64_t m)
 		if(key == nil)
 			error(Eshort);
 		*key++ = 0;
-		panic("need a sha256");
-		//hmac_sha1((uint8_t*)from, strlen(from), (uint8_t*)key,
-		//strlen(key), hash, nil);
+		hmac_sha1((uint8_t*)from, strlen(from), (uint8_t*)key, strlen(key), hash, nil);
 
 		p = remcap(hash);
 		if(p == nil){