--- old/src/ocspd.c	Sat Oct 21 14:58:10 2006
+++ src/ocspd.c	Sun Oct 28 16:36:05 2007
@@ -656,6 +656,42 @@
 					ocspd_conf->crl_check_validity);
 	}
 
+
+#ifdef USE_CURL
+     /* Get the http_connect_timeout config parameter */
+     if ((tmp_s = NCONF_get_string(ocspd_conf->conf, 
+             section, ENV_OCSPD_HTTP_CONNECT_TIMEOUT)) ==NULL) {
+                 if( verbose )
+             lookup_fail(section, ENV_OCSPD_HTTP_CONNECT_TIMEOUT);
+
+         ocspd_conf->http_connect_timeout = 30; 
+      } else {
+         ocspd_conf->http_connect_timeout = atol(tmp_s); 
+
+         if(verbose)
+             syslog( LOG_INFO, 
+                  "HTTP connect timeout: %d sec.",
+                     ocspd_conf->http_connect_timeout);
+     }
+
+      /* Get the http_transfer_timeout config parameter */
+      if ((tmp_s = NCONF_get_string(ocspd_conf->conf, 
+              section, ENV_OCSPD_HTTP_TRANSFER_TIMEOUT)) ==NULL) {
+                  if( verbose )
+              lookup_fail(section, ENV_OCSPD_HTTP_TRANSFER_TIMEOUT);
+
+          ocspd_conf->http_transfer_timeout = 600; 
+       } else {
+          ocspd_conf->http_transfer_timeout = atol(tmp_s); 
+
+          if(verbose)
+              syslog( LOG_INFO, 
+                   "HTTP transfer timeout: %d sec.",
+                      ocspd_conf->http_transfer_timeout);
+      }
+#endif
+
+
 	/*****************************************************************/
 	/* Main spawn and signal routines */
 
