summaryrefslogtreecommitdiff
path: root/pith/smkeys.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2021-04-08 08:53:12 -0600
committerEduardo Chappa <chappa@washington.edu>2021-04-08 08:53:12 -0600
commit7ca059d80aae996ff3031aca15241a55e255a0f5 (patch)
tree5b7ca64156469d2ba4f89d1de00871d75ca4626f /pith/smkeys.c
parent4f13a7bcddc60430203fd545a3c584b3e9fc27aa (diff)
downloadalpine-7ca059d80aae996ff3031aca15241a55e255a0f5.tar.xz
* Clear out some warnings given by gcc 10.
Diffstat (limited to 'pith/smkeys.c')
-rw-r--r--pith/smkeys.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pith/smkeys.c b/pith/smkeys.c
index 760c4b1d..024c8240 100644
--- a/pith/smkeys.c
+++ b/pith/smkeys.c
@@ -201,7 +201,7 @@ ALPINE_self_signed_certificate(char *template, int version, char *pathdir, char
if((req = X509_REQ_new()) != NULL
&& X509_REQ_set_version(req, 0L)){
name = X509_REQ_get_subject_name(req);
- X509_NAME_add_entry_by_txt(name, "CN", MBSTRING_ASC, "Password File Certificate and Key Pair", -1, -1, 0);
+ X509_NAME_add_entry_by_txt(name, "CN", MBSTRING_ASC, (unsigned char *) "Password File Certificate and Key Pair", -1, -1, 0);
if(X509_REQ_set_pubkey(req, pkey)
&& (pcert = X509_new()) != NULL){
if(X509_set_version(pcert, version)
@@ -241,7 +241,6 @@ ALPINE_self_signed_certificate(char *template, int version, char *pathdir, char
build_path(tmp, pathdir, certfile, sizeof(tmp));
if((fp = fopen(tmp, "w")) != NULL
&&(out = BIO_new_fp(fp, BIO_FP_TEXT)) != NULL){
- EVP_PKEY *tpubkey = X509_REQ_get0_pubkey(req);
PEM_write_bio_X509(out, pcert);
BIO_flush(out);
BIO_free(out);