mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Change license of some files to LGPLv2.1.
* COPYING.LIB: Rename to COPYING.LGPL3. * COPYING.LGPL21: New. * COPYING.GPL2: New. * Makefile.am: Distribute them. * AUTHORS: Update license pointers. Add BSI as copyright holder. * common/compliance.c, common/compliance.h: Add BSI copyright notice. Break overlong lines. * dirmngr/loadswdb.c: Add BSI copyright notices. * dirmngr/server.c: Ditto. * tools/call-dirmngr.c: Change license to LGPLv2.1. Add BSI copyright notice. * tools/call-dirmngr.h: Ditto. * tools/gpg-wks-client.c: Ditto. * tools/gpg-wks-server.c: Ditto. * tools/gpg-wks.h: Ditto. * tools/mime-maker.c: Ditto. * tools/mime-maker.h: Ditto. * tools/mime-parser.c: Ditto. * tools/mime-parser.h: Ditto. * tools/send-mail.c: Ditto. * tools/send-mail.h: Ditto. * tools/wks-receive.c: Ditto. * tools/wks-util.c: Ditto. * tools/rfc822parse.c, tools/rfc822parse.h: Change license to LGPLv2.1. -- For better deployment it seems to be better to make the Web Key Directory code more easily available. Some code was been developed under contract of the BSI. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
6e23416fe6
commit
3419a339d9
25 changed files with 1014 additions and 128 deletions
|
@ -1,5 +1,6 @@
|
|||
/* compliance.c - Functions for compliance modi
|
||||
* Copyright (C) 2017 g10 Code GmbH
|
||||
* Copyright (C) 2017 Bundesamt für Sicherheit in der Informationstechnik
|
||||
*
|
||||
* This file is part of GnuPG.
|
||||
*
|
||||
|
@ -95,7 +96,8 @@ gnupg_initialize_compliance (int gnupg_module_name)
|
|||
* both are compatible from the point of view of this function. */
|
||||
int
|
||||
gnupg_pk_is_compliant (enum gnupg_compliance_mode compliance, int algo,
|
||||
gcry_mpi_t key[], unsigned int keylength, const char *curvename)
|
||||
gcry_mpi_t key[], unsigned int keylength,
|
||||
const char *curvename)
|
||||
{
|
||||
enum { is_rsa, is_dsa, is_pgp5, is_elg_sign, is_ecc } algotype;
|
||||
int result = 0;
|
||||
|
@ -360,9 +362,11 @@ gnupg_cipher_is_allowed (enum gnupg_compliance_mode compliance, int producer,
|
|||
switch (module)
|
||||
{
|
||||
case GNUPG_MODULE_NAME_GPG:
|
||||
return mode == GCRY_CIPHER_MODE_NONE || mode == GCRY_CIPHER_MODE_CFB;
|
||||
return (mode == GCRY_CIPHER_MODE_NONE
|
||||
|| mode == GCRY_CIPHER_MODE_CFB);
|
||||
case GNUPG_MODULE_NAME_GPGSM:
|
||||
return mode == GCRY_CIPHER_MODE_NONE || mode == GCRY_CIPHER_MODE_CBC;
|
||||
return (mode == GCRY_CIPHER_MODE_NONE
|
||||
|| mode == GCRY_CIPHER_MODE_CBC);
|
||||
}
|
||||
log_assert (!"reached");
|
||||
|
||||
|
@ -374,7 +378,8 @@ gnupg_cipher_is_allowed (enum gnupg_compliance_mode compliance, int producer,
|
|||
case CIPHER_ALGO_IDEA:
|
||||
case CIPHER_ALGO_TWOFISH:
|
||||
return (module == GNUPG_MODULE_NAME_GPG
|
||||
&& (mode == GCRY_CIPHER_MODE_NONE || mode == GCRY_CIPHER_MODE_CFB)
|
||||
&& (mode == GCRY_CIPHER_MODE_NONE
|
||||
|| mode == GCRY_CIPHER_MODE_CFB)
|
||||
&& ! producer);
|
||||
default:
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue