aboutsummaryrefslogtreecommitdiffstats
path: root/camel/tests
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-04-10 07:21:15 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-04-10 07:21:15 +0800
commit0933b12476c210975487cd29c3e05a0f248eac04 (patch)
treee121ea2c243fd54b5c8e95589cbe2711c05200e6 /camel/tests
parent738650c1d1326b89a8a99cddcdde1a363c55e55f (diff)
downloadgsoc2013-evolution-0933b12476c210975487cd29c3e05a0f248eac04.tar
gsoc2013-evolution-0933b12476c210975487cd29c3e05a0f248eac04.tar.gz
gsoc2013-evolution-0933b12476c210975487cd29c3e05a0f248eac04.tar.bz2
gsoc2013-evolution-0933b12476c210975487cd29c3e05a0f248eac04.tar.lz
gsoc2013-evolution-0933b12476c210975487cd29c3e05a0f248eac04.tar.xz
gsoc2013-evolution-0933b12476c210975487cd29c3e05a0f248eac04.tar.zst
gsoc2013-evolution-0933b12476c210975487cd29c3e05a0f248eac04.zip
Removed. I just realised that we ALWAYS want to get gpg's stderr in UTF-8,
2003-04-09 Jeffrey Stedfast <fejj@ximian.com> * camel-gpg-context.c (gpg_ctx_get_utf8_diagnostics): Removed. I just realised that we ALWAYS want to get gpg's stderr in UTF-8, so the better solution (plus less code duplication) is to just have the diagnostics buffer be a CamelStreamMem with a charset filter. (gpg_ctx_new): Setup a filter stream to convert our gpg stderr diagnostics into UTF-8 if needed. (gpg_ctx_free): Unref the diagnostcis stream. (gpg_ctx_parse_status): Flush the diagnostics stream if we are going to use the data in an exception. (gpg_ctx_op_step): Use camel_stream_write() to append to the diagnostics stream rather than appending the buffer to a GByteArray like we used to do. (gpg_ctx_op_step): Flush the diagnostics stream here too. (gpg_verify): Use a const char *diagnostics string here, forcing a slight rearrangement of calls - use the const char *dignostics before we gpg_ctx_free, otherwise we'll be passing free'd memory off to the cipher_validity. (gpg_ctx_get_diagnostics): Do the work here to flush the diagnostics stream and nul-terminate the buffer. Also return const now, instead of strdupping. No need for that. (gpg_ctx_parse_status): Convert the user hint to UTF-8. svn path=/trunk/; revision=20798
Diffstat (limited to 'camel/tests')
0 files changed, 0 insertions, 0 deletions