diff options
author | Bill Fumerola <billf@FreeBSD.org> | 2003-02-03 22:47:03 +0000 |
---|---|---|
committer | Bill Fumerola <billf@FreeBSD.org> | 2003-02-03 22:47:03 +0000 |
commit | 6e085fd13f8f58f226cd8f4af15123bfa12e12e7 (patch) | |
tree | 816b07d4febfd98e1cb0d9bc82ac0377292f049d | |
parent | 91f1c2b3cc65f0df743671cfc9d204e906a1e09b (diff) | |
download | src-6e085fd13f8f58f226cd8f4af15123bfa12e12e7.tar.gz src-6e085fd13f8f58f226cd8f4af15123bfa12e12e7.zip |
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.
Notes
Notes:
svn path=/head/; revision=110301
-rw-r--r-- | usr.sbin/pkg_install/sign/x509.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/pkg_install/sign/x509.c b/usr.sbin/pkg_install/sign/x509.c index 59177342b151..837a81e02f7c 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; |