diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-09-16 20:50:35 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-09-16 20:50:35 +0200 |
commit | 53e86c9b3491b429228940d56ffd0523ca945e98 (patch) | |
tree | fba27657b6aa1f3934d8f5180faae7b13efd29e1 /tests/x509cert-tl.c | |
parent | 9e99e32bc282c349c02171537296e3f812527ee9 (diff) | |
download | gnutls-53e86c9b3491b429228940d56ffd0523ca945e98.tar.gz |
small updates
Diffstat (limited to 'tests/x509cert-tl.c')
-rw-r--r-- | tests/x509cert-tl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/x509cert-tl.c b/tests/x509cert-tl.c index c2ff767ee9..7a359927ef 100644 --- a/tests/x509cert-tl.c +++ b/tests/x509cert-tl.c @@ -244,16 +244,16 @@ doit (void) /* test convenience functions in verify-high2.c */ data.data = cert_pem; - data.size = strlen(cert_pem); + data.size = strlen((char*)cert_pem); ret = gnutls_x509_trust_list_add_trust_mem(tl, &data, NULL, GNUTLS_X509_FMT_PEM, 0, 0); if (ret < 1) - fail("gnutls_x509_trust_list_add_trust_mem: %d\n", __LINE__); + fail("gnutls_x509_trust_list_add_trust_mem: %d (%s)\n", __LINE__, gnutls_strerror(ret)); data.data = cert_der; - data.size = sizeof(cert_der); + data.size = sizeof((char*)cert_der); ret = gnutls_x509_trust_list_add_trust_mem(tl, &data, NULL, GNUTLS_X509_FMT_DER, 0, 0); if (ret < 1) - fail("gnutls_x509_trust_list_add_trust_mem: %d\n", __LINE__); + fail("gnutls_x509_trust_list_add_trust_mem: %d (%s)\n", __LINE__, gnutls_strerror(ret)); gnutls_x509_trust_list_deinit(tl, 1); |