mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
Properly use SHA1_Final() instead of SHA_Final().
In this case it doesn't really matter, as long as we turn a TTY name into a set of shuffled bytes. Still, for correctness we should use the proper function. MFC after: 2 weeks
This commit is contained in:
parent
74b2fab47a
commit
08f9924ec6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=234462
@ -55,7 +55,7 @@ ulog_fill(struct utmpx *utx, const char *line)
|
||||
SHA1_Init(&c);
|
||||
SHA1_Update(&c, "libulog", 7);
|
||||
SHA1_Update(&c, utx->ut_line, sizeof utx->ut_line);
|
||||
SHA_Final(id, &c);
|
||||
SHA1_Final(id, &c);
|
||||
|
||||
memcpy(utx->ut_id, id, MIN(sizeof utx->ut_id, sizeof id));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user