shithub: riscv

Download patch

ref: 83de8c0f5f1db32c1f68f8337566fcd1fd171e8f
parent: 4e04e03142a4e43c208dcf62ca165ad3a05dcc96
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Jul 11 06:17:04 EDT 2018

authsrv: log message when no AES key is found for pak

--- a/sys/src/cmd/auth/authsrv.c
+++ b/sys/src/cmd/auth/authsrv.c
@@ -139,6 +139,7 @@
 
 	safecpy(k->id, u, sizeof(k->id));
 	if(!findkey(KEYDB, k->id, k) || tsmemcmp(k->aes, zeros, AESKEYLEN) == 0) {
+		syslog(0, AUTHLOG, "pak-fail no AES key for id %s", k->id);
 		/* make one up so caller doesn't know it was wrong */
 		mkkey(k->id, k);
 		authpak_hash(k, k->id);