From owner-svn-src-all@FreeBSD.ORG Thu Apr 19 15:28:15 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BCA9C1065675; Thu, 19 Apr 2012 15:28:15 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id A93E68FC15; Thu, 19 Apr 2012 15:28:15 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q3JFSF5J094524; Thu, 19 Apr 2012 15:28:15 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q3JFSFQp094522; Thu, 19 Apr 2012 15:28:15 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <201204191528.q3JFSFQp094522@svn.freebsd.org> From: Ed Schouten Date: Thu, 19 Apr 2012 15:28:15 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r234462 - head/lib/libulog X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Apr 2012 15:28:15 -0000 Author: ed Date: Thu Apr 19 15:28:15 2012 New Revision: 234462 URL: http://svn.freebsd.org/changeset/base/234462 Log: 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 Modified: head/lib/libulog/ulog_login.c Modified: head/lib/libulog/ulog_login.c ============================================================================== --- head/lib/libulog/ulog_login.c Thu Apr 19 13:11:17 2012 (r234461) +++ head/lib/libulog/ulog_login.c Thu Apr 19 15:28:15 2012 (r234462) @@ -55,7 +55,7 @@ ulog_fill(struct utmpx *utx, const char 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)); }