aboutsummaryrefslogtreecommitdiffstats
path: root/common/sexp-parse.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2012-04-20 13:43:06 +0000
committerWerner Koch <[email protected]>2012-04-20 13:48:48 +0000
commit37df3d5f593f76ddbf1b9dc6de0173b7bb85c0ad (patch)
treeaf9608a2e692994bb02b9f55d5a13dfea87c9089 /common/sexp-parse.h
parentfaq: Replace --list-ownerturst by --export-ownertrust. (diff)
downloadgnupg-37df3d5f593f76ddbf1b9dc6de0173b7bb85c0ad.tar.gz
gnupg-37df3d5f593f76ddbf1b9dc6de0173b7bb85c0ad.zip
Change license for some files in common to LGPLv3+/GPLv2+.
Having the LGPL on the common GnuPG code helps to share code between GnuPG and related projects (like GPGME and Libassuan). This is good for interoperability and to reduces bugs. * common/asshelp.c, common/asshelp.h, common/asshelp2.c, common/b64dec.c * common/b64enc.c, common/convert.c, common/dns-cert.c * common/dns-cert.h common/exechelp-posix.c, common/exechelp-w32.c * common/exechelp-w32ce.c, common/exechelp.h, common/get-passphrase.c * common/get-passphrase.h, common/gettime.c, common/gpgrlhelp.c * common/helpfile.c, common/homedir.c, common/http.c, common/http.h * common/i18n.c, common/init.c, common/init.h, common/iobuf.c * common/iobuf.h, common/localename.c, common/membuf.c, common/membuf.h * common/miscellaneous.c, common/openpgp-oid.c, common/openpgpdefs.h * common/percent.c, common/pka.c, common/pka.h, common/session-env.c * common/session-env.h, common/sexp-parse.h, common/sexputil.c * common/signal.c, common/srv.c, common/srv.h, common/ssh-utils.c * common/ssh-utils.h, common/sysutils.c, common/sysutils.h * common/tlv.c, common/tlv.h, common/ttyio.c, common/ttyio.h * common/userids.c, common/userids.h, common/xasprintf.c: Change license to LGPLv3+/GPLv2+/
Diffstat (limited to 'common/sexp-parse.h')
-rw-r--r--common/sexp-parse.h23
1 files changed, 16 insertions, 7 deletions
diff --git a/common/sexp-parse.h b/common/sexp-parse.h
index 008c2d221..f68c552d8 100644
--- a/common/sexp-parse.h
+++ b/common/sexp-parse.h
@@ -1,14 +1,22 @@
-/* sexp-parse.h - S-Exp helper functions
+/* sexp-parse.h - S-expression helper functions
* Copyright (C) 2002, 2003, 2007 Free Software Foundation, Inc.
*
- * This file is part of GnuPG.
+ * This file is free software; you can redistribute it and/or modify
+ * it under the terms of either
*
- * 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.
+ * - 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.
*
- * GnuPG is distributed in the hope that it will be useful,
+ * 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.
+ *
+ * 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.
@@ -22,6 +30,7 @@
#include <gpg-error.h>
+
/* Return the length of the next S-Exp part and update the pointer to
the first data byte. 0 is returned on error */
static inline size_t