f09c8ed678318648bf35956b4a8514c6e336bf97
galt
  Wed Jun 15 11:37:02 2011 -0700
The right way to set the port, the old way probably did not work for other than the default https port.
diff --git src/lib/https.c src/lib/https.c
index 1924cb9..c78261c 100644
--- src/lib/https.c
+++ src/lib/https.c
@@ -100,33 +100,32 @@
 
     sbio = BIO_new_ssl_connect(ctx);
 
     BIO_get_ssl(sbio, &ssl);
     if(!ssl) 
 	{
 	xerr("Can't locate SSL pointer");
 	goto cleanup;
 	}
 
     /* Don't want any retries since we are non-blocking bio now */
     //SSL_set_mode(ssl, SSL_MODE_AUTO_RETRY);
 
     /* We might want to do other things with ssl here */
 
-    snprintf(hostnameProto,sizeof(hostnameProto),"%s:https",hostName);
+    safef(hostnameProto,sizeof(hostnameProto),"%s:%d",hostName,port);
     BIO_set_conn_hostname(sbio, hostnameProto);
-    BIO_set_conn_int_port(sbio, &port);
 
     BIO_set_nbio(sbio, 1);     /* non-blocking mode */
 
 
     while (1) 
 	{
 	if (BIO_do_connect(sbio) == 1) 
 	    {
 	    break;  /* Connected */
 	    }
 	if (! BIO_should_retry(sbio)) 
 	    {
 	    xerr("BIO_do_connect() failed");
 	    char s[256];	
 	    safef(s, sizeof s, "SSL error: %s", ERR_reason_error_string(ERR_get_error()));