[git] GPGME - branch, master, updated. gpgme-1.8.0-91-gef035f0
by Werner Koch
cvs at cvs.gnupg.org
Thu Mar 2 15:53:50 CET 2017
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GnuPG Made Easy".
The branch, master has been updated
via ef035f079fb067f207e5477d5ed6c5a68fb41f59 (commit)
via 2486d0073b59790decb34333be6283490e818b65 (commit)
from 8071a6b2ca33c2a46ed1d50ae7283241daaafcd3 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit ef035f079fb067f207e5477d5ed6c5a68fb41f59
Author: Werner Koch <wk at gnupg.org>
Date: Thu Mar 2 14:52:52 2017 +0100
core: Fix minor code style thing.
* src/engine-gpg.c (gpg_add_algo_usage_expire): Use double parenthesis
for bit tests.
Signed-off-by: Werner Koch <wk at gnupg.org>
diff --git a/src/engine-gpg.c b/src/engine-gpg.c
index 3443600..59cf405 100644
--- a/src/engine-gpg.c
+++ b/src/engine-gpg.c
@@ -2093,7 +2093,7 @@ gpg_add_algo_usage_expire (engine_gpg_t gpg,
}
if (!err)
{
- if (flags & GPGME_CREATE_NOEXPIRE)
+ if ((flags & GPGME_CREATE_NOEXPIRE))
err = add_arg (gpg, "never");
else if (expires == 0)
err = add_arg (gpg, "-");
commit 2486d0073b59790decb34333be6283490e818b65
Author: Werner Koch <wk at gnupg.org>
Date: Thu Mar 2 14:47:51 2017 +0100
Revert "core: Fix error types."
--
This reverts commit 6df6e01ed5a581765d245bf7303cda4497d0eb22.
gpgme_error_t et al are from a time where we had no hard dependency on
libgpg-error. Now libgpg-error is a required and thus it does not
make sense to have these surrogates. In fact we should ventually
completely remove them.
Signed-off-by: Werner Koch <wk at gnupg.org>
diff --git a/NEWS b/NEWS
index 7899522..a270af7 100644
--- a/NEWS
+++ b/NEWS
@@ -7,8 +7,6 @@ Noteworthy changes in version 1.8.1 (unreleased)
* Interface changes relative to the 1.8.0 release:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- gpgme_strerror_r CHANGED: Use gpgme_error_t (compatible type).
- gpgme_data_set_flag CHANGED: Return gpgme_error_t (compatible type).
gpgme_op_createkey CHANGED: Meaning of 'expire' parameter.
gpgme_op_createsubkey CHANGED: Meaning of 'expire' parameter.
GPGME_CREATE_NOEXPIRE NEW.
diff --git a/src/data.c b/src/data.c
index 6fe7e71..e4e9ee3 100644
--- a/src/data.c
+++ b/src/data.c
@@ -259,7 +259,7 @@ gpgme_data_get_file_name (gpgme_data_t dh)
/* Set a flag for the data object DH. See the manual for details. */
-gpgme_error_t
+gpg_error_t
gpgme_data_set_flag (gpgme_data_t dh, const char *name, const char *value)
{
TRACE_BEG2 (DEBUG_DATA, "gpgme_data_set_flag", dh,
diff --git a/src/error.c b/src/error.c
index d9c5fd0..a84b867 100644
--- a/src/error.c
+++ b/src/error.c
@@ -41,7 +41,7 @@ gpgme_strerror (gpgme_error_t err)
large enough, ERANGE is returned and BUF contains as much of the
beginning of the error string as fits into the buffer. */
int
-gpgme_strerror_r (gpgme_error_t err, char *buf, size_t buflen)
+gpgme_strerror_r (gpg_error_t err, char *buf, size_t buflen)
{
return gpg_strerror_r (err, buf, buflen);
}
diff --git a/src/gpgme.h.in b/src/gpgme.h.in
index f76689e..032a205 100644
--- a/src/gpgme.h.in
+++ b/src/gpgme.h.in
@@ -177,7 +177,7 @@ const char *gpgme_strerror (gpgme_error_t err);
contains the string describing the error. If the buffer was not
large enough, ERANGE is returned and BUF contains as much of the
beginning of the error string as fits into the buffer. */
-int gpgme_strerror_r (gpgme_error_t err, char *buf, size_t buflen);
+int gpgme_strerror_r (gpg_error_t err, char *buf, size_t buflen);
/* Return a pointer to a string containing a description of the error
source in the error value ERR. */
@@ -1161,8 +1161,8 @@ gpgme_error_t gpgme_data_set_file_name (gpgme_data_t dh,
const char *file_name);
/* Set a flag for the data object DH. See the manual for details. */
-gpgme_error_t gpgme_data_set_flag (gpgme_data_t dh,
- const char *name, const char *value);
+gpg_error_t gpgme_data_set_flag (gpgme_data_t dh,
+ const char *name, const char *value);
/* Try to identify the type of the data in DH. */
gpgme_data_type_t gpgme_data_identify (gpgme_data_t dh, int reserved);
-----------------------------------------------------------------------
Summary of changes:
NEWS | 2 --
src/data.c | 2 +-
src/engine-gpg.c | 2 +-
src/error.c | 2 +-
src/gpgme.h.in | 6 +++---
5 files changed, 6 insertions(+), 8 deletions(-)
hooks/post-receive
--
GnuPG Made Easy
http://git.gnupg.org
More information about the Gnupg-commits
mailing list