]> git.pld-linux.org Git - packages/mysql.git/blob - openssl.patch
- rel 9; fix build with openssl 1.1
[packages/mysql.git] / openssl.patch
1 --- mysql-5.0.96/vio/viosslfactories.c~ 2019-09-17 11:52:59.000000000 +0200
2 +++ mysql-5.0.96/vio/viosslfactories.c  2019-09-17 12:14:48.223177024 +0200
3 @@ -48,12 +48,18 @@
4    DH *dh;
5    if ((dh=DH_new()))
6    {
7 -    dh->p=BN_bin2bn(dh1024_p,sizeof(dh1024_p),NULL);
8 -    dh->g=BN_bin2bn(dh1024_g,sizeof(dh1024_g),NULL);
9 +    BIGNUM* p= BN_bin2bn(dh1024_p,sizeof(dh1024_p),NULL);
10 +    BIGNUM* g= BN_bin2bn(dh1024_g,sizeof(dh1024_g),NULL);
11 +#if OPENSSL_VERSION_NUMBER < 0x10100000L
12 +    dh->p= p;
13 +    dh->g= g;
14      if (! dh->p || ! dh->g)
15 +#else
16 +      if (!DH_set0_pqg(dh, p, NULL, g))
17 +#endif
18      {
19        DH_free(dh);
20 -      dh=0;
21 +      dh=NULL;
22      }
23    }
24    return(dh);
This page took 0.059093 seconds and 3 git commands to generate.