Upstream Source
===============

In General
----------

Copyright (C) 1998-2019 Free Software Foundation, Inc.
Copyright (C) 1997-2019 Werner Koch
Copyright (C) 2001-2011, 2013-2019 g10 Code GmbH
Copyright (C) 2002 Klarälvdalens Datakonsult AB
Copyright (C) 2014 Andreas Schwier <andreas.schwier@cardcontact.de>
Copyright (C) 2016, 2017 Bundesamt für Sicherheit in der Informationstechnik
Copyright (C) 2016 Ineiev <ineiev@gnu.org> (translation)

This file is part of GnuPG.

GnuPG is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

GnuPG is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, see <https://www.gnu.org/licenses/>.

On this system, a copy of the GNU General Public License may be found at
<file:///usr/share/common-licenses/GPL-3>.

common/agent-opt.c, common/argparse.c, common/argparse.h, common/asshelp.c,
common/asshelp.h, common/asshelp2.c, common/ccparray.c, common/ccparray.h,
common/common-defs.h, common/compliance.c, common/compliance.h,
common/convert.c, common/dynload.h, common/exechelp-posix.c, common/exechelp.h,
common/exectool.c, common/exectool.h, common/fwddecl.h, common/get-passphrase.c,
common/get-passphrase.h, common/gettime.c, common/gettime.h, common/gpgrlhelp.c,
common/helpfile.c, common/homedir.c, common/host2net.h, common/i18n.c,
common/init.c, common/init.h, common/iobuf.c, common/iobuf.h,
common/keyserver.h, common/ksba-io-support.c, common/ksba-io-support.h,
common/localename.c, common/logging.c, common/logging.h, common/mapstrings.c,
common/membuf.c, common/membuf.h, common/miscellaneous.c, common/mischelp.c,
common/mischelp.h, common/mkdir_p.c, common/mkdir_p.h, common/name-value.c,
common/name-value.h, common/openpgp-oid.c, common/openpgpdefs.h,
common/percent.c, common/recsel.c, common/recsel.h, common/server-help.c,
common/server-help.h, common/session-env.c, common/session-env.h,
common/sexp-parse.h, common/sexputil.c, common/shareddefs.h, common/signal.c,
common/ssh-utils.c, common/ssh-utils.h, common/status-codes.h, common/status.c,
common/status.h, common/stringhelp.c, common/stringhelp.h, common/strlist.c,
common/strlist.h, common/sysutils.c, common/sysutils.h, common/tlv.c,
common/tlv.h, common/ttyio.c, common/ttyio.h, common/types.h, common/userids.c,
common/userids.h, common/utf8conv.c, common/utf8conv.h, common/util.h,
common/utilproto.h, common/xasprintf.c, common/xreadline.c, common/yesno.c,
common/zb32.c, common/zb32.h, dirmngr/http.c, dirmngr/http.h
--------------------------------------------------------------------------------

Copyright (C) 1994-2013 Free Software Foundation, Inc.
Copyright (C) 1997-2008, 2010-2011, 2013-2017 Werner Koch
Copyright (C) 2003, 2006, 2009, 2010, 2015-2017 g10 Code GmbH
Copyright (C) 2017 Bundesamt für Sicherheit in der Informationstechnik

This file is part of GnuPG.

GnuPG is free software; you can redistribute and/or modify this
part of GnuPG under the terms of either

  - the GNU Lesser General Public License as published by the Free
    Software Foundation; either version 3 of the License, or (at
    your option) any later version.

or

  - 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.

or both in parallel, as here.

GnuPG is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

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 <https://gnu.org/licenses/>.

On this system, a copy of the GNU Lesser General Public License may be found at
<file:///usr/share/common-licenses/LGPL-3>.

On this system, a copy of the GNU General Public License may be found at
<file:///usr/share/common-licenses/GPL-2>.

common/dotlock.c, common/dotlock.h
----------------------------------

Copyright (C) 1998, 2000, 2001, 2003, 2004,
              2005, 2006, 2008, 2010, 2011 Free Software Foundation, Inc.

This file is part of GnuPG.

GnuPG is free software; you can redistribute and/or modify this
part of GnuPG under the terms of either

  - the GNU Lesser General Public License as published by the Free
    Software Foundation; either version 3 of the License, or (at
    your option) any later version.

or

  - 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.

or both in parallel, as here.

GnuPG is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

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 <https://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.

On this system, a copy of the GNU Lesser General Public License may be found at
<file:///usr/share/common-licenses/LGPL-3>.

On this system, a copy of the GNU General Public License may be found at
<file:///usr/share/common-licenses/GPL-2>.

common/b64dec.c, common/b64enc.c, common/mbox-util.c, common/mbox-util.h,
tools/call-dirmngr.c, tools/call-dirmngr.h, tools/gpg-wks-client.c,
tools/gpg-wks-server.c, tools/gpg-wks.h, tools/mime-maker.c, tools/mime-maker.h,
tools/mime-parser.c, tools/mime-parser.h, tools/rfc822parse.c,
tools/rfc822parse.h, tools/send-mail.c, tools/send-mail.h, tools/wks-util.c
--------------------------------------------------------------------------------

Copyright (C) 1998-2011 Free Software Foundation, Inc.
Copyright (C) 1998-2016, 2018 Werner Koch
Copyright (C) 2001, 2003, 2004, 2008, 2010,
              2011, 2016 g10 Code GmbH
Copyright (C) 2016 Bundesamt für Sicherheit in der Informationstechnik

This file is part of GnuPG.

This file is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 2.1 of
the License, or (at your option) any later version.

This file is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with this program; if not, see <https://www.gnu.org/licenses/>.

On this system, a copy of the GNU Lesser General Public License may be found at
<file:///usr/share/common-licenses/LGPL-2.1>.

dirmngr/certcache.c, dirmngr/certcache.h, dirmngr/crlcache.c,
dirmngr/crlcache.h, dirmngr/crlfetch.c, dirmngr/crlfetch.h,
dirmngr/dirmngr-client.c, dirmngr/ldap.c, dirmngr/ldapserver.c,
dirmngr/ldapserver.h, dirmngr/misc.c, dirmngr/misc.h, dirmngr/ocsp.c,
dirmngr/ocsp.h, dirmngr/validate.c, dirmngr/validate.h
---------------------------------------------------------------------

Copyright (C) 2002 Klarälvdalens Datakonsult AB
Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2010, 2017 g10 Code GmbH
Copyright (C) 2001, 2002, 2003, 2004, 2008, 2010 Free Software Foundation, Inc.

This file is part of DirMngr.

DirMngr is free software; you can redistribute it and/or modify
it 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.

DirMngr is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, see <https://www.gnu.org/licenses/>.

On this system, a copy of the GNU General Public License may be found at
<file:///usr/share/common-licenses/GPL-2>.

scd/ccid-driver.c, scd/ccid-driver.h
------------------------------------

Copyright (C) 2003, 2004, 2005, 2006, 2007
              2008, 2009, 2013  Free Software Foundation, Inc.
Written by Werner Koch.

This file is part of GnuPG.

GnuPG is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

GnuPG is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, see <https://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 General Public License. If you wish to
allow use of your version of this file only under the terms of 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.

On this system, a copy of the GNU General Public License may be found at
<file:///usr/share/common-licenses/GPL-3>.

common/mkstrtable.awk
---------------------

Copyright (C) 2003, 2004 g10 Code GmbH

This program is free software; you can redistribute it and/or
modify it 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.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, see <http://www.gnu.org/licenses/>.

As a special exception, g10 Code GmbH gives unlimited permission to
copy, distribute and modify the C source files that are the output
of mkstrtable.awk.  You need not follow the terms of the GNU General
Public License when using or distributing such scripts, even though
portions of the text of mkstrtable.awk appear in them.  The GNU
General Public License (GPL) does govern all other use of the material
that constitutes the mkstrtable.awk program.

Certain portions of the mkstrtable.awk source text are designed to be
copied (in certain cases, depending on the input) into the output of
mkstrtable.awk.  We call these the "data" portions.  The rest of the
mkstrtable.awk source text consists of comments plus executable code
that decides which of the data portions to output in any given case.
We call these comments and executable code the "non-data" portions.
mkstrtable.h never copies any of the non-data portions into its output.

This special exception to the GPL applies to versions of mkstrtable.awk
released by g10 Code GmbH.  When you make and distribute a modified version
of mkstrtable.awk, you may extend this special exception to the GPL to
apply to your modified version as well, *unless* your modified version
has the potential to copy into its output some of the text that was the
non-data portion of the version that you started with.  (In other words,
unless your change moves or copies text from the non-data portions to the
data portions.)  If your modification has such potential, you must delete
any notice of this special exception to the GPL from your modified version.

On this system, a copy of the GNU General Public License may be found at
<file:///usr/share/common-licenses/GPL-2>.

common/gc-opt-flags.h, common/i18n.h, dirmngr/ldap-url.h, tools/addgnupghome,
tools/applygnupgdefaults, tools/clean-sat.c, tools/lspgpot,
tools/mail-signed-keys, tools/no-libgcrypt.c
-----------------------------------------------------------------------------

Copyright (C) 1998, 1999, 2000, 2001, 2003, 2004, 2007 Free Software Foundation, Inc.
Copyright 2007 g10 Code GmbH

This file is free software; as a special exception the author gives
unlimited permission to copy and/or distribute it, with or without
modifications, as long as this notice is preserved.

This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

dirmngr/dns.c, dirmngr/dns.h
----------------------------

Copyright (c) 2008, 2009, 2010, 2012-2016  William Ahern

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to permit
persons to whom the Software is furnished to do so, subject to the
following conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
USE OR OTHER DEALINGS IN THE SOFTWARE.

dirmngr/cdb.h, dirmngr/cdblib.c
-------------------------------

This file is a part of tinycdb package by Michael Tokarev, mjt@corpit.ru.
Public domain.

dirmngr/ldap-url.c
------------------

The following code comes from the OpenLDAP project.  The references
to the COPYRIGHT file below refer to the corresponding file in the
OpenLDAP distribution, which is reproduced here in full:

Copyright 1998-2004 The OpenLDAP Foundation
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted only as authorized by the OpenLDAP
Public License.

A copy of this license is available in the file LICENSE in the
top-level directory of the distribution or, alternatively, at
<http://www.OpenLDAP.org/license.html>.

OpenLDAP is a registered trademark of the OpenLDAP Foundation.

Individual files and/or contributed packages may be copyright by
other parties and subject to additional restrictions.

This work is derived from the University of Michigan LDAP v3.3
distribution.  Information concerning this software is available
at <http://www.umich.edu/~dirsvcs/ldap/>.

This work also contains materials derived from public sources.

Additional information about OpenLDAP can be obtained at
<http://www.openldap.org/>.

---

Portions Copyright 1998-2004 Kurt D. Zeilenga.
Portions Copyright 1998-2004 Net Boolean Incorporated.
Portions Copyright 2001-2004 IBM Corporation.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted only as authorized by the OpenLDAP
Public License.

---

Portions Copyright 1999-2003 Howard Y.H. Chu.
Portions Copyright 1999-2003 Symas Corporation.
Portions Copyright 1998-2003 Hallvard B. Furuseth.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that this notice is preserved.
The names of the copyright holders may not be used to endorse or
promote products derived from this software without their specific
prior written permission.  This software is provided `'as is''
without express or implied warranty.

---

Portions Copyright (c) 1992-1996 Regents of the University of Michigan.
All rights reserved.

Redistribution and use in source and binary forms are permitted
provided that this notice is preserved and that due credit is given
to the University of Michigan at Ann Arbor.  The name of the
University may not be used to endorse or promote products derived
from this software without specific prior written permission.  This
software is provided `'as is'' without express or implied warranty.

Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
COPYING RESTRICTIONS APPLY, see COPYRIGHT file

Portions
Copyright (c) 1996 Regents of the University of Michigan.
All rights reserved.


Distribution Packaging
======================

Copyright (C) 2014, 2018 Patrick McDermott

These files may be reproduced, distributed, modified, and otherwise dealt in
under the terms of the Expat License.

On this system, a copy of the Expat License may be found at
<file:///usr/share/common-licenses/Expat>.