]> git.pld-linux.org Git - packages/ekg.git/commitdiff
- release 16 (openssl-1.1 build fix) auto/th/ekg-1.7-16
authorAdam Gołębiowski <adamg@pld-linux.org>
Sun, 23 Sep 2018 14:30:39 +0000 (16:30 +0200)
committerAdam Gołębiowski <adamg@pld-linux.org>
Sun, 23 Sep 2018 14:30:39 +0000 (16:30 +0200)
ekg-openssl.patch [new file with mode: 0644]
ekg.spec

diff --git a/ekg-openssl.patch b/ekg-openssl.patch
new file mode 100644 (file)
index 0000000..995c862
--- /dev/null
@@ -0,0 +1,30 @@
+--- ekg-1.7/src/simlite.c.orig 2018-09-23 16:27:02.621928366 +0200
++++ ekg-1.7/src/simlite.c      2018-09-23 16:28:33.260028046 +0200
+@@ -180,7 +180,7 @@
+       RSA *key = sim_key_read(uin);
+       unsigned char md_value[EVP_MAX_MD_SIZE], *buf, *newbuf;
+       char *result = NULL;
+-      EVP_MD_CTX ctx;
++      EVP_MD_CTX *ctx;
+       int md_len, size, i;
+       if (!key)
+@@ -200,10 +200,14 @@
+               size = i2d_RSAPublicKey(key, &newbuf);
+       else
+               size = i2d_RSAPrivateKey(key, &newbuf);
+-      
+-      EVP_DigestInit(&ctx, EVP_sha1());       
+-      EVP_DigestUpdate(&ctx, buf, size);
+-      EVP_DigestFinal(&ctx, md_value, &md_len);
++
++      ctx = EVP_MD_CTX_create();
++      if (!ctx)
++              return NULL;
++      EVP_DigestInit(ctx, EVP_sha1());        
++      EVP_DigestUpdate(ctx, buf, size);
++      EVP_DigestFinal(ctx, md_value, &md_len);
++      EVP_MD_CTX_free(ctx);
+       free(buf);
index 6167f14baf422f5ce7cdae6cf47d3c55b0c6cfd4..c072c3c0860a371a34478930a66e758884e9360b 100644 (file)
--- a/ekg.spec
+++ b/ekg.spec
@@ -14,7 +14,7 @@ Summary(it.UTF-8):    Un cliente compatibile con Gadu-Gadu
 Summary(pl.UTF-8):     Klient kompatybilny z Gadu-Gadu
 Name:          ekg
 Version:       1.7
-Release:       15
+Release:       16
 Epoch:         4
 License:       GPL v2
 Group:         Applications/Communications
@@ -25,6 +25,7 @@ Patch0:               %{name}-LDFLAGS.patch
 Patch1:                %{name}-lock_reason.patch
 Patch2:                %{name}-external_libgadu.patch
 Patch3:                %{name}-giflib.patch
+Patch4:                %{name}-openssl.patch
 URL:           http://ekg.chmurka.net/
 BuildRequires: %{_bindir}/perl
 %{?with_aspell:BuildRequires:  aspell-devel}
@@ -100,6 +101,7 @@ polsku (jednak komendy są w języku angielskim).
 %endif
 %patch2 -p0
 %patch3 -p1
+%patch4 -p1
 
 %build
 %{__aclocal} -I m4
This page took 0.100418 seconds and 4 git commands to generate.