new error codes added
authorMarcel Poul <marcel.poul@cern.ch>
Wed, 14 Nov 2012 22:32:03 +0000 (22:32 +0000)
committerMarcel Poul <marcel.poul@cern.ch>
Wed, 14 Nov 2012 22:32:03 +0000 (22:32 +0000)
emi.canl.canl-c/src/canl_error_codes
emi.canl.canl-c/src/canl_error_desc
emi.canl.canl-c/src/canl_ssl.c

index 07970af..cb34c81 100644 (file)
@@ -109,4 +109,8 @@ resolverError
 noPeerCertificate
 noKeyFound
 noCertFound
+# 
+# Recently added error codes without appropriate desc.
+# 
 invalidPurpose
+noRouteToServer
index da8f098..f583403 100644 (file)
@@ -11,6 +11,9 @@ unknownMsg.category=OTHER
 inputError=Input certificate chain processing error: {0}
 inputError.category=GENERAL_INPUT
 
+noRouteToServer=Server does not respond or accept new connection. 
+noRouteToServer.category=OTHER
+
 #
 # Namespace related errors
 #
index 3fb5c77..cf01aa9 100644 (file)
@@ -659,7 +659,8 @@ static int do_ssl_connect(glb_ctx *cc, io_handler *io,
                     " by the other side");
         else
             /*ret2 < 0 && !ssl_err*/
-            update_error (cc, 0, UNKNOWN_ERROR, "Error during SSL handshake"
+            update_error (cc, CANL_ERR_noRouteToServer, CANL_ERROR, "Error"
+                    " during SSL handshake"
                     " in communication with the server");
         return 1;
     }