head 1.8; access; symbols pkgsrc-2018Q2:1.7.0.10 pkgsrc-2018Q2-base:1.7 pkgsrc-2018Q1:1.7.0.8 pkgsrc-2018Q1-base:1.7 pkgsrc-2017Q4:1.7.0.6 pkgsrc-2017Q4-base:1.7 pkgsrc-2017Q3:1.7.0.4 pkgsrc-2017Q3-base:1.7 pkgsrc-2017Q2:1.6.0.62 pkgsrc-2017Q2-base:1.6 pkgsrc-2017Q1:1.6.0.60 pkgsrc-2017Q1-base:1.6 pkgsrc-2016Q4:1.6.0.58 pkgsrc-2016Q4-base:1.6 pkgsrc-2016Q3:1.6.0.56 pkgsrc-2016Q3-base:1.6 pkgsrc-2016Q2:1.6.0.54 pkgsrc-2016Q2-base:1.6 pkgsrc-2016Q1:1.6.0.52 pkgsrc-2016Q1-base:1.6 pkgsrc-2015Q4:1.6.0.50 pkgsrc-2015Q4-base:1.6 pkgsrc-2015Q3:1.6.0.48 pkgsrc-2015Q3-base:1.6 pkgsrc-2015Q2:1.6.0.46 pkgsrc-2015Q2-base:1.6 pkgsrc-2015Q1:1.6.0.44 pkgsrc-2015Q1-base:1.6 pkgsrc-2014Q4:1.6.0.42 pkgsrc-2014Q4-base:1.6 pkgsrc-2014Q3:1.6.0.40 pkgsrc-2014Q3-base:1.6 pkgsrc-2014Q2:1.6.0.38 pkgsrc-2014Q2-base:1.6 pkgsrc-2014Q1:1.6.0.36 pkgsrc-2014Q1-base:1.6 pkgsrc-2013Q4:1.6.0.34 pkgsrc-2013Q4-base:1.6 pkgsrc-2013Q3:1.6.0.32 pkgsrc-2013Q3-base:1.6 pkgsrc-2013Q2:1.6.0.30 pkgsrc-2013Q2-base:1.6 pkgsrc-2013Q1:1.6.0.28 pkgsrc-2013Q1-base:1.6 pkgsrc-2012Q4:1.6.0.26 pkgsrc-2012Q4-base:1.6 pkgsrc-2012Q3:1.6.0.24 pkgsrc-2012Q3-base:1.6 pkgsrc-2012Q2:1.6.0.22 pkgsrc-2012Q2-base:1.6 pkgsrc-2012Q1:1.6.0.20 pkgsrc-2012Q1-base:1.6 pkgsrc-2011Q4:1.6.0.18 pkgsrc-2011Q4-base:1.6 pkgsrc-2011Q3:1.6.0.16 pkgsrc-2011Q3-base:1.6 pkgsrc-2011Q2:1.6.0.14 pkgsrc-2011Q2-base:1.6 pkgsrc-2011Q1:1.6.0.12 pkgsrc-2011Q1-base:1.6 pkgsrc-2010Q4:1.6.0.10 pkgsrc-2010Q4-base:1.6 pkgsrc-2010Q3:1.6.0.8 pkgsrc-2010Q3-base:1.6 pkgsrc-2010Q2:1.6.0.6 pkgsrc-2010Q2-base:1.6 pkgsrc-2010Q1:1.6.0.4 pkgsrc-2010Q1-base:1.6 pkgsrc-2009Q4:1.6.0.2 pkgsrc-2009Q4-base:1.6 pkgsrc-2009Q3:1.5.0.34 pkgsrc-2009Q3-base:1.5 pkgsrc-2009Q2:1.5.0.32 pkgsrc-2009Q2-base:1.5 pkgsrc-2009Q1:1.5.0.30 pkgsrc-2009Q1-base:1.5 pkgsrc-2008Q4:1.5.0.28 pkgsrc-2008Q4-base:1.5 pkgsrc-2008Q3:1.5.0.26 pkgsrc-2008Q3-base:1.5 cube-native-xorg:1.5.0.24 cube-native-xorg-base:1.5 pkgsrc-2008Q2:1.5.0.22 pkgsrc-2008Q2-base:1.5 cwrapper:1.5.0.20 pkgsrc-2008Q1:1.5.0.18 pkgsrc-2008Q1-base:1.5 pkgsrc-2007Q4:1.5.0.16 pkgsrc-2007Q4-base:1.5 pkgsrc-2007Q3:1.5.0.14 pkgsrc-2007Q3-base:1.5 pkgsrc-2007Q2:1.5.0.12 pkgsrc-2007Q2-base:1.5 pkgsrc-2007Q1:1.5.0.10 pkgsrc-2007Q1-base:1.5 pkgsrc-2006Q4:1.5.0.8 pkgsrc-2006Q4-base:1.5 pkgsrc-2006Q3:1.5.0.6 pkgsrc-2006Q3-base:1.5 pkgsrc-2006Q2:1.5.0.4 pkgsrc-2006Q2-base:1.5 pkgsrc-2006Q1:1.5.0.2 pkgsrc-2006Q1-base:1.5 pkgsrc-2005Q4:1.4.0.10 pkgsrc-2005Q4-base:1.4 pkgsrc-2005Q3:1.4.0.8 pkgsrc-2005Q3-base:1.4 pkgsrc-2005Q2:1.4.0.6 pkgsrc-2005Q2-base:1.4 pkgsrc-2005Q1:1.4.0.4 pkgsrc-2005Q1-base:1.4 pkgsrc-2004Q4:1.4.0.2 pkgsrc-2004Q4-base:1.4; locks; strict; comment @# @; 1.8 date 2018.07.04.12.46.29; author adam; state dead; branches; next 1.7; commitid RBfe2DY9JYfsMOIA; 1.7 date 2017.08.29.11.26.20; author wiz; state Exp; branches; next 1.6; commitid QZUEemeYm8ZSg65A; 1.6 date 2009.11.15.18.41.55; author drochner; state Exp; branches; next 1.5; 1.5 date 2006.03.01.16.22.21; author drochner; state Exp; branches; next 1.4; 1.4 date 2004.11.07.13.18.16; author jmmv; state Exp; branches; next 1.3; 1.3 date 2004.11.07.13.11.30; author jmmv; state Exp; branches; next 1.2; 1.2 date 2004.11.04.20.41.21; author shannonjr; state Exp; branches; next 1.1; 1.1 date 2004.10.23.15.00.48; author shannonjr; state Exp; branches; next ; desc @@ 1.8 log @gpgme: updated to 1.11.1 version 1.11.1: * Fixed build problems in the 1.11.0 release. * Added C++ interfaces which were planned for 1.11.0. version 1.11.0: * New encryption API to support direct key specification including hidden recipients option and taking keys from a file. This also allows to enforce the use of a subkey. * New encryption flag for the new API to enforce the use of plain mail addresses (addr-spec). * The import API can now tell whether v3 keys are skipped. These old and basically broken keys are not anymore supported by GnuPG 2.1. * The decrypt and verify API will now return the MIME flag as specified by RFC-4880bis. * The offline mode now has an effect on gpg by disabling all network access. * A failed OpenPGP verification how returns the fingerprint of the intended key if a recent gpg version was used for signature creation. * New tool gpgme-json as native messaging server for web browsers. As of now public key encryption and decryption is supported. Requires Libgpg-error 1.29. * New context flag "request-origin" which has an effect when used with GnuPG 2.2.6 or later. * New context flag "no-symkey-cache" which has an effect when used with GnuPG 2.2.7 or later. * New convenience constant GPGME_KEYLIST_MODE_LOCATE. * Improved the Python documentation. * Fixed a potential regression with GnuPG 2.2.6 or later. * Fixed a crash in the Python bindings on 32 bit platforms. * Various minor fixes. @ text @$NetBSD: patch-af,v 1.7 2017/08/29 11:26:20 wiz Exp $ Add missing getenv_r() support. https://dev.gnupg.org/T3376 --- src/get-env.c.orig 2016-11-16 12:22:41.000000000 +0000 +++ src/get-env.c @@@@ -53,7 +53,25 @@@@ _gpgme_getenv (const char *name, char ** #else -/* FIXME: Implement this when we have the specification for it. */ -#error Use of getenv_r not implemented. +/* Retrieve the environment variable NAME and return a copy of it in a + malloc()'ed buffer in *VALUE. If the environment variable is not + set, return NULL in *VALUE. */ +gpgme_error_t +_gpgme_getenv (const char *name, char **value) +{ + char env_value[256]; + if (getenv_r (name, env_value, 256) < 0) + *value = NULL; + else + { + *value = strdup (env_value); + if (!*value) + errno = ENOMEM; + } + if (!*value && errno != ENOENT) + return gpg_error_from_syserror (); + else + return 0; +} #endif @ 1.7 log @Updated gpgme to 1.9.0. Drop historic patches; adapt one to upstream changes and add bug report URL. Noteworthy changes in version 1.9.0 (2017-03-28) ------------------------------------------------ * Clarified meaning of the 'expire' parameter of gpgme_op_createkey and gpgme_op_createsubkey. New flag to force a key without an expiration date. * New function gpgme_op_keylist_from_data_start to list keys from data objects without importing them. * New function gpgme_op_set_uid_flag to flag a key as primary. * New function gpgme_op_decrypt_ext to run decryption with special flags. This can for example be used to unwrap keys (remove only the encryption layer). * New encryption flags to wrap a key (adding an encryption layer to an OpenPGP message) or to create anonymously encrypted messages. * Support for adduid and revuid operations in the C++ bindings. * Support for smartcard key generation in the C++ bindings. * Several new functions for the Python binding. * Many smaller bug fixes. * Interface changes relative to the 1.8.0 release: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gpgme_op_createkey CHANGED: Meaning of 'expire' parameter. gpgme_op_createsubkey CHANGED: Meaning of 'expire' parameter. GPGME_CREATE_NOEXPIRE NEW. gpgme_key_t EXTENDED: New field 'origin'. gpgme_key_t EXTENDED: New field 'last_update'. gpgme_subkey_t EXTENDED: New field 'is_de_vs'. gpgme_user_id_t EXTENDED: New field 'origin'. gpgme_user_id_t EXTENDED: New field 'last_update'. gpgme_op_keylist_from_data_start NEW. gpgme_op_set_uid_flag_start NEW. gpgme_op_set_uid_flag NEW. gpgme_op_decrypt_ext_start NEW. gpgme_op_decrypt_ext NEW. GPGME_ENCRYPT_THROW_KEYIDS NEW. GPGME_ENCRYPT_WRAP NEW. GPGME_DECRYPT_VERIFY NEW. GPGME_DECRYPT_UNWRAP NEW. gpgme_data_rewind UN-DEPRECATE. cpp: Context::revUid(const Key&, const char*) NEW. cpp: Context::startRevUid(const Key&, const char*) NEW. cpp: Context::addUid(const Key&, const char*) NEW. cpp: Context::startAddUid(const Key&, const char*) NEW. cpp: Key::UserID::revoke() NEW. cpp: Key::addUid() NEW. cpp: Key::isDeVs NEW. cpp: GpgGenCardKeyInteractor NEW. cpp: Subkey::keyGrip NEW. cpp: Subkey::isDeVs NEW. cpp: Data::toKeys NEW. cpp: Context::setDecryptFlags NEW. cpp: Context::decrypt EXTENDED: Flags added. cpp: Context::startDecrypt EXTENDED: Flags added. cpp: Context::decryptAndVerify EXTENDED: Flags added. cpp: Context::startCombinedDecryptionAndVerification EXTENDED: Flags. cpp: Context::encryptFlags EXTENDED: New flags. qt: CryptoConfig::stringValueList() NEW. py: Context.__init__ EXTENDED: New keyword arg home_dir. py: Context.home_dir NEW. py: Context.keylist EXTENDED: New keyword arg mode. py: Context.keylist EXTENDED: New keyword arg source. py: Context.create_key NEW. py: Context.create_subkey NEW. py: Context.key_add_uid NEW. py: Context.key_revoke_uid NEW. py: Context.key_sign NEW. py: Context.key_tofu_policy NEW. py: core.pubkey_algo_string NEW. py: core.addrspec_from_uid NEW. [c=C29/A18/R0 cpp=C10/A4/R0 qt=C9/A2/R0] @ text @d1 1 a1 1 $NetBSD: patch-af,v 1.6 2009/11/15 18:41:55 drochner Exp $ @ 1.6 log @update to 1.1.8 changes: -bugfixes -API extensions -documentation improvement -The encoding of gpgme_data_t objects can affect the output encoding of export, sign and encrypt operations now -Using GPGME_KEYLIST_MODE_LOCAL combined with GPGME_KEYLIST_MODE_EXTERN is now supported @ text @d1 1 a1 1 $NetBSD: patch-af,v 1.5 2006/03/01 16:22:21 drochner Exp $ d3 4 a6 1 --- src/get-env.c.orig 2004-12-07 21:47:40.000000000 +0100 d8 1 a8 11 @@@@ -22,6 +22,9 @@@@ #include #endif #include +#if HAVE_RFUNCS_H +#include +#endif #include #include @@@@ -53,7 +56,25 @@@@ _gpgme_getenv (const char *name, char ** d30 1 a30 1 + return gpg_error_from_errno (errno); d32 1 a32 1 + return (0); @ 1.5 log @resolve confusion about different behaviour of getenv_r in librfuncs and NetBSD-current which caused serius lossage: depend on librfuncs>=1.0.7nb1 which implements NetBSD-current's behaviour, change the patch to _gpgme_getenv() accordingly, and bump PKGREVISION @ text @d1 1 a1 1 $NetBSD$ d3 2 a4 2 --- gpgme/get-env.c.orig 2004-12-07 21:47:40.000000000 +0100 +++ gpgme/get-env.c @ 1.4 log @Ew... also let this work if getenv_r returns no errors... @ text @d1 1 a1 1 $NetBSD: patch-af,v 1.3 2004/11/07 13:11:30 jmmv Exp $ d3 1 a3 1 --- gpgme/get-env.c.orig 2003-09-13 19:45:04.000000000 +0200 d5 1 a5 1 @@@@ -21,6 +21,9 @@@@ d15 1 a15 1 @@@@ -52,7 +55,26 @@@@ _gpgme_getenv (const char *name, char ** d28 1 a28 2 + int err; + if (err = getenv_r (name, env_value, 256)) d34 1 a34 1 + err = ENOMEM; d36 2 a37 2 + if (err != 0 && err != ENOENT) + return gpg_error_from_errno (err); @ 1.3 log @Now that librfuncs' getenv_r returns ENOENT when the variable is not defined in the environment, we can handle this case properly from here. I.e., treat ENOENT as if no error happened, and return NULL in the 'value' parameter (as the function documentation says). Finally fixes PR pkg/27884. Bump PKGREVISION to 2. @ text @d1 1 a1 1 $NetBSD: patch-af,v 1.2 2004/11/04 20:41:21 shannonjr Exp $ d37 1 a37 1 + if (err != ENOENT) @ 1.2 log @1) Revised gpg_strerror_r to match comments in using strerror_r 2) Revised configure to perform header check for rfuncs.h 3) Revised files referencing getenv_r, strerror_r and ttyname_r to include if HAVE_RFUNCS_H @ text @d1 1 a1 1 $NetBSD$ d3 1 a3 1 --- gpgme/get-env.c.orig 2003-09-13 11:45:04.000000000 -0600 d37 1 a37 1 + if (err) @ 1.1 log @1) Updated to gpgme-1.0.1. This is a bug fix release. 2) Added optional support for OpenPGP/MIME and SMIME via gnupg-devel as described here: http://www.gnupg.org/aegypten2/ @ text @d3 13 a15 3 --- ./gpgme/get-env.c.orig 2003-09-13 11:45:04.000000000 -0600 +++ ./gpgme/get-env.c @@@@ -52,7 +52,26 @@@@ _gpgme_getenv (const char *name, char ** @