~ubuntu-branches/ubuntu/precise/gnutls28/precise

« back to all changes in this revision

Viewing changes to tests/parse_ca.c

  • Committer: Package Import Robot
  • Author(s): Andreas Metzler
  • Date: 2011-09-20 19:37:06 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20110920193706-a9phjijvddzg3nkl
Tags: 3.0.3-1
* New upstream version. (Includes a fix for #640639)
* Bump shlibs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2007, 2010 Free Software Foundation, Inc.
 
2
 * Copyright (C) 2007, 2010, 2011 Free Software Foundation, Inc.
3
3
 *
4
4
 * Author: Simon Josefsson
5
5
 *
72
72
  if (rc != 2)
73
73
    fail ("import ca failed: %d\n", rc);
74
74
 
 
75
  ca.data = (unsigned char*) "";
 
76
  ca.size = 0;
 
77
 
 
78
  rc = gnutls_certificate_set_x509_trust_mem (cred, &ca, GNUTLS_X509_FMT_PEM);
 
79
  if (rc != 0)
 
80
    fail ("import ca failed: %d\n", rc);
 
81
 
75
82
  gnutls_certificate_free_credentials (cred);
76
83
 
77
84
  gnutls_global_deinit ();