From c10faab4be8d86eb459f6000188c64eeb9d60c89 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Tue, 22 Jan 2002 15:32:44 +0000 Subject: [PATCH] doc/ 2002-01-22 Marcus Brinkmann * gpgme.texi (Passphrase callback): Change GpgmePassphraseCb's R_HD type from void* to void**. gpgme/ 2002-01-22 Marcus Brinkmann * gpgme.h (GpgmePassphraseCb): Change type of R_HD from void* to void**. tests/ 2002-01-22 Marcus Brinkmann * gpg/t-signers.c (passphrase_cb): Change type of r_hd to void**. * gpg/t-sign.c (passphrase_cb): Likewise. * gpg/t-decrypt-verify.c (passphrase_cb): Likewise. * gpg/t-decrypt.c (passphrase_cb): Likewise. --- trunk/NEWS | 6 +++++- trunk/TODO | 6 ++---- trunk/doc/ChangeLog | 5 +++++ trunk/doc/gpgme.texi | 2 +- trunk/gpgme/ChangeLog | 5 +++++ trunk/gpgme/gpgme.c | 2 +- trunk/gpgme/gpgme.h | 2 +- trunk/tests/ChangeLog | 7 +++++++ trunk/tests/gpg/t-decrypt-verify.c | 2 +- trunk/tests/gpg/t-decrypt.c | 2 +- trunk/tests/gpg/t-sign.c | 2 +- trunk/tests/gpg/t-signers.c | 2 +- 12 files changed, 31 insertions(+), 12 deletions(-) diff --git a/trunk/NEWS b/trunk/NEWS index 190692f..2cbd981 100644 --- a/trunk/NEWS +++ b/trunk/NEWS @@ -1,7 +1,10 @@ + * There is a Texinfo manual documenting the API. + * The LENGTH argument to gpgme_data_new_from_filepart changed its type from off_t to the unsigned size_t. - * There is a Texinfo manual documenting the API. + * The R_HD argument to the GpgmePassphraseCb type changed its type + from void* to void**. * New interface gpgme_op_trustlist_end() to match gpgme_op_keylist_end. @@ -9,6 +12,7 @@ * Interface changes relative to the 0.3.0 release: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gpgme_data_new_from_filepart CHANGED: Type of LENGTH is size_t. +GpgmePassphraseCb CHANGED: Type of R_HD is void **. gpgme_op_trustlist_next NEW ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/trunk/TODO b/trunk/TODO index 27055a9..c924eb0 100644 --- a/trunk/TODO +++ b/trunk/TODO @@ -1,9 +1,7 @@ * ABI's to break: ** GpgmePassphraseCb should have void **R_HD, not void *R_HD. -** trustlist has the same start/end problem as keylist had. - In fact, all the _start functions have this problem! - In addition, the resulting error of the operation can not be - retrieved seperately; the op_foobar operations can't be implemented +** The resulting error of an operation can not be retrieved + seperately; the op_foobar operations can't be implemented by the user, they are not merely convenience, but necessity, while the op_foobar_start functions for these are unusable (or render the context unusable, your choice). diff --git a/trunk/doc/ChangeLog b/trunk/doc/ChangeLog index 2979e0a..dd4efe5 100644 --- a/trunk/doc/ChangeLog +++ b/trunk/doc/ChangeLog @@ -1,3 +1,8 @@ +2002-01-22 Marcus Brinkmann + + * gpgme.texi (Passphrase callback): Change GpgmePassphraseCb's + R_HD type from void* to void**. + 2002-01-22 Marcus Brinkmann * gpgme.texi (Creating data buffers): Change diff --git a/trunk/doc/gpgme.texi b/trunk/doc/gpgme.texi index ddd9432..094646b 100644 --- a/trunk/doc/gpgme.texi +++ b/trunk/doc/gpgme.texi @@ -1007,7 +1007,7 @@ Fast listing without information about the key validity. @node Passphrase callback @subsection Passphrase callback -@deftp {Data type} {const char *(*GpgmePassphraseCb)(void *@var{hook}, const char *@var{desc}, void *@var{r_hd})} +@deftp {Data type} {const char *(*GpgmePassphraseCb)(void *@var{hook}, const char *@var{desc}, void **@var{r_hd})} The @code{GpgmePasshraseCb} type is the type of functions usable as passphrase callback function. diff --git a/trunk/gpgme/ChangeLog b/trunk/gpgme/ChangeLog index 059fcaa..2e3f4f1 100644 --- a/trunk/gpgme/ChangeLog +++ b/trunk/gpgme/ChangeLog @@ -1,3 +1,8 @@ +2002-01-22 Marcus Brinkmann + + * gpgme.h (GpgmePassphraseCb): Change type of R_HD from void* to + void**. + 2002-01-22 Marcus Brinkmann * data.c (gpgme_data_new_from_filepart): Change type of LENGTH diff --git a/trunk/gpgme/gpgme.c b/trunk/gpgme/gpgme.c index 7e4bee3..fe84832 100644 --- a/trunk/gpgme/gpgme.c +++ b/trunk/gpgme/gpgme.c @@ -303,7 +303,7 @@ gpgme_set_keylist_mode (GpgmeCtx ctx, int mode) * * typedef const char *(*GpgmePassphraseCb)(void*cb_value, * const char *desc, - * void *r_hd); + * void **r_hd); * * and called whenever gpgme needs a passphrase. DESC will have a nice * text, to be used to prompt for the passphrase and R_HD is just a parameter diff --git a/trunk/gpgme/gpgme.h b/trunk/gpgme/gpgme.h index 33ae45d..9fcd406 100644 --- a/trunk/gpgme/gpgme.h +++ b/trunk/gpgme/gpgme.h @@ -160,7 +160,7 @@ typedef enum { } GpgmeProtocol; typedef const char *(*GpgmePassphraseCb)(void*, - const char *desc, void *r_hd); + const char *desc, void **r_hd); typedef void (*GpgmeProgressCb)(void *opaque, const char *what, int type, int current, int total ); diff --git a/trunk/tests/ChangeLog b/trunk/tests/ChangeLog index 7892821..3fec7f7 100644 --- a/trunk/tests/ChangeLog +++ b/trunk/tests/ChangeLog @@ -1,3 +1,10 @@ +2002-01-22 Marcus Brinkmann + + * gpg/t-signers.c (passphrase_cb): Change type of r_hd to void**. + * gpg/t-sign.c (passphrase_cb): Likewise. + * gpg/t-decrypt-verify.c (passphrase_cb): Likewise. + * gpg/t-decrypt.c (passphrase_cb): Likewise. + 2001-12-19 Marcus Brinkmann * gpg/t-decrypt-verify.c: Don't include `mcheck.h'. Reported by diff --git a/trunk/tests/gpg/t-decrypt-verify.c b/trunk/tests/gpg/t-decrypt-verify.c index 14a28a7..bf407ee 100644 --- a/trunk/tests/gpg/t-decrypt-verify.c +++ b/trunk/tests/gpg/t-decrypt-verify.c @@ -58,7 +58,7 @@ print_data (GpgmeData dh) } static const char * -passphrase_cb (void *opaque, const char *desc, void *r_hd) +passphrase_cb (void *opaque, const char *desc, void **r_hd) { const char *pass; diff --git a/trunk/tests/gpg/t-decrypt.c b/trunk/tests/gpg/t-decrypt.c index 095cb82..e6bc099 100644 --- a/trunk/tests/gpg/t-decrypt.c +++ b/trunk/tests/gpg/t-decrypt.c @@ -59,7 +59,7 @@ print_data ( GpgmeData dh ) static const char * -passphrase_cb ( void *opaque, const char *desc, void *r_hd ) +passphrase_cb ( void *opaque, const char *desc, void **r_hd ) { const char *pass; diff --git a/trunk/tests/gpg/t-sign.c b/trunk/tests/gpg/t-sign.c index ca9dc34..28c34dc 100644 --- a/trunk/tests/gpg/t-sign.c +++ b/trunk/tests/gpg/t-sign.c @@ -62,7 +62,7 @@ print_data ( GpgmeData dh ) } static const char * -passphrase_cb ( void *opaque, const char *desc, void *r_hd ) +passphrase_cb ( void *opaque, const char *desc, void **r_hd ) { const char *pass; diff --git a/trunk/tests/gpg/t-signers.c b/trunk/tests/gpg/t-signers.c index c05ef18..f3fa6f5 100644 --- a/trunk/tests/gpg/t-signers.c +++ b/trunk/tests/gpg/t-signers.c @@ -62,7 +62,7 @@ print_data (GpgmeData dh) } static const char * -passphrase_cb (void *opaque, const char *desc, void *r_hd) +passphrase_cb (void *opaque, const char *desc, void **r_hd) { const char *pass; -- 2.26.2