[svn] gcry - r1316 - in trunk: . doc

svn author wk cvs at cvs.gnupg.org
Mon Sep 8 18:56:37 CEST 2008


Author: wk
Date: 2008-09-08 18:56:37 +0200 (Mon, 08 Sep 2008)
New Revision: 1316

Modified:
   trunk/AUTHORS
   trunk/ChangeLog
   trunk/NEWS
   trunk/README
   trunk/configure.ac
   trunk/doc/ChangeLog
   trunk/doc/gcrypt.texi
   trunk/doc/gpl.texi
   trunk/doc/lgpl.texi
Log:
doc cleanups


Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2008-09-05 18:06:09 UTC (rev 1315)
+++ trunk/ChangeLog	2008-09-08 16:56:37 UTC (rev 1316)
@@ -1,3 +1,7 @@
+2008-09-08  Werner Koch  <wk at g10code.com>
+
+	Release 1.4.2.
+
 2008-09-01  Werner Koch  <wk at g10code.com>
 
 	Release 1.4.2rc2.

Modified: trunk/doc/ChangeLog
===================================================================
--- trunk/doc/ChangeLog	2008-09-05 18:06:09 UTC (rev 1315)
+++ trunk/doc/ChangeLog	2008-09-08 16:56:37 UTC (rev 1316)
@@ -1,3 +1,9 @@
+2008-09-08  Werner Koch  <wk at g10code.com>
+
+	* gcrypt.texi: Formatting cleanups.
+	* lgpl.texi (Library Copying): Replace @appendix by @unnumbered.
+	* gpl.texi (Copying): Ditto.
+
 2008-08-27  Werner Koch  <wk at g10code.com>
 
 	* Makefile.am (online): Take care of development versions.

Modified: trunk/AUTHORS
===================================================================
--- trunk/AUTHORS	2008-09-05 18:06:09 UTC (rev 1315)
+++ trunk/AUTHORS	2008-09-08 16:56:37 UTC (rev 1316)
@@ -59,7 +59,7 @@
 
 GNUTLS  Nikolaos Mavrogiannopoulos  2003-11-22
 nmav at gnutls.org
-Orginal code for cipher/rfc2268.c.
+Original code for cipher/rfc2268.c.
 
 LIBGCRYPT	The Written Word	2005-04-15
 Assigns past and future changes. (new: src/libgcrypt.pc.in,

Modified: trunk/NEWS
===================================================================
--- trunk/NEWS	2008-09-05 18:06:09 UTC (rev 1315)
+++ trunk/NEWS	2008-09-08 16:56:37 UTC (rev 1316)
@@ -1,4 +1,4 @@
-Noteworthy changes in version 1.4.2 (unreleased)
+Noteworthy changes in version 1.4.2 (2008-09-08)
 ------------------------------------------------
 
  * The long missing gcry_mpi_lshift function has been added.

Modified: trunk/README
===================================================================
--- trunk/README	2008-09-05 18:06:09 UTC (rev 1315)
+++ trunk/README	2008-09-08 16:56:37 UTC (rev 1316)
@@ -1,6 +1,6 @@
-		    libgcrypt - The GNU crypto library
+		    Libgcrypt - The GNU Crypto Library
 		   ------------------------------------
-  			    Version 1.4.2rc2
+                            Version 1.4.2
  
 
     Copyright 2000, 2002, 2003, 2004, 2007,

Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac	2008-09-05 18:06:09 UTC (rev 1315)
+++ trunk/configure.ac	2008-09-08 16:56:37 UTC (rev 1316)
@@ -27,7 +27,7 @@
 # Set my_issvn to "yes" for non-released code.  Remember to run an
 # "svn up" and "autogen.sh" right before creating a distribution.
 m4_define([my_version], [1.4.2])
-m4_define([my_issvn], [yes])
+m4_define([my_issvn], [no])
 
 m4_define([svn_revision], m4_esyscmd([printf "%d" $(svn info 2>/dev/null \
           | sed -n '/^Revision:/ s/[^0-9]//gp'|head -1)]))

Modified: trunk/doc/gcrypt.texi
===================================================================
--- trunk/doc/gcrypt.texi	2008-09-05 18:06:09 UTC (rev 1315)
+++ trunk/doc/gcrypt.texi	2008-09-08 16:56:37 UTC (rev 1316)
@@ -19,7 +19,7 @@
 under the terms of the GNU General Public License as published by the
 Free Software Foundation; either version 2 of the License, or (at your
 option) any later version. The text of the license can be found in the
-section entitled ``Copying''.
+section entitled ``GNU General Public License''.
 @end quotation
 @end copying
 
@@ -316,7 +316,7 @@
 be used.  So you may want to check that the version is okay right
 after program startup.
 
- at deftypefun const char *gcry_check_version (const char *@var{req_version})
+ at deftypefun {const char *} gcry_check_version (const char *@var{req_version})
 
 The function @code{gcry_check_version} initializes some subsystems used
 by Libgcrypt and must be invoked before any other function in the
@@ -475,10 +475,10 @@
 strict rules may apply.}.
 
 @item
-
 Just like the function @code{gpg_strerror}, the function
 @code{gcry_strerror} is not thread safe.  You have to use
 @code{gpg_strerror_r} instead.
+
 @end itemize
 
 
@@ -517,8 +517,8 @@
 @node FIPS mode
 @section FIPS Mode
 
-Libgcrypt may be used in a FIPS 140 mode.  Note, that this does not
-necessary mean that Libcgrypt is n appoved FIPS 140-2 module.  Check the
+Libgcrypt may be used in a FIPS 140-2 mode.  Note, that this does not
+necessary mean that Libcgrypt is an appoved FIPS 140-2 module.  Check the
 NIST database at @url{http://csrc.nist.gov/groups/STM/cmvp/} to see what
 versions of Libgcrypt are approved.
 
@@ -532,7 +532,7 @@
 If the file @file{/proc/sys/crypto/fips_enabled} exists and contains a
 numeric value other than @code{0}, Libgcrypt is put into FIPS mode at
 initialization time.  Obviously this works only on systems with a
- at code{proc} file system (ie.e GNU/Linux).
+ at code{proc} file system (i.e. GNU/Linux).
 
 @item 
 If the file @file{/etc/gcrypt/fips140.force} exists, Libgcrypt is put
@@ -540,16 +540,16 @@
 hardwired and does not depend on any configuration options.
 
 @item 
-If the applications requests FIPS mode using the control command
+If the application requests FIPS mode using the control command
 @code{GCRYCTL_FORCE_FIPS_MODE}.  This must be done prior to any
 initialization (i.e. before @code{gcry_check_version}).
 
 @end itemize
 
-Note that once Libgcrypt has been put into FIPS mode, it is not possible
-to switch back to standard mode without terminating the process first.
-If the log verbosity level of Libgcrypt has been set to at least 2, the
-state transitions and the selftests are logged.
+Once Libgcrypt has been put into FIPS mode, it is not possible to
+switch back to standard mode without terminating the process first.
+If the logging verbosity level of Libgcrypt has been set to at least
+2, the state transitions and the selftests are logged.
 
 
 
@@ -775,7 +775,7 @@
 @item GCRYCTL_SELFTEST; Arguments: none
 This may be used at anytime to have the library run all implemented
 selftests.  It works in standard and in FIPS mode.  Returns 0 on
-success or an error code.
+success or an error code on failure.
 
 
 @end table
@@ -1593,10 +1593,11 @@
 @xref{Available cipher modes}, for a list of supported cipher modes
 and the according constants.  Note that some modes are incompatible
 with some algorithms - in particular, stream mode
-(GCRY_CIPHER_MODE_STREAM) only works with stream ciphers. Any block
-cipher mode (GCRY_CIPHER_MODE_ECB, GCRY_CIPHER_MODE_CBC,
-GCRY_CIPHER_MODE_CFB, GCRY_CIPHER_MODE_OFB or GCRY_CIPHER_MODE_CTR)
-will work with any block cipher algorithm.
+(@code{GCRY_CIPHER_MODE_STREAM}) only works with stream ciphers. Any
+block cipher mode (@code{GCRY_CIPHER_MODE_ECB},
+ at code{GCRY_CIPHER_MODE_CBC}, @code{GCRY_CIPHER_MODE_CFB},
+ at code{GCRY_CIPHER_MODE_OFB} or @code{GCRY_CIPHER_MODE_CTR}) will work
+with any block cipher algorithm.
 
 The third argument @var{flags} can either be passed as @code{0} or as
 the bit-wise OR of the following constants.
@@ -1789,7 +1790,7 @@
 @end deftypefun
 @c end gcry_cipher_algo_info
 
- at deftypefun const char *gcry_cipher_algo_name (int @var{algo})
+ at deftypefun {const char *} gcry_cipher_algo_name (int @var{algo})
 
 @code{gcry_cipher_algo_name} returns a string with the name of the
 cipher algorithm @var{algo}.  If the algorithm is not known or another
@@ -1851,9 +1852,10 @@
 @uref{http://people.csail.mit.edu/@/rivest/@/sexp.html}) and does not work
 with contexts as most of the other building blocks of Libgcrypt do.
 
+ at noindent
 The following information are stored in S-expressions:
 
- at table @asis
+ at itemize @asis
 @item keys
 
 @item plain text data
@@ -1862,7 +1864,7 @@
 
 @item signatures
 
- at end table
+ at end itemize
 
 @noindent
 To describe how Libgcrypt expect keys, we use examples. Note that
@@ -2785,7 +2787,7 @@
 @var{data_cp}.  FIXME: exact semantics undefined.
 @end deftypefun
 
- at deftypefun unsigned int gcry_ac_data_length (gcry_ac_data_t @var{data})
+ at deftypefun {unsigned int} gcry_ac_data_length (gcry_ac_data_t @var{data})
 Returns the number of named MPI values inside of the data set
 @var{data}.
 @end deftypefun
@@ -3541,7 +3543,7 @@
 The way to read out the calculated message digest is by using the
 function:
 
- at deftypefun unsigned char *gcry_md_read (gcry_md_hd_t @var{h}, int @var{algo})
+ at deftypefun {unsigned char *} gcry_md_read (gcry_md_hd_t @var{h}, int @var{algo})
 
 @code{gcry_md_read} returns the message digest after finalizing the
 calculation.  This function may be used as often as required but it will
@@ -3580,7 +3582,7 @@
 used by names, so two functions are available to map between string
 representations and hash algorithm identifiers.
 
- at deftypefun const char *gcry_md_algo_name (int @var{algo})
+ at deftypefun {const char *} gcry_md_algo_name (int @var{algo})
 
 Map the digest algorithm id @var{algo} to a string representation of the
 algorithm name.  For unknown algorithms this function returns the
@@ -3624,7 +3626,7 @@
 If the length of a message digest is not known, it can be retrieved
 using the following function:
 
- at deftypefun unsigned int gcry_md_get_algo_dlen (int @var{algo})
+ at deftypefun {unsigned int} gcry_md_get_algo_dlen (int @var{algo})
 
 Retrieve the length in bytes of the digest yielded by algorithm
 @var{algo}.  This is often used prior to @code{gcry_md_read} to allocate
@@ -3715,19 +3717,19 @@
 
 @acronym{Libgcypt} offers random numbers of different quality levels:
 
- at deftp {Data type} enum gcry_random_level
-The constants for the random quality levels are of this type.
+ at deftp {Data type} gcry_random_level_t
+The constants for the random quality levels are of this enum type.
 @end deftp
 
 @table @code
 @item GCRY_WEAK_RANDOM
 For all functions, except for @code{gcry_mpi_randomize}, this level maps
-to GCRY_STRONG_RANDOM. IF you do not want this, consider using
+to GCRY_STRONG_RANDOM.  If you do not want this, consider using
 @code{gcry_create_nonce}.
 @item GCRY_STRONG_RANDOM
-Use this level for e.g. session keys and similar purposes.
+Use this level for session keys and similar purposes.
 @item GCRY_VERY_STRONG_RANDOM
-Use this level for e.g. key material.
+Use this level for long term key material.
 @end table
 
 @node Retrieving random numbers
@@ -3739,14 +3741,14 @@
 as defined by @var{level}.
 @end deftypefun
 
- at deftypefun void * gcry_random_bytes (size_t @var{nbytes}, enum gcry_random_level @var{level})
+ at deftypefun {void *} gcry_random_bytes (size_t @var{nbytes}, enum gcry_random_level @var{level})
 
 Convenience function to allocate a memory block consisting of
 @var{nbytes} fresh random bytes using a random quality as defined by
 @var{level}.
 @end deftypefun
 
- at deftypefun void * gcry_random_bytes_secure (size_t @var{nbytes}, enum gcry_random_level @var{level})
+ at deftypefun {void *} gcry_random_bytes_secure (size_t @var{nbytes}, enum gcry_random_level @var{level})
 
 Convenience function to allocate a memory block consisting of
 @var{nbytes} fresh random bytes using a random quality as defined by
@@ -3999,7 +4001,7 @@
 @end example
 @end deftypefun
 
- at deftypefun char *gcry_sexp_nth_string (@w{gcry_sexp_t @var{list}}, @w{int @var{number}})
+ at deftypefun {char *} gcry_sexp_nth_string (@w{gcry_sexp_t @var{list}}, @w{int @var{number}})
 
 This function is used to get and convert data from a @var{list}. The
 data is assumed to be a Nul terminated string.  The caller must
@@ -4045,8 +4047,8 @@
 @node Data types
 @section Data types
 
- at deftp {Data type} gcry_mpi_t
-The @code{gcry_mpi_t} type represents an object to hold an MPI.
+ at deftp {Data type} {gcry_mpi_t}
+This type represents an object to hold an MPI.
 @end deftp
 
 @node Basic functions
@@ -4418,7 +4420,7 @@
 might be used to influence the prime number generation process.
 @end deftypefun
 
- at deftypefun gcry_prime_group_generator (gcry_mpi_t *@var{r_g},
+ at deftypefun gcry_error_t gcry_prime_group_generator (gcry_mpi_t *@var{r_g},
 gcry_mpi_t @var{prime}, gcry_mpi_t *@var{factors}, gcry_mpi_t @var{start_g})
 
 Find a generator for @var{prime} where the factorization of
@@ -4456,18 +4458,18 @@
 @node Memory allocation
 @section Memory allocation
 
- at deftypefun void *gcry_malloc (size_t @var{n})
+ at deftypefun {void *} gcry_malloc (size_t @var{n})
 
 This function tries to allocate @var{n} bytes of memory.  On success
 it returns a pointer to the memory area, in an out-of-core condition,
 it returns NULL.
 @end deftypefun
 
- at deftypefun void *gcry_malloc_secure (size_t @var{n})
+ at deftypefun {void *} gcry_malloc_secure (size_t @var{n})
 Like @code{gcry_malloc}, but uses secure memory.
 @end deftypefun
 
- at deftypefun void *gcry_calloc (size_t @var{n})
+ at deftypefun {void *} gcry_calloc (size_t @var{n})
 
 This function tries to allocate @var{n} bytes of cleared memory
 (i.e. memory that is initialized with zero bytes).  On success it
@@ -4475,11 +4477,11 @@
 returns NULL.
 @end deftypefun
 
- at deftypefun void *gcry_calloc_secure (size_t @var{n})
+ at deftypefun {void *} gcry_calloc_secure (size_t @var{n})
 Like @code{gcry_calloc}, but uses secure memory.
 @end deftypefun
 
- at deftypefun void *gcry_realloc (void *@var{p}, size_t @var{n})
+ at deftypefun {void *} gcry_realloc (void *@var{p}, size_t @var{n})
 
 This function tries to resize the memory area pointed to by @var{p} to
 @var{n} bytes.  On success it returns a pointer to the new memory
@@ -4535,8 +4537,8 @@
 
 Libgcrypt consists of several subsystems (@pxref{fig:subsystems}) and
 all these subsystems provide a public API; this includes the helper
-subsystems like the one for S-expression.  The API style depends on the
-subsystem; in general an open, use, close approach is implemented.  The
+subsystems like the one for S-expressions.  The API style depends on the
+subsystem; in general an open-use-close approach is implemented.  The
 open returns a handle to a context used for all further operations on
 this handle, several functions may then be used on this handle and a
 final close function releases all resources associated with the handle.

Modified: trunk/doc/gpl.texi
===================================================================
--- trunk/doc/gpl.texi	2008-09-05 18:06:09 UTC (rev 1315)
+++ trunk/doc/gpl.texi	2008-09-08 16:56:37 UTC (rev 1316)
@@ -1,5 +1,5 @@
 @node Copying
- at appendix GNU GENERAL PUBLIC LICENSE
+ at unnumbered GNU General Public License
 
 @cindex GPL, GNU General Public License
 @center Version 2, June 1991
@@ -12,7 +12,7 @@
 of this license document, but changing it is not allowed.
 @end display
 
- at appendixsubsec Preamble
+ at heading Preamble
 
   The licenses for most software are designed to take away your
 freedom to share and change it.  By contrast, the GNU General Public
@@ -63,7 +63,7 @@
 modification follow.
 
 @iftex
- at appendixsubsec TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+ at heading TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
 @end iftex
 @ifinfo
 @center TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
@@ -325,7 +325,7 @@
 @end ifinfo
 
 @page
- at unnumberedsec How to Apply These Terms to Your New Programs
+ at heading How to Apply These Terms to Your New Programs
 
   If you develop a new program, and you want it to be of the greatest
 possible use to the public, the best way to achieve this is to make it

Modified: trunk/doc/lgpl.texi
===================================================================
--- trunk/doc/lgpl.texi	2008-09-05 18:06:09 UTC (rev 1315)
+++ trunk/doc/lgpl.texi	2008-09-08 16:56:37 UTC (rev 1316)
@@ -1,5 +1,5 @@
 @node Library Copying
- at appendix GNU LESSER GENERAL PUBLIC LICENSE
+ at unnumbered Lesser General Public License
 
 @cindex LGPL, Lesser General Public License
 @center Version 2.1, February 1999
@@ -16,7 +16,7 @@
 version number 2.1.]
 @end display
 
- at appendixsubsec Preamble
+ at heading Preamble
 
   The licenses for most software are designed to take away your
 freedom to share and change it.  By contrast, the GNU General Public
@@ -119,7 +119,7 @@
 be combined with the library in order to run.
 
 @iftex
- at appendixsubsec TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+ at heading TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
 @end iftex
 @ifinfo
 @center GNU LESSER GENERAL PUBLIC LICENSE
@@ -515,7 +515,7 @@
 @end ifinfo
 
 @page
- at appendixsubsec How to Apply These Terms to Your New Libraries
+ at heading How to Apply These Terms to Your New Libraries
 
   If you develop a new library, and you want it to be of the greatest
 possible use to the public, we recommend making it free software that




More information about the Gnupg-commits mailing list