diff options
author | Ed Schouten <ed@FreeBSD.org> | 2012-04-19 15:28:15 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2012-04-19 15:28:15 +0000 |
commit | 08f9924ec6b3f2b7dea8477fc3f3cd77f799f099 (patch) | |
tree | c2a92abbc1005b70cf1fa1d0a15f80b2da785e0b /lib | |
parent | 74b2fab47af2a5c9f201a0b1caa944032fd499cf (diff) | |
download | src-08f9924ec6b3f2b7dea8477fc3f3cd77f799f099.tar.gz src-08f9924ec6b3f2b7dea8477fc3f3cd77f799f099.zip |
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
Notes
Notes:
svn path=/head/; revision=234462
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libulog/ulog_login.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libulog/ulog_login.c b/lib/libulog/ulog_login.c index 3058b9f53399..a053328ac22d 100644 --- a/lib/libulog/ulog_login.c +++ b/lib/libulog/ulog_login.c @@ -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)); } |