# AUTHOR <EMAIL@ADDRESS>, YEAR.
# 
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: Defensive Coding Guide\n"
"POT-Creation-Date: 2013-03-12T03:19:44\n"
"PO-Revision-Date: 2013-03-19 15:33+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: Portuguese (Brazil) <trans-pt_br@lists.fedoraproject.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: pt_BR\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

#. Tag: programlisting
#, no-c-format
msgid ""
"\n"
"// Load the trusted CA certificates.\n"
"gnutls_certificate_credentials_t cred = NULL;\n"
"int ret = gnutls_certificate_allocate_credentials (&amp;cred);\n"
"if (ret != GNUTLS_E_SUCCESS) {\n"
"  fprintf(stderr, \"error: gnutls_certificate_allocate_credentials: %s\n"
"\",\n"
"\t    gnutls_strerror(ret));\n"
"  exit(1);\n"
"}\n"
"// gnutls_certificate_set_x509_system_trust needs GNUTLS version 3.0\n"
"// or newer, so we hard-code the path to the certificate store\n"
"// instead.\n"
"static const char ca_bundle[] = \"/etc/ssl/certs/ca-bundle.crt\";\n"
"ret = gnutls_certificate_set_x509_trust_file\n"
"  (cred, ca_bundle, GNUTLS_X509_FMT_PEM);\n"
"if (ret == 0) {\n"
"  fprintf(stderr, \"error: no certificates found in: %s\n"
"\", ca_bundle);\n"
"  exit(1);\n"
"}\n"
"if (ret &lt; 0) {\n"
"  fprintf(stderr, \"error: gnutls_certificate_set_x509_trust_files(%s): %s\n"
"\",\n"
"\t    ca_bundle, gnutls_strerror(ret));\n"
"  exit(1);\n"
"}\n"
msgstr ""
