[prev in list] [next in list] [prev in thread] [next in thread]
List: gnupg-commit-watchers
Subject: [gnutls-commits]cvs: gnutls /libextra gnutls_openpgp.c
From: "Nikos Mavroyanopoulos" <nmav () gnutls ! org>
Date: 2002-05-28 10:23:17
[Download RAW message or body]
nmav Tue May 28 12:23:17 2002 EDT
Modified files:
/gnutls/libextra gnutls_openpgp.c
Log:
Minor fixes. Added documentation for gnutls_certificate_set_openpgp_trustdb() function.
Index: gnutls/libextra/gnutls_openpgp.c
diff -u gnutls/libextra/gnutls_openpgp.c:1.9 gnutls/libextra/gnutls_openpgp.c:1.10
--- gnutls/libextra/gnutls_openpgp.c:1.9 Mon May 27 20:56:31 2002
+++ gnutls/libextra/gnutls_openpgp.c Tue May 28 12:23:17 2002
@@ -1490,6 +1490,7 @@
if (!port)
port = 11371;
+ gnutls_free( res->pgp_key_server);
res->pgp_key_server = gnutls_strdup( keyserver );
if ( res->pgp_key_server == NULL)
return GNUTLS_E_MEMORY_ERROR;
@@ -1499,7 +1500,15 @@
return 0;
}
-int
+/**
+ * gnutls_certificate_set_openpgp_trustdb - Used to set an GnuPG trustdb
+ * @res: the destination context to save the data.
+ * @trustdb: is the trustdb filename
+ *
+ * This funtion will set a GnuPG trustdb which will be used in key
+ * verification functions. Only version 3 trustdb files are supported.
+ *
+ **/int
gnutls_certificate_set_openpgp_trustdb( GNUTLS_CERTIFICATE_CREDENTIALS res,
char* trustdb )
{
@@ -1511,6 +1520,8 @@
format is still used. We don't support this format. */
return GNUTLS_E_OPENPGP_TRUSTDB_VERSION_UNSUPPORTED;
}
+
+ gnutls_free( res->pgp_trustdb);
res->pgp_trustdb = gnutls_strdup( trustdb );
if ( res->pgp_trustdb==NULL )
return GNUTLS_E_MEMORY_ERROR;
_______________________________________________
Gnutls-commits mailing list
Gnutls-commits@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnutls-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic