diff options
Diffstat (limited to 'tests/set_x509_key_file.c')
-rw-r--r-- | tests/set_x509_key_file.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/set_x509_key_file.c b/tests/set_x509_key_file.c index b76e6d6377..504e6dc609 100644 --- a/tests/set_x509_key_file.c +++ b/tests/set_x509_key_file.c @@ -21,6 +21,9 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ +/* This test checks the behavior of gnutls_certificate_set_x509_key_file2() + * when the GNUTLS_CERTIFICATE_API_V2 is set */ + #ifdef HAVE_CONFIG_H #include <config.h> #endif @@ -136,6 +139,8 @@ void doit(void) assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); + gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); + ret = gnutls_certificate_set_x509_trust_mem(clicred, &subca3_cert, GNUTLS_X509_FMT_PEM); if (ret < 0) fail("set_x509_trust_file failed: %s\n", gnutls_strerror(ret)); |