aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcus Brinkmann <[email protected]>2002-06-27 16:34:10 +0000
committerMarcus Brinkmann <[email protected]>2002-06-27 16:34:10 +0000
commite0d89a9a15888564f71d46968cadef7ce5d9173f (patch)
tree12bd12cf1b97c5cbf4ebabc1c54645d3fa21f7c9
parentuse gpgme_op_keylist_ext_start (diff)
downloadgpgme-e0d89a9a15888564f71d46968cadef7ce5d9173f.tar.gz
gpgme-e0d89a9a15888564f71d46968cadef7ce5d9173f.zip
doc/
2002-06-27 Marcus Brinkmann <[email protected]> * gpgme.texi (Information About Keys): Fix documentation for IDX. (Information About Trust Items): Likewise. gpgme/ 2002-06-27 Marcus Brinkmann <[email protected]> * gpgme.h: Fix documentation of key attribute retrieval functions.
-rw-r--r--doc/ChangeLog5
-rw-r--r--doc/gpgme.texi26
-rw-r--r--gpgme/ChangeLog4
-rw-r--r--gpgme/gpgme.h11
4 files changed, 26 insertions, 20 deletions
diff --git a/doc/ChangeLog b/doc/ChangeLog
index fcf65e30..aaace19c 100644
--- a/doc/ChangeLog
+++ b/doc/ChangeLog
@@ -1,3 +1,8 @@
+2002-06-27 Marcus Brinkmann <[email protected]>
+
+ * gpgme.texi (Information About Keys): Fix documentation for IDX.
+ (Information About Trust Items): Likewise.
+
2002-06-26 Werner Koch <[email protected]>
* gpgme.texi (Importing Keys): Document the return value -1 of
diff --git a/doc/gpgme.texi b/doc/gpgme.texi
index 24e9f928..e3bbfe91 100644
--- a/doc/gpgme.texi
+++ b/doc/gpgme.texi
@@ -1731,10 +1731,10 @@ validity is ``u''.
@deftypefun {const char *} gpgme_key_get_string_attr (@w{GpgmeKey @var{key}}, @w{GpgmeAttr @var{what}}, @w{const void *@var{reserved}}, @w{int @var{idx}})
The function @code{gpgme_key_get_string_attr} returns the value of the
string-representable attribute @var{what} of key @var{key}. If the
-attribute occurs more than once in the key, the index is specified by
-@var{idx}. This applies to attributes of sub keys and user IDs. The
-argument @var{reserved} is reserved for later use and should be
-@code{NULL}.
+attribute is an attribute of a sub key or an user ID, @var{idx}
+specifies the sub key or user ID of which the attribute value is
+returned. The argument @var{reserved} is reserved for later use and
+should be @code{NULL}.
The string returned is only valid as long as the key is valid.
@@ -1746,10 +1746,10 @@ or @var{reserved} not @code{NULL}.
@deftypefun {unsigned long} gpgme_key_get_ulong_attr (@w{GpgmeKey @var{key}}, @w{GpgmeAttr @var{what}}, @w{const void *@var{reserved}}, @w{int @var{idx}})
The function @code{gpgme_key_get_ulong_attr} returns the value of the
number-representable attribute @var{what} of key @var{key}. If the
-attribute occurs more than once in the key, the index is specified by
-@var{idx}. This applies to attributes of sub keys and user IDs. The
-argument @var{reserved} is reserved for later use and should be
-@code{NULL}.
+attribute is an attribute of a sub key or an user ID, @var{idx}
+specifies the sub key or user ID of which the attribute value is
+returned. The argument @var{reserved} is reserved for later use and
+should be @code{NULL}.
The function returns @code{0} if the attribute can't be returned as a
number, @var{key} is not a valid pointer, @var{idx} out of range,
@@ -2030,10 +2030,8 @@ attributes. @xref{Information About Keys}.
@deftypefun {const char *} gpgme_trust_item_get_string_attr (@w{GpgmeTrustItem @var{item}}, @w{GpgmeAttr @var{what}}, @w{const void *@var{reserved}}, @w{int @var{idx}})
The function @code{gpgme_trust_item_get_string_attr} returns the value
of the string-representable attribute @var{what} of trust item
-@var{item}. If the attribute occurs more than once in the trust
-items, the index is specified by @var{idx}. However, currently no
-such attributes exists, so @var{idx} should be @code{0}. The argument
-@var{reserved} is reserved for later use and should be @code{NULL}.
+@var{item}. The arguments @var{idx} and @var{reserved} are reserved
+for later use and should be @code{0} and @code{NULL} respectively.
The string returned is only valid as long as the key is valid.
@@ -2223,7 +2221,7 @@ This function is similar to @code{gpgme_get_sig_status} but may be used
to retrieve more detailed information. @var{ctx} should be the context
used for the last signature verification, @var{idx} is used to enumerate
over all signatures starting with @code{0} and @var{whatidx} should be
-@code{0} for unless otherwise stated.
+@code{0} unless otherwise stated.
The following values may be used for @var{what}:
@table @code
@@ -2244,7 +2242,7 @@ This function is similar to @code{gpgme_get_sig_string_attr} but used
for attributes which can be represented by an @code{unsigned long} data
type. @var{ctx} should be the context used for the last signature
verification, @var{idx} is used to enumerate over all signatures
-starting with @code{0} and @var{whatidx} should be @code{0} for unless
+starting with @code{0} and @var{whatidx} should be @code{0} unless
otherwise stated.
The following values may be used for @var{what}:
diff --git a/gpgme/ChangeLog b/gpgme/ChangeLog
index 4ae40468..e49e8f96 100644
--- a/gpgme/ChangeLog
+++ b/gpgme/ChangeLog
@@ -1,3 +1,7 @@
+2002-06-27 Marcus Brinkmann <[email protected]>
+
+ * gpgme.h: Fix documentation of key attribute retrieval functions.
+
2002-06-26 Werner Koch <[email protected]>
* engine-gpgsm.c (map_assuan_error): Map No_Data_Available to EOF.
diff --git a/gpgme/gpgme.h b/gpgme/gpgme.h
index a29602e3..1ac0e5e9 100644
--- a/gpgme/gpgme.h
+++ b/gpgme/gpgme.h
@@ -493,14 +493,14 @@ void gpgme_key_release (GpgmeKey key);
char *gpgme_key_get_as_xml (GpgmeKey key);
/* Return the value of the attribute WHAT of KEY, which has to be
- representable by a string. IDX specifies a running index if the
- attribute appears more than once in the key. */
+ representable by a string. IDX specifies the sub key or
+ user ID for attributes related to sub keys or user IDs. */
const char *gpgme_key_get_string_attr (GpgmeKey key, GpgmeAttr what,
const void *reserved, int idx);
/* Return the value of the attribute WHAT of KEY, which has to be
- representable by an unsigned integer. IDX specifies a running
- index if the attribute appears more than once in the key. */
+ representable by an unsigned integer. IDX specifies the sub key or
+ user ID for attributes related to sub keys or user IDs. */
unsigned long gpgme_key_get_ulong_attr (GpgmeKey key, GpgmeAttr what,
const void *reserved, int idx);
@@ -508,8 +508,7 @@ unsigned long gpgme_key_get_ulong_attr (GpgmeKey key, GpgmeAttr what,
void gpgme_trust_item_release (GpgmeTrustItem item);
/* Return the value of the attribute WHAT of ITEM, which has to be
- representable by a string. IDX specifies a running index if the
- attribute appears more than once in the key. */
+ representable by a string. */
const char *gpgme_trust_item_get_string_attr (GpgmeTrustItem item,
GpgmeAttr what,
const void *reserved, int idx);