From 1e1abb2449d74372082c5f9a3e585b23fc4dbc7a Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Tue, 30 Aug 2005 13:47:12 +0000 Subject: Don't use C99 features. --- doc/examples/ex-verify.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/examples/ex-verify.c b/doc/examples/ex-verify.c index ebf2ac388a..d7afc6be44 100644 --- a/doc/examples/ex-verify.c +++ b/doc/examples/ex-verify.c @@ -1,6 +1,7 @@ #include +#include #include #include @@ -33,7 +34,9 @@ verify_certificate_chain (gnutls_session_t session, int cert_chain_length) { int i; - gnutls_x509_crt_t cert[cert_chain_length]; + gnutls_x509_crt_t *cert; + + cert = malloc (sizeof (*cert) * cert_chain_length); /* Import all the certificates in the chain to * native certificate format. -- cgit v1.2.1