The change in the HEAD to not cache gethostbyname() values made two
authorGeoff Thorpe <geoff@openssl.org>
Thu, 15 Nov 2001 01:56:10 +0000 (01:56 +0000)
committerGeoff Thorpe <geoff@openssl.org>
Thu, 15 Nov 2001 01:56:10 +0000 (01:56 +0000)
functions redundant - which were later commented out. This does the same
for the merge of the gethostbyname() change to 0.9.6-stable.

crypto/bio/b_sock.c

index d1398952b533d50af6051c0878a100619c85de5d..7dfcbab769cd0e20ebd66510d93b96fcd87d5fdc 100644 (file)
@@ -95,8 +95,10 @@ static struct ghbn_cache_st
        } ghbn_cache[GHBN_NUM];
 
 static int get_ip(const char *str,unsigned char *ip);
+#if 0
 static void ghbn_free(struct hostent *a);
 static struct hostent *ghbn_dup(struct hostent *a);
+#endif
 int BIO_get_host_ip(const char *str, unsigned char *ip)
        {
        int i;
@@ -266,6 +268,7 @@ long BIO_ghbn_ctrl(int cmd, int iarg, char *parg)
        return(1);
        }
 
+#if 0
 static struct hostent *ghbn_dup(struct hostent *a)
        {
        struct hostent *ret;
@@ -342,6 +345,7 @@ static void ghbn_free(struct hostent *a)
        if (a->h_name != NULL) OPENSSL_free(a->h_name);
        OPENSSL_free(a);
        }
+#endif
 
 struct hostent *BIO_gethostbyname(const char *name)
        {