From: Simon Josefsson Date: Sun, 19 Sep 2004 12:31:55 +0000 (+0000) Subject: Fix. X-Git-Tag: gnutls_1_0_21~33 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ea372d6e081681ddd89ac8ede429e2e4f9026b30;p=thirdparty%2Fgnutls.git Fix. --- diff --git a/doc/examples/ex-rfc2818.c b/doc/examples/ex-rfc2818.c index 577c22211c..9ce20e8b89 100644 --- a/doc/examples/ex-rfc2818.c +++ b/doc/examples/ex-rfc2818.c @@ -4,12 +4,12 @@ /* This function will try to verify the peer's certificate, and * also check if the hostname matches, and the activation, expiration dates. */ -void verify_certificate( gnutls_session session, const char* hostname) +void verify_certificate( gnutls_session_t session, const char* hostname) { unsigned int status; - const gnutls_datum* cert_list; + const gnutls_datum_t* cert_list; int cert_list_size, ret; - gnutls_x509_crt cert; + gnutls_x509_crt_t cert; /* This verification function uses the trusted CAs in the credentials