From 6e085fd13f8f58f226cd8f4af15123bfa12e12e7 Mon Sep 17 00:00:00 2001 From: Bill Fumerola Date: Mon, 3 Feb 2003 22:47:03 +0000 Subject: [PATCH] even the default case in a switch requires some action (add break;) EVP_sha1() returns a const EVP_MD *, so reflect that in the variable we store its return value in. --- usr.sbin/pkg_install/sign/x509.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/pkg_install/sign/x509.c b/usr.sbin/pkg_install/sign/x509.c index 59177342b15..837a81e02f7 100644 --- a/usr.sbin/pkg_install/sign/x509.c +++ b/usr.sbin/pkg_install/sign/x509.c @@ -235,6 +235,7 @@ x509_sign_ok(arg) break; default: + break; } status = EVP_VerifyFinal(md_ctx, @@ -282,7 +283,7 @@ retrieve_x509_marker(filename, sign, userid) int sig_len = 4096; unsigned char * sig_buf; EVP_MD_CTX md_ctx; - EVP_MD * md_type; + const EVP_MD * md_type; EVP_PKEY * pkey; char keyfile[PATH_MAX + 1] = KEYFILE;