From owner-svn-src-stable@freebsd.org Tue Sep 15 08:34:33 2015 Return-Path: Delivered-To: svn-src-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C2B2EA0356B; Tue, 15 Sep 2015 08:34:33 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B370C1CCC; Tue, 15 Sep 2015 08:34:33 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t8F8YX45062573; Tue, 15 Sep 2015 08:34:33 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t8F8YXPu062572; Tue, 15 Sep 2015 08:34:33 GMT (envelope-from bapt@FreeBSD.org) Message-Id: <201509150834.t8F8YXPu062572@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f From: Baptiste Daroussin Date: Tue, 15 Sep 2015 08:34:33 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r287814 - stable/9/usr.sbin/pkg X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Sep 2015 08:34:33 -0000 Author: bapt Date: Tue Sep 15 08:34:32 2015 New Revision: 287814 URL: https://svnweb.freebsd.org/changeset/base/287814 Log: Fix build with gcc Modified: stable/9/usr.sbin/pkg/pkg.c Modified: stable/9/usr.sbin/pkg/pkg.c ============================================================================== --- stable/9/usr.sbin/pkg/pkg.c Tue Sep 15 06:48:19 2015 (r287813) +++ stable/9/usr.sbin/pkg/pkg.c Tue Sep 15 08:34:32 2015 (r287814) @@ -502,7 +502,7 @@ load_rsa_public_key_file(const char *fil } static RSA * -load_rsa_public_key_buf(const unsigned char *cert, int certlen) +load_rsa_public_key_buf(unsigned char *cert, int certlen) { RSA *rsa = NULL; BIO *bp; @@ -521,7 +521,7 @@ load_rsa_public_key_buf(const unsigned c static bool -rsa_verify_cert(int fd, const char *sigfile, const unsigned char *key, +rsa_verify_cert(int fd, const char *sigfile, unsigned char *key, int keylen, unsigned char *sig, int siglen) { char sha256[SHA256_DIGEST_LENGTH *2 +1];