diff options
author | Simon Josefsson <simon@josefsson.org> | 2005-08-30 13:47:12 +0000 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2005-08-30 13:47:12 +0000 |
commit | 1e1abb2449d74372082c5f9a3e585b23fc4dbc7a (patch) | |
tree | 698c3b5c7603b03f972b74de19a3d4dcd7faedff | |
parent | f2e663cdb3dad4f3fb3895c513a7868d8e4d38ce (diff) | |
download | gnutls-1e1abb2449d74372082c5f9a3e585b23fc4dbc7a.tar.gz |
Don't use C99 features.
-rw-r--r-- | doc/examples/ex-verify.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 <stdio.h> +#include <stdlib.h> #include <gnutls/gnutls.h> #include <gnutls/x509.h> @@ -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. |