dev-db/mysql-connector-c: Further OpenSSL 1.1 compile fix
authorBrian Evans <grknight@gentoo.org>
Thu, 13 Sep 2018 16:54:47 +0000 (12:54 -0400)
committerBrian Evans <grknight@gentoo.org>
Thu, 13 Sep 2018 16:54:47 +0000 (12:54 -0400)
Fix viossl.c:430:44: error: dereferencing pointer to incomplete type
 ‘SSL_COMP {aka struct ssl_comp_st}’ error

Backported changes from newer MySQL versions

Closes: https://bugs.gentoo.org/658910
Package-Manager: Portage-2.3.49, Repoman-2.3.10

dev-db/mysql-connector-c/files/6.1.11-openssl-1.1.patch

index cbca14de60b60628ea252693d8b31470a8ea1172..40e23019269af7118c22cb59f76feacc832d1aa7 100644 (file)
@@ -199,6 +199,19 @@ index 5622cb7..94b0f09 100644
  
    vio_delete(vio);
  }
+@@ -427,7 +427,12 @@
+       for (j = 0; j < n; j++)
+       {
+         SSL_COMP *c = sk_SSL_COMP_value(ssl_comp_methods, j);
++#if OPENSSL_VERSION_NUMBER < 0x10100000L
+         DBUG_PRINT("info", ("  %d: %s\n", c->id, c->name));
++#else  /* OPENSSL_VERSION_NUMBER < 0x10100000L */
++        DBUG_PRINT("info",
++                   ("  %d: %s\n", SSL_COMP_get_id(c), SSL_COMP_get0_name(c)));
++#endif /* OPENSSL_VERSION_NUMBER < 0x10100000L */
+       }
+   }
+ #endif
 diff --git a/vio/viosslfactories.c b/vio/viosslfactories.c
 index da5449a..87b30c3 100644
 --- a/vio/viosslfactories.c