changeset 20667:cdabb4ee9468

- Prompt the user if the local peer certificate cache is not found. Fixes #3318
author William Ehlhardt <williamehlhardt@gmail.com>
date Thu, 27 Sep 2007 08:12:09 +0000
parents 0e1bc5c51030
children 5b37f9f0bd6a
files libpurple/certificate.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/certificate.c	Thu Sep 27 04:41:04 2007 +0000
+++ b/libpurple/certificate.c	Thu Sep 27 08:12:09 2007 +0000
@@ -1464,11 +1464,12 @@
 	   an angry fit */
 	if (!tls_peers) {
 		purple_debug_error("certificate/x509/tls_cached",
-				   "Couldn't find local peers cache %s\nReturning INVALID to callback\n",
+				   "Couldn't find local peers cache %s\nPrompting the user\n",
 				   tls_peers_name);
 
-		purple_certificate_verify_complete(vrq,
-						   PURPLE_CERTIFICATE_INVALID);
+
+		/* vrq now becomes the problem of unknown_peer */
+		x509_tls_cached_unknown_peer(vrq);
 		return;
 	}