diff options
author | Simon Josefsson <simon@josefsson.org> | 2011-11-09 00:43:58 +0100 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2011-11-09 00:48:15 +0100 |
commit | 21caff388b360fca7a774ed5206447ba9ebf4f94 (patch) | |
tree | 0ff149b18a77253e9cb9f5a6a26102cc7b2d83f4 /src | |
parent | fe0a92df94869abd48a8e7a576f9b81867a9c420 (diff) | |
download | gnutls-21caff388b360fca7a774ed5206447ba9ebf4f94.tar.gz |
Simplify static library renaming hack.
Diffstat (limited to 'src')
-rw-r--r-- | src/certtool-common.c | 12 | ||||
-rw-r--r-- | src/certtool.c | 22 | ||||
-rw-r--r-- | src/cli.c | 2 | ||||
-rw-r--r-- | src/crywrap/crywrap.c | 2 |
4 files changed, 19 insertions, 19 deletions
diff --git a/src/certtool-common.c b/src/certtool-common.c index 7e547a6276..9f87ae8898 100644 --- a/src/certtool-common.c +++ b/src/certtool-common.c @@ -281,7 +281,7 @@ load_private_key (int mand, common_info_st * info) return _load_pkcs11_privkey(info->privkey); #endif - dat.data = gl_read_binary_file (info->privkey, &size); + dat.data = read_binary_file (info->privkey, &size); dat.size = size; if (!dat.data) @@ -315,7 +315,7 @@ load_x509_private_key (int mand, common_info_st * info) if (ret < 0) error (EXIT_FAILURE, 0, "privkey_init: %s", gnutls_strerror (ret)); - dat.data = gl_read_binary_file (info->privkey, &size); + dat.data = read_binary_file (info->privkey, &size); dat.size = size; if (!dat.data) @@ -451,7 +451,7 @@ load_request (common_info_st * info) if (ret < 0) error (EXIT_FAILURE, 0, "crq_init: %s", gnutls_strerror (ret)); - dat.data = gl_read_binary_file (info->request, &size); + dat.data = read_binary_file (info->request, &size); dat.size = size; if (!dat.data) @@ -489,7 +489,7 @@ load_ca_private_key (common_info_st * info) return _load_pkcs11_privkey(info->ca_privkey); #endif - dat.data = gl_read_binary_file (info->ca_privkey, &size); + dat.data = read_binary_file (info->ca_privkey, &size); dat.size = size; if (!dat.data) @@ -520,7 +520,7 @@ load_ca_cert (common_info_st * info) if (ret < 0) error (EXIT_FAILURE, 0, "crt_init: %s", gnutls_strerror (ret)); - dat.data = gl_read_binary_file (info->ca, &size); + dat.data = read_binary_file (info->ca, &size); dat.size = size; if (!dat.data) @@ -562,7 +562,7 @@ load_pubkey (int mand, common_info_st * info) if (ret < 0) error (EXIT_FAILURE, 0, "privkey_init: %s", gnutls_strerror (ret)); - dat.data = gl_read_binary_file (info->pubkey, &size); + dat.data = read_binary_file (info->pubkey, &size); dat.size = size; if (!dat.data) diff --git a/src/certtool.c b/src/certtool.c index 09f31e28f9..824165a478 100644 --- a/src/certtool.c +++ b/src/certtool.c @@ -1155,7 +1155,7 @@ certificate_info (int pubkey, common_info_st * cinfo) gnutls_datum_t pem; unsigned int crt_num; - pem.data = gl_fread_file (infile, &size); + pem.data = fread_file (infile, &size); pem.size = size; crt_num = MAX_CRTS; @@ -1218,7 +1218,7 @@ pgp_certificate_info (void) gnutls_datum_t pem, out_data; unsigned int verify_status; - pem.data = gl_fread_file (infile, &size); + pem.data = fread_file (infile, &size); pem.size = size; ret = gnutls_openpgp_crt_init (&crt); @@ -1405,7 +1405,7 @@ pgp_ring_info (void) int ret, i, count; gnutls_datum_t pem; - pem.data = gl_fread_file (infile, &size); + pem.data = fread_file (infile, &size); pem.size = size; ret = gnutls_openpgp_keyring_init (&ring); @@ -1526,7 +1526,7 @@ crl_info (void) if (ret < 0) error (EXIT_FAILURE, 0, "crl_init: %s", gnutls_strerror (ret)); - pem.data = gl_fread_file (infile, &size); + pem.data = fread_file (infile, &size); pem.size = size; if (!pem.data) @@ -1582,7 +1582,7 @@ crq_info (void) if (ret < 0) error (EXIT_FAILURE, 0, "crq_init: %s", gnutls_strerror (ret)); - pem.data = gl_fread_file (infile, &size); + pem.data = fread_file (infile, &size); pem.size = size; if (!pem.data) @@ -2159,7 +2159,7 @@ verify_chain (void) char *buf; size_t size; - buf = gl_fread_file (infile, &size); + buf = fread_file (infile, &size); if (buf == NULL) error (EXIT_FAILURE, errno, "reading chain"); @@ -2180,13 +2180,13 @@ verify_certificate (common_info_st * cinfo) if (ca_file == NULL) error (EXIT_FAILURE, errno, "opening CA file"); - cert = gl_fread_file (infile, &cert_size); + cert = fread_file (infile, &cert_size); if (cert == NULL) error (EXIT_FAILURE, errno, "reading certificate chain"); cert[cert_size] = 0; - cas = gl_fread_file (ca_file, &ca_size); + cas = fread_file (ca_file, &ca_size); if (cas == NULL) error (EXIT_FAILURE, errno, "reading CA list"); @@ -2226,7 +2226,7 @@ verify_crl (common_info_st * cinfo) if (ret < 0) error (EXIT_FAILURE, 0, "crl_init: %s", gnutls_strerror (ret)); - pem.data = gl_fread_file (infile, &size); + pem.data = fread_file (infile, &size); pem.size = size; ret = gnutls_x509_crl_import (crl, &pem, info.incert_format); @@ -2601,7 +2601,7 @@ pkcs12_info (void) if (result < 0) error (EXIT_FAILURE, 0, "p12_init: %s", gnutls_strerror (result)); - data.data = gl_fread_file (infile, &size); + data.data = fread_file (infile, &size); data.size = size; result = gnutls_pkcs12_import (pkcs12, &data, info.incert_format, 0); @@ -2676,7 +2676,7 @@ pkcs7_info (void) if (result < 0) error (EXIT_FAILURE, 0, "p7_init: %s", gnutls_strerror (result)); - data.data = gl_fread_file (infile, &size); + data.data = fread_file (infile, &size); data.size = size; result = gnutls_pkcs7_import (pkcs7, &data, info.incert_format); @@ -123,7 +123,7 @@ load_file (const char *file) gnutls_datum_t loaded_file = { NULL, 0 }; size_t length; - loaded_file.data = gl_read_binary_file (file, &length); + loaded_file.data = read_binary_file (file, &length); if (loaded_file.data) loaded_file.size = (unsigned int) length; diff --git a/src/crywrap/crywrap.c b/src/crywrap/crywrap.c index 24ed8fcf83..da41f854d8 100644 --- a/src/crywrap/crywrap.c +++ b/src/crywrap/crywrap.c @@ -203,7 +203,7 @@ load_file (const char *file) gnutls_datum_t loaded_file = { NULL, 0 }; size_t length; - loaded_file.data = gl_read_binary_file (file, &length); + loaded_file.data = read_binary_file (file, &length); if (loaded_file.data) loaded_file.size = (unsigned int) length; |