- From: Peter Dilorenzo <peter@aersoft.ie>
- Date: Thu, 10 Feb 2000 04:59:38 -0500 (EST)
- To: www-lib@w3.org
Hi, I've just incorporated olga's original email ssl patch into libwww, and have tried to use it in an application to connect to a https apache server which I have set up (connecting to the apache server via netscape works fine). The calls I have put into my application are: HTTransport_add("secure_tcp", HT_TP_SINGLE, HTSSLReader_new, HTSSLWriter_new); HTProtocol_add("https", "secure_tcp", SSL_PORT, NO, HTLoadHTTP, NULL); I am stuck with this problem (see libwww trace output below) where SSL_connect() is failing and I dont know why. My apache logs show the following error: [09/Feb/2000 10:20:20 09033] [info] Connection to child 5 established [09/Feb/2000 10:20:21 09033] [error] SSL handshake failed (System and OpenSSL library errors follow) [09/Feb/2000 10:20:21 09033] [error] System: Broken pipe (errno: 32) [09/Feb/2000 10:20:21 09033] [error] OpenSSL: error:1406B0D4:SSL routines:GET_CLIENT_MASTER_KEY:read wrong packet type Does anybody have any idea what may be wrong? Do I need to add any other libwww-ssl calls to my application? Thanks, Peter. HTSSLWriter_new: creating -------------------------- HTHost 14fc08 going to state TCP_NEED_CONNECT. HTHost 14fc08 going to state TCP_CONNECTED. HTHost 14fc08 connected. Host connect Unlocking Host 14fc08 StreamStack. Constructing stream stack for text/x-http to */* Tee......... Created stream 12c350 with resolver ef274558 HTTP........ Dumping response to `w3chttp.out' Tee......... Created stream 12c380 with resolver ef274558 HTTP........ Dumping request to `w3chttp.out' HTTPGen..... Extra local In HTWriter_put_string In HTSSLWriter_write Goinig to NETWRITE = GET In HTSSL_newf HTSSL_new ~~~~~~~~~~~~~~~~~~ In HTSSL_CTX_init HTSSL_CTX_init()~~~~~~~~~~~~ context created! In HTSSL_init HTSSL_init~~~~~~~~~~~~~~~~ HTSSL_init(): SSL_connect failed: Resource temporarily unavailable In HTSSL_addRef HTSSL_addRef ~~~~~~~~~~~~~~~ HTSSL_addRef: ref_count = 1 ~~~~~~~~~~ In HTSSL_free HTSSL_free ~~~~~~~~~~~~~~ HTSSL_free: ref_count = 0 ~~~~~~~~~~ HTSSL_free: FINAL RELEASE ~~~~~~~~~ Memory Free. 15de18 Error....... Add 73 Severity: 1 Parameter: `Resource temporarily unavailable' Where: `NETWRITE' Memory Free. 15c418 In HTWriter_put_character In HTSSLWriter_write Goinig to NETWRITE = In HTSSL_newf HTSSL_new ~~~~~~~~~~~~~~~~~~ In HTSSL_init HTSSL_init~~~~~~~~~~~~~~~~
Received on Thursday, 10 February 2000 05:00:03 UTC