From d4e1fb42e0e1017919ca21b5b59cc84b38f794f7 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Thu, 17 Oct 2002 03:56:13 +0000 Subject: helper, build fingerprint. (camel_certdb_nss_cert_get): Helper for nss 2002-10-15 Not Zed * 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 * 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 --- camel/camel-file-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'camel/camel-file-utils.c') 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) -- cgit v1.2.3