diff options
Diffstat (limited to 'src/certtool.c')
-rw-r--r-- | src/certtool.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/certtool.c b/src/certtool.c index 563152fa28..a409662811 100644 --- a/src/certtool.c +++ b/src/certtool.c @@ -1162,7 +1162,7 @@ certificate_info (int pubkey, common_info_st * cinfo) gnutls_datum_t pem; unsigned int crt_num; - pem.data = fread_file (infile, &size); + pem.data = (void*)fread_file (infile, &size); pem.size = size; crt_num = MAX_CRTS; @@ -1227,7 +1227,7 @@ pgp_certificate_info (void) gnutls_datum_t pem, out_data; unsigned int verify_status; - pem.data = fread_file (infile, &size); + pem.data = (void*)fread_file (infile, &size); pem.size = size; ret = gnutls_openpgp_crt_init (&crt); @@ -1441,7 +1441,7 @@ pgp_ring_info (void) int ret, i, count; gnutls_datum_t pem; - pem.data = fread_file (infile, &size); + pem.data = (void*)fread_file (infile, &size); pem.size = size; ret = gnutls_openpgp_keyring_init (&ring); @@ -1562,7 +1562,7 @@ crl_info (void) if (ret < 0) error (EXIT_FAILURE, 0, "crl_init: %s", gnutls_strerror (ret)); - pem.data = fread_file (infile, &size); + pem.data = (void*)fread_file (infile, &size); pem.size = size; if (!pem.data) @@ -1628,7 +1628,7 @@ crq_info (void) if (ret < 0) error (EXIT_FAILURE, 0, "crq_init: %s", gnutls_strerror (ret)); - pem.data = fread_file (infile, &size); + pem.data = (void*)fread_file (infile, &size); pem.size = size; if (!pem.data) @@ -2044,7 +2044,7 @@ static int detailed_verification(gnutls_x509_crt_t cert, strcpy(name, "unnumbered"); else { - data.data = tmp; + data.data = (void*)tmp; data.size = name_size; name_size = sizeof(name); @@ -2225,7 +2225,7 @@ verify_chain (void) char *buf; size_t size; - buf = fread_file (infile, &size); + buf = (void*)fread_file (infile, &size); if (buf == NULL) error (EXIT_FAILURE, errno, "reading chain"); @@ -2246,13 +2246,13 @@ verify_certificate (common_info_st * cinfo) if (ca_file == NULL) error (EXIT_FAILURE, errno, "opening CA file"); - cert = fread_file (infile, &cert_size); + cert = (void*)fread_file (infile, &cert_size); if (cert == NULL) error (EXIT_FAILURE, errno, "reading certificate chain"); cert[cert_size] = 0; - cas = fread_file (ca_file, &ca_size); + cas = (void*)fread_file (ca_file, &ca_size); if (cas == NULL) error (EXIT_FAILURE, errno, "reading CA list"); @@ -2292,7 +2292,7 @@ verify_crl (common_info_st * cinfo) if (ret < 0) error (EXIT_FAILURE, 0, "crl_init: %s", gnutls_strerror (ret)); - pem.data = fread_file (infile, &size); + pem.data = (void*)fread_file (infile, &size); pem.size = size; ret = gnutls_x509_crl_import (crl, &pem, info.incert_format); @@ -2667,7 +2667,7 @@ pkcs12_info (void) if (result < 0) error (EXIT_FAILURE, 0, "p12_init: %s", gnutls_strerror (result)); - data.data = fread_file (infile, &size); + data.data = (void*)fread_file (infile, &size); data.size = size; result = gnutls_pkcs12_import (pkcs12, &data, info.incert_format, 0); @@ -2742,7 +2742,7 @@ pkcs7_info (void) if (result < 0) error (EXIT_FAILURE, 0, "p7_init: %s", gnutls_strerror (result)); - data.data = fread_file (infile, &size); + data.data = (void*)fread_file (infile, &size); data.size = size; result = gnutls_pkcs7_import (pkcs7, &data, info.incert_format); @@ -2777,7 +2777,7 @@ pkcs7_info (void) if (result < 0) error (EXIT_FAILURE, 0, "encoding: %s", gnutls_strerror (result)); - fputs (b64.data, outfile); + fputs ((void*)b64.data, outfile); gnutls_free (b64.data); } @@ -2808,7 +2808,7 @@ pkcs7_info (void) if (result < 0) error (EXIT_FAILURE, 0, "encoding: %s", gnutls_strerror (result)); - fputs (b64.data, outfile); + fputs ((void*)b64.data, outfile); gnutls_free (b64.data); } } |