]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
openssl: remove #if 0 leftover
authorDaniel Stenberg <daniel@haxx.se>
Mon, 30 Nov 2020 16:47:24 +0000 (17:47 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 30 Nov 2020 18:59:12 +0000 (19:59 +0100)
Follow-up to 4c9768565ec3a9 (from Sep 2008)

Closes #6268

lib/vtls/openssl.c

index fc0c4e15fd095c44eca8e66be3f8d0c96bf8e8bd..8309bc40551795ae653e9780c7e1928da5ca99b3 100644 (file)
@@ -1084,9 +1084,6 @@ int cert_stuff(struct connectdata *conn,
 /* returns non-zero on failure */
 static int x509_name_oneline(X509_NAME *a, char *buf, size_t size)
 {
-#if 0
-  return X509_NAME_oneline(a, buf, size);
-#else
   BIO *bio_out = BIO_new(BIO_s_mem());
   BUF_MEM *biomem;
   int rc;
@@ -1108,7 +1105,6 @@ static int x509_name_oneline(X509_NAME *a, char *buf, size_t size)
   BIO_free(bio_out);
 
   return !rc;
-#endif
 }
 
 /**