summaryrefslogtreecommitdiff
path: root/doc/examples/ex-ocsp-client.c
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/ex-ocsp-client.c')
-rw-r--r--doc/examples/ex-ocsp-client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/examples/ex-ocsp-client.c b/doc/examples/ex-ocsp-client.c
index 33eff67a6c..f0b56fffe2 100644
--- a/doc/examples/ex-ocsp-client.c
+++ b/doc/examples/ex-ocsp-client.c
@@ -183,7 +183,7 @@ static gnutls_x509_crt_t load_cert(const char *cert_file)
if (ret < 0)
exit(1);
- data.data = (void *) read_binary_file(cert_file, &size);
+ data.data = (void *) read_file(cert_file, RF_BINARY, &size);
data.size = size;
if (!data.data) {