diff options
author | ed <ed@FreeBSD.org> | 2012-04-19 15:28:15 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2012-04-19 15:28:15 +0000 |
commit | d553b8dea8ee34099da74f1b3626adaef64c6d7e (patch) | |
tree | c2a92abbc1005b70cf1fa1d0a15f80b2da785e0b /lib/libulog | |
parent | a2f2c5098852f9caa841af8b1dbb7ab16a206d28 (diff) | |
download | FreeBSD-src-d553b8dea8ee34099da74f1b3626adaef64c6d7e.zip FreeBSD-src-d553b8dea8ee34099da74f1b3626adaef64c6d7e.tar.gz |
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
Diffstat (limited to 'lib/libulog')
-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 3058b9f..a053328 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)); } |