Skip to content

Commit

Permalink
even the default case in a switch requires some action (add break;)
Browse files Browse the repository at this point in the history
EVP_sha1() returns a const EVP_MD *, so reflect that in the variable
we store its return value in.
  • Loading branch information
billf committed Feb 3, 2003
1 parent 3692879 commit cce37e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion usr.sbin/pkg_install/sign/x509.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ x509_sign_ok(arg)
break;

default:
break;
}

status = EVP_VerifyFinal(md_ctx,
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit cce37e9

Please sign in to comment.