aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-file-utils.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2002-10-17 11:56:13 +0800
committerMichael Zucci <zucchi@src.gnome.org>2002-10-17 11:56:13 +0800
commitd4e1fb42e0e1017919ca21b5b59cc84b38f794f7 (patch)
tree3ecfea7474d3823841cfb6d2e732f4d3229530d1 /camel/camel-file-utils.c
parent5f38b1e898698b939d76419cd1fa970effb38ecd (diff)
downloadgsoc2013-evolution-d4e1fb42e0e1017919ca21b5b59cc84b38f794f7.tar.gz
gsoc2013-evolution-d4e1fb42e0e1017919ca21b5b59cc84b38f794f7.tar.zst
gsoc2013-evolution-d4e1fb42e0e1017919ca21b5b59cc84b38f794f7.zip
helper, build fingerprint. (camel_certdb_nss_cert_get): Helper for nss
2002-10-15 Not Zed <NotZed@Ximian.com> * camel-tcp-stream-ssl.c (cert_fingerprint): helper, build fingerprint. (camel_certdb_nss_cert_get): Helper for nss certs. Lookup cert. As well as fingerprint, the whole raw cert is checked for validity. (camel_certdb_nss_cert_add): Add an nss cert to a certdb, also saves the cert by fingerprint in ~/.camel_certs/. (ssl_bad_cert): Changed to use above functions to simplify logic. (ssl_bad_cert): Also added non-compiled code which mimics what mozilla does, but it doesn't work right :-/ (camel_certdb_nss_cert_set): Save the raw cert associated with a cert. * camel-certdb.c (certdb_cert_free): Free the raw cert data if set. 2002-10-14 Not Zed <NotZed@Ximian.com> * camel-file-utils.c (camel_file_util_encode_string): Encode a length of 0 as 1, not 0, to match the decode code. svn path=/trunk/; revision=18385
Diffstat (limited to 'camel/camel-file-utils.c')
-rw-r--r--camel/camel-file-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/camel/camel-file-utils.c b/camel/camel-file-utils.c
index 0b909f3e82..33f599d463 100644
--- a/camel/camel-file-utils.c
+++ b/camel/camel-file-utils.c
@@ -248,7 +248,7 @@ camel_file_util_encode_string (FILE *out, const char *str)
register int len;
if (str == NULL)
- return camel_file_util_encode_uint32 (out, 0);
+ return camel_file_util_encode_uint32 (out, 1);
len = strlen (str);
if (camel_file_util_encode_uint32 (out, len+1) == -1)