diff options
author | Marcus Brinkmann <[email protected]> | 2011-10-25 15:37:53 +0000 |
---|---|---|
committer | Marcus Brinkmann <[email protected]> | 2011-10-25 15:38:46 +0000 |
commit | eec0b39a477b3d0da243b53492123d1e82340167 (patch) | |
tree | b5f326187b01f2a198f848e068b8ebdedee45a5f | |
parent | Cast npth_self result for safety. (diff) | |
parent | Allow distribution of dotlock.* also under a modified BSD license (diff) | |
download | gnupg-eec0b39a477b3d0da243b53492123d1e82340167.tar.gz gnupg-eec0b39a477b3d0da243b53492123d1e82340167.zip |
Merge branch 'master' into npth
Conflicts:
common/ChangeLog
-rw-r--r-- | common/ChangeLog | 5 | ||||
-rw-r--r-- | common/dotlock.c | 36 | ||||
-rw-r--r-- | common/dotlock.h | 36 | ||||
-rw-r--r-- | doc/gpgsm.texi | 31 |
4 files changed, 93 insertions, 15 deletions
diff --git a/common/ChangeLog b/common/ChangeLog index d1090e059..840dc03ae 100644 --- a/common/ChangeLog +++ b/common/ChangeLog @@ -1,3 +1,8 @@ +2011-10-24 Werner Koch <[email protected]> + + * dotlock.h, dotlock.c: Add alternative to allow distribution of + these files under a modified BSD license + 2011-10-13 Marcus Brinkmann <[email protected]> * estream.c, exechelp-posix.c, exechelp-w32.c, exechelp-w32ce.c, diff --git a/common/dotlock.c b/common/dotlock.c index 353f2cf1c..b4734b99f 100644 --- a/common/dotlock.c +++ b/common/dotlock.c @@ -27,6 +27,42 @@ * You should have received a copies of the GNU General Public License * and the GNU Lesser General Public License along with this program; * if not, see <http://www.gnu.org/licenses/>. + * + * ALTERNATIVELY, this file may be distributed under the terms of the + * following license, in which case the provisions of this license are + * required INSTEAD OF the GNU Lesser General License or the GNU + * General Public License. If you wish to allow use of your version of + * this file only under the terms of the GNU Lesser General License or + * the GNU General Public License, and not to allow others to use your + * version of this file under the terms of the following license, + * indicate your decision by deleting this paragraph and the license + * below. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, and the entire permission notice in its entirety, + * including the disclaimer of warranties. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. The name of the author may not be used to endorse or promote + * products derived from this software without specific prior + * written permission. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, + * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. */ /* diff --git a/common/dotlock.h b/common/dotlock.h index 5267ceb09..920a81a16 100644 --- a/common/dotlock.h +++ b/common/dotlock.h @@ -26,6 +26,42 @@ * You should have received a copies of the GNU General Public License * and the GNU Lesser General Public License along with this program; * if not, see <http://www.gnu.org/licenses/>. + * + * ALTERNATIVELY, this file may be distributed under the terms of the + * following license, in which case the provisions of this license are + * required INSTEAD OF the GNU Lesser General License or the GNU + * General Public License. If you wish to allow use of your version of + * this file only under the terms of the GNU Lesser General License or + * the GNU General Public License, and not to allow others to use your + * version of this file under the terms of the following license, + * indicate your decision by deleting this paragraph and the license + * below. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, and the entire permission notice in its entirety, + * including the disclaimer of warranties. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. The name of the author may not be used to endorse or promote + * products derived from this software without specific prior + * written permission. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, + * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifndef LIBJNLIB_DOTLOCK_H diff --git a/doc/gpgsm.texi b/doc/gpgsm.texi index 7bfbc9dc6..892083335 100644 --- a/doc/gpgsm.texi +++ b/doc/gpgsm.texi @@ -304,7 +304,7 @@ and to change the default configuration. * Certificate Options:: Certificate related options. * Input and Output:: Input and Output. * CMS Options:: How to change how the CMS is created. -* Esoteric Options:: Doing things one usually don't want to do. +* Esoteric Options:: Doing things one usually do not want to do. @end menu @@ -346,14 +346,14 @@ Change the default name of the policy file to @var{filename}. Specify an agent program to be used for secret key operations. The default value is the @file{/usr/local/bin/gpg-agent}. This is only used as a fallback when the environment variable @code{GPG_AGENT_INFO} is not -set or a running agent can't be connected. +set or a running agent cannot be connected. @item --dirmngr-program @var{file} @opindex dirmnr-program Specify a dirmngr program to be used for @acronym{CRL} checks. The default value is @file{/usr/sbin/dirmngr}. This is only used as a fallback when the environment variable @code{DIRMNGR_INFO} is not set or -a running dirmngr can't be connected. +a running dirmngr cannot be connected. @item --prefer-system-dirmngr @opindex prefer-system-dirmngr @@ -367,7 +367,7 @@ Entirely disable the use of the Dirmngr. @item --no-secmem-warning @opindex no-secmem-warning -Don't print a warning when the so called "secure memory" can't be used. +Do not print a warning when the so called "secure memory" cannot be used. @item --log-file @var{file} @opindex log-file @@ -407,7 +407,7 @@ By default the @acronym{CRL} for trusted root certificates are checked like for any other certificates. This allows a CA to revoke its own certificates voluntary without the need of putting all ever issued certificates into a CRL. The disable option may be used to switch this -extra check off. Due to the caching done by the Dirmngr, there won't be +extra check off. Due to the caching done by the Dirmngr, there will not be any noticeable performance gain. Note, that this also disables possible OCSP checks for trusted root certificates. A more specific way of disabling this check is by adding the ``relax'' keyword to the root CA @@ -428,12 +428,12 @@ command. This option should not be used in a configuration file. @itemx --disable-ocsp @opindex enable-ocsp @opindex disable-ocsp -Be default @acronym{OCSP} checks are disabled. The enable option may +By default @acronym{OCSP} checks are disabled. The enable option may be used to enable OCSP checks via Dirmngr. If @acronym{CRL} checks are also enabled, CRLs will be used as a fallback if for some reason an -OCSP request won't succeed. Note, that you have to allow OCSP +OCSP request will not succeed. Note, that you have to allow OCSP requests in Dirmngr's configuration too (option -@option{--allow-ocsp} and configure dirmngr properly. If you don't do +@option{--allow-ocsp}) and configure Dirmngr properly. If you do not do so you will get the error code @samp{Not supported}. @item --auto-issuer-key-retrieve @@ -463,7 +463,7 @@ Add @var{oid} to the list of ignored certificate extensions. The @code{2.5.29.3}. This option may be used more than once. Critical flagged certificate extensions matching one of the OIDs in the list are treated as if they are actually handled and thus the certificate -won't be rejected due to an unknown critical extension. Use this +will not be rejected due to an unknown critical extension. Use this option with care because extensions are usually flagged as critical for a reason. @@ -505,7 +505,7 @@ Assume the input data is binary encoded. PKCS#12 files. This option may be used to force the passphrase to be encoded in the specified encoding @var{name}. This is useful if the application used to import the key uses a different encoding and thus -won't be able to import a file generated by @command{gpgsm}. Commonly +will not be able to import a file generated by @command{gpgsm}. Commonly used values for @var{name} are @code{Latin1} and @code{CP850}. Note that @command{gpgsm} itself automagically imports any file with a passphrase encoded to the most commonly used encodings. @@ -603,7 +603,7 @@ interoperability problems. @c ******** ESOTERIC OPTIONS *************** @c ******************************************* @node Esoteric Options -@subsection Doing things one usually don't want to do. +@subsection Doing things one usually do not want to do. @table @gnupgtabopt @@ -952,7 +952,7 @@ of af a transfer error, a program error or tampering with the message). @end table @item Error verifying a signature -For some reason the signature could not be verified, i.e. it can't be +For some reason the signature could not be verified, i.e. it cannot be decided whether the signature is valid or invalid. A common reason for this is a missing certificate. @@ -1156,7 +1156,7 @@ Set the recipient for the encryption. @var{userID} should be the internal representation of the key; the server may accept any other way of specification. If this is a valid and trusted recipient the server does respond with OK, otherwise the return is an ERR with the reason why -the recipient can't be used, the encryption will then not be done for +the recipient cannot be used, the encryption will then not be done for this recipient. If the policy is not to encrypt at all if not all recipients are valid, the client has to take care of this. All @code{RECIPIENT} commands are cumulative until a @code{RESET} or an @@ -1204,7 +1204,8 @@ It takes the plaintext from the @code{INPUT} command, writes to the ciphertext to the file descriptor set with the @code{OUTPUT} command, take the recipients from all the recipients set so far. If this command fails the clients should try to delete all output currently done or -otherwise mark it as invalid. @command{GPGSM} does ensure that there won't be any +otherwise mark it as invalid. @command{GPGSM} does ensure that there +will not be any security problem with leftover data on the output in this case. This command should in general not fail, as all necessary checks have @@ -1272,7 +1273,7 @@ to the signer's key. @var{userID} should be the internal representation of the key; the server may accept any other way of specification. If this is a valid and trusted recipient the server does respond with OK, otherwise the return is an ERR with the reason why -the key can't be used, the signature will then not be created using +the key cannot be used, the signature will then not be created using this key. If the policy is not to sign at all if not all keys are valid, the client has to take care of this. All @code{SIGNER} commands are cumulative until a @code{RESET} is done. |