commit ghc-HsOpenSSL for openSUSE:Factory

2017-08-31 Thread root
Hello community,

here is the log from the commit of package ghc-HsOpenSSL for openSUSE:Factory 
checked in at 2017-08-31 20:45:51

Comparing /work/SRC/openSUSE:Factory/ghc-HsOpenSSL (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-HsOpenSSL.new (New)


Package is "ghc-HsOpenSSL"

Thu Aug 31 20:45:51 2017 rev:9 rq:513189 version:0.11.4.9

Changes:

--- /work/SRC/openSUSE:Factory/ghc-HsOpenSSL/ghc-HsOpenSSL.changes  
2017-06-21 13:54:46.395838173 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-HsOpenSSL.new/ghc-HsOpenSSL.changes 
2017-08-31 20:45:51.232803528 +0200
@@ -1,0 +2,5 @@
+Wed Jul 26 03:02:12 UTC 2017 - psim...@suse.com
+
+- Update to version 0.11.4.9 revision 1.
+
+---

New:

  HsOpenSSL.cabal



Other differences:
--
++ ghc-HsOpenSSL.spec ++
--- /var/tmp/diff_new_pack.qP9AzU/_old  2017-08-31 20:45:52.168672167 +0200
+++ /var/tmp/diff_new_pack.qP9AzU/_new  2017-08-31 20:45:52.172671605 +0200
@@ -26,6 +26,7 @@
 Group:  Development/Languages/Other
 Url:https://hackage.haskell.org/package/%{pkg_name}
 Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
+Source1:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-bytestring-devel
 BuildRequires:  ghc-network-devel
@@ -59,6 +60,7 @@
 
 %prep
 %setup -q -n %{pkg_name}-%{version}
+cp -p %{SOURCE1} %{pkg_name}.cabal
 
 %build
 %ghc_lib_build

++ HsOpenSSL.cabal ++
Name: HsOpenSSL
Synopsis: Partial OpenSSL binding for Haskell
Description:
.
HsOpenSSL is an OpenSSL binding for Haskell. It can generate RSA
and DSA keys, read and write PEM files, generate message digests,
sign and verify messages, encrypt and decrypt messages. It has
also some capabilities of creating SSL clients and servers.
.
This package is in production use by a number of Haskell based
systems and stable. You may also be interested in the @tls@ package,
, which is a pure Haskell
implementation of SSL.
.
Version:   0.11.4.9
x-revision: 1
License:   PublicDomain
License-File:  COPYING
Author:Adam Langley, Mikhail Vorozhtsov, PHO, Taru Karttunen
Maintainer:Vladimir Shabanov 
Stability: stable
Homepage:  https://github.com/vshabanov/HsOpenSSL
Bug-Reports:   https://github.com/vshabanov/HsOpenSSL/issues
Category:  Cryptography
Cabal-Version: >= 1.12
Tested-With:
GHC==8.0.2, GHC==7.10.3, GHC==7.8.4, GHC==7.6.3, GHC==7.4.2, GHC==7.2.2
Build-Type:Custom
Extra-Source-Files:
AUTHORS
ChangeLog
README.md
cbits/HsOpenSSL.h
cbits/mutex.h
examples/Makefile
examples/GenRSAKey.hs
examples/HelloWorld.hs
examples/PKCS7.hs
examples/Server.hs
examples/server.crt
examples/server.pem

Source-Repository head
Type: git
Location: git://github.com/vshabanov/HsOpenSSL.git

Flag fast-bignum
Description:
Enable fast moving of bignums between OpenSSL and GMP (GHC only).
Default:
True

Flag homebrew-openssl
Description:
Use Homebrew version of OpenSSL (macOS only).
Default:
False

Flag macports-openssl
Description:
Use MacPorts version of OpenSSL (macOS only).
Default:
False

Custom-setup
setup-depends: Cabal >=1.12 && <2.1,
   base  >=4.4  && <5

Library
Build-Depends:
base   >= 4.4 && < 5,
bytestring >= 0.9   && < 0.11,
network>= 2.1   && < 2.7,
time   >= 1.5   && < 1.9

Build-Tools: hsc2hs >= 0.67

if flag(fast-bignum) && impl(ghc >= 7.10.1)
-- only new integer-gmp 1.0.0 is supported
-- and it only works in OpenSSL version < 1.1.0 where BIGNUM
-- wasn't opaque structure.
CPP-Options: -DFAST_BIGNUM
Build-Depends: integer-gmp >= 1.0.0 && < 1.1.0

if os(darwin) && flag(homebrew-openssl)
Include-Dirs: /usr/local/opt/openssl/include
Extra-Lib-Dirs: /usr/local/opt/openssl/lib

if os(darwin) && flag(macports-openssl)
Include-Dirs: /opt/local/include
Extra-Lib-Dirs: /opt/local/lib

if os(mingw32)
if arch(x86_64)
Extra-Libraries: eay32 ssl

if arch(i386)
Extra-Libraries: eay32 ssl32

C-Sources:   cbits/mutex-win.c
CC-Options:  -D MINGW32 -DNOCRYPT
CPP-Options: -DCALLCONV=stdcall
else
Extra-Libraries: crypto ssl
C-Sources:   cbits/mutex-pthread.c
CC-Options:  -D PTHREAD

commit ghc-HsOpenSSL for openSUSE:Factory

2017-06-21 Thread root
Hello community,

here is the log from the commit of package ghc-HsOpenSSL for openSUSE:Factory 
checked in at 2017-06-21 13:54:40

Comparing /work/SRC/openSUSE:Factory/ghc-HsOpenSSL (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-HsOpenSSL.new (New)


Package is "ghc-HsOpenSSL"

Wed Jun 21 13:54:40 2017 rev:8 rq:504656 version:0.11.4.9

Changes:

--- /work/SRC/openSUSE:Factory/ghc-HsOpenSSL/ghc-HsOpenSSL.changes  
2017-05-16 14:46:38.750562788 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-HsOpenSSL.new/ghc-HsOpenSSL.changes 
2017-06-21 13:54:46.395838173 +0200
@@ -1,0 +2,5 @@
+Mon Jun 12 09:41:36 UTC 2017 - psim...@suse.com
+
+- Update to version 0.11.4.9.
+
+---

Old:

  HsOpenSSL-0.11.4.8.tar.gz

New:

  HsOpenSSL-0.11.4.9.tar.gz



Other differences:
--
++ ghc-HsOpenSSL.spec ++
--- /var/tmp/diff_new_pack.TEXilT/_old  2017-06-21 13:54:48.535536349 +0200
+++ /var/tmp/diff_new_pack.TEXilT/_new  2017-06-21 13:54:48.539535785 +0200
@@ -19,7 +19,7 @@
 %global pkg_name HsOpenSSL
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.11.4.8
+Version:0.11.4.9
 Release:0
 Summary:Partial OpenSSL binding for Haskell
 License:SUSE-Public-Domain

++ HsOpenSSL-0.11.4.8.tar.gz -> HsOpenSSL-0.11.4.9.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HsOpenSSL-0.11.4.8/ChangeLog 
new/HsOpenSSL-0.11.4.9/ChangeLog
--- old/HsOpenSSL-0.11.4.8/ChangeLog2017-04-26 21:37:53.0 +0200
+++ new/HsOpenSSL-0.11.4.9/ChangeLog2017-06-08 16:19:17.0 +0200
@@ -1,3 +1,10 @@
+2017-06-08  Vladimir Shabanov  
+
+   * HsOpenSSL.cabal (Version): Bump version to 0.11.4.9
+
+   * Added -DNOCRYPT to compile in newer MINGW versions
+   by Baojun Wang @wangbj (#27)
+
 2017-04-26  Vladimir Shabanov  
 
* HsOpenSSL.cabal (Version): Bump version to 0.11.4.8
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HsOpenSSL-0.11.4.8/HsOpenSSL.cabal 
new/HsOpenSSL-0.11.4.9/HsOpenSSL.cabal
--- old/HsOpenSSL-0.11.4.8/HsOpenSSL.cabal  2017-04-26 21:37:53.0 
+0200
+++ new/HsOpenSSL-0.11.4.9/HsOpenSSL.cabal  2017-06-08 16:19:17.0 
+0200
@@ -12,7 +12,7 @@
 , which is a pure Haskell
 implementation of SSL.
 .
-Version:   0.11.4.8
+Version:   0.11.4.9
 License:   PublicDomain
 License-File:  COPYING
 Author:Adam Langley, Mikhail Vorozhtsov, PHO, Taru Karttunen
@@ -95,7 +95,7 @@
 Extra-Libraries: eay32 ssl32
 
 C-Sources:   cbits/mutex-win.c
-CC-Options:  -D MINGW32
+CC-Options:  -D MINGW32 -DNOCRYPT
 CPP-Options: -DCALLCONV=stdcall
 else
 Extra-Libraries: crypto ssl




commit ghc-HsOpenSSL for openSUSE:Factory

2017-05-16 Thread root
Hello community,

here is the log from the commit of package ghc-HsOpenSSL for openSUSE:Factory 
checked in at 2017-05-16 14:45:38

Comparing /work/SRC/openSUSE:Factory/ghc-HsOpenSSL (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-HsOpenSSL.new (New)


Package is "ghc-HsOpenSSL"

Tue May 16 14:45:38 2017 rev:7 rq:494899 version:0.11.4.8

Changes:

--- /work/SRC/openSUSE:Factory/ghc-HsOpenSSL/ghc-HsOpenSSL.changes  
2017-05-06 18:28:08.176055354 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-HsOpenSSL.new/ghc-HsOpenSSL.changes 
2017-05-16 14:46:38.750562788 +0200
@@ -1,0 +2,15 @@
+Wed May  3 08:24:07 UTC 2017 - psim...@suse.com
+
+- Update to version 0.11.4.8 with cabal2obs.
+
+---
+Sat Apr 29 18:32:33 UTC 2017 - psim...@suse.com
+
+- Update to version 0.11.4.7 revision 1 with cabal2obs.
+
+---
+Mon Apr 24 12:33:13 UTC 2017 - psim...@suse.com
+
+- Update to version 0.11.4.7 with cabal2obs.
+
+---

Old:

  HsOpenSSL-0.11.4.6.tar.gz

New:

  HsOpenSSL-0.11.4.8.tar.gz



Other differences:
--
++ ghc-HsOpenSSL.spec ++
--- /var/tmp/diff_new_pack.G6H3He/_old  2017-05-16 14:46:39.326481875 +0200
+++ /var/tmp/diff_new_pack.G6H3He/_new  2017-05-16 14:46:39.330481313 +0200
@@ -19,7 +19,7 @@
 %global pkg_name HsOpenSSL
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.11.4.6
+Version:0.11.4.8
 Release:0
 Summary:Partial OpenSSL binding for Haskell
 License:SUSE-Public-Domain

++ HsOpenSSL-0.11.4.6.tar.gz -> HsOpenSSL-0.11.4.8.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HsOpenSSL-0.11.4.6/ChangeLog 
new/HsOpenSSL-0.11.4.8/ChangeLog
--- old/HsOpenSSL-0.11.4.6/ChangeLog2017-04-05 17:17:17.0 +0200
+++ new/HsOpenSSL-0.11.4.8/ChangeLog2017-04-26 21:37:53.0 +0200
@@ -1,3 +1,17 @@
+2017-04-26  Vladimir Shabanov  
+
+   * HsOpenSSL.cabal (Version): Bump version to 0.11.4.8
+
+   * Setup.hs: Updated for Cabal-2.0
+   by Eric Mertens @glguy (#24)
+
+2017-04-17  Vladimir Shabanov  
+
+   * HsOpenSSL.cabal (Version): Bump version to 0.11.4.7
+
+   * Support for MinGW64,
+   by @varosi (#23)
+
 2017-04-05  Vladimir Shabanov  
 
* HsOpenSSL.cabal (Version): Bump version to 0.11.4.6
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HsOpenSSL-0.11.4.6/HsOpenSSL.cabal 
new/HsOpenSSL-0.11.4.8/HsOpenSSL.cabal
--- old/HsOpenSSL-0.11.4.6/HsOpenSSL.cabal  2017-04-05 17:17:17.0 
+0200
+++ new/HsOpenSSL-0.11.4.8/HsOpenSSL.cabal  2017-04-26 21:37:53.0 
+0200
@@ -12,7 +12,7 @@
 , which is a pure Haskell
 implementation of SSL.
 .
-Version:   0.11.4.6
+Version:   0.11.4.8
 License:   PublicDomain
 License-File:  COPYING
 Author:Adam Langley, Mikhail Vorozhtsov, PHO, Taru Karttunen
@@ -61,6 +61,10 @@
 Default:
 False
 
+Custom-setup
+setup-depends: Cabal >=1.12 && <2.1,
+   base  >=4.4  && <5
+
 Library
 Build-Depends:
 base   >= 4.4 && < 5,
@@ -84,7 +88,12 @@
 Extra-Lib-Dirs: /opt/local/lib
 
 if os(mingw32)
-Extra-Libraries: eay32 ssl32
+if arch(x86_64)
+Extra-Libraries: eay32 ssl
+
+if arch(i386)
+Extra-Libraries: eay32 ssl32
+
 C-Sources:   cbits/mutex-win.c
 CC-Options:  -D MINGW32
 CPP-Options: -DCALLCONV=stdcall
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HsOpenSSL-0.11.4.6/Setup.hs 
new/HsOpenSSL-0.11.4.8/Setup.hs
--- old/HsOpenSSL-0.11.4.6/Setup.hs 2017-04-05 17:17:17.0 +0200
+++ new/HsOpenSSL-0.11.4.8/Setup.hs 2017-04-26 21:37:53.0 +0200
@@ -1,11 +1,18 @@
 {-# LANGUAGE CPP #-}
 {-# LANGUAGE TupleSections #-}
 
+#ifndef MIN_VERSION_Cabal
+-- MIN_VERSION_Cabal is defined and available to custom Setup.hs scripts
+-- if either GHC >= 8.0 or cabal-install >= 1.24 is used.
+-- So if it isn't defined, it's very likely we don't have Cabal >= 2.0.
+#define MIN_VERSION_Cabal(x,y,z) 0
+#endif
+
 import Distribution.Simple
 import Distribution.Simple.Setup (ConfigFlags(..), toFlag)
 import Distribution.Simple.LocalBuildInfo (localPkgDescr)
 
-#if __GLASGOW_HASKELL__ >= 802
+#if MIN_VERSION_Cabal(2,0,0)
 import Distribution.PackageDescription (FlagName(..), mkFlagName)
 #else
 import Distribution.PackageDescription 

commit ghc-HsOpenSSL for openSUSE:Factory

2017-05-06 Thread root
Hello community,

here is the log from the commit of package ghc-HsOpenSSL for openSUSE:Factory 
checked in at 2017-05-06 18:27:54

Comparing /work/SRC/openSUSE:Factory/ghc-HsOpenSSL (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-HsOpenSSL.new (New)


Package is "ghc-HsOpenSSL"

Sat May  6 18:27:54 2017 rev:6 rq:491451 version:0.11.4.6

Changes:

--- /work/SRC/openSUSE:Factory/ghc-HsOpenSSL/ghc-HsOpenSSL.changes  
2017-04-06 11:02:29.040752903 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-HsOpenSSL.new/ghc-HsOpenSSL.changes 
2017-05-06 18:28:08.176055354 +0200
@@ -1,0 +2,5 @@
+Sun Apr  9 18:08:09 UTC 2017 - psim...@suse.com
+
+- Update to version 0.11.4.6 with cabal2obs.
+
+---

Old:

  HsOpenSSL-0.11.4.4.tar.gz

New:

  HsOpenSSL-0.11.4.6.tar.gz



Other differences:
--
++ ghc-HsOpenSSL.spec ++
--- /var/tmp/diff_new_pack.0oHorX/_old  2017-05-06 18:28:08.719978604 +0200
+++ /var/tmp/diff_new_pack.0oHorX/_new  2017-05-06 18:28:08.719978604 +0200
@@ -19,7 +19,7 @@
 %global pkg_name HsOpenSSL
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.11.4.4
+Version:0.11.4.6
 Release:0
 Summary:Partial OpenSSL binding for Haskell
 License:SUSE-Public-Domain

++ HsOpenSSL-0.11.4.4.tar.gz -> HsOpenSSL-0.11.4.6.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HsOpenSSL-0.11.4.4/ChangeLog 
new/HsOpenSSL-0.11.4.6/ChangeLog
--- old/HsOpenSSL-0.11.4.4/ChangeLog2017-03-23 23:44:20.0 +0100
+++ new/HsOpenSSL-0.11.4.6/ChangeLog2017-04-05 17:17:17.0 +0200
@@ -1,3 +1,16 @@
+2017-04-05  Vladimir Shabanov  
+
+   * HsOpenSSL.cabal (Version): Bump version to 0.11.4.6
+
+   * Setup.hs: builds with ghc 8.2,
+   by Erik de Castro Lopo @erikd (#22)
+
+2017-04-04  Vladimir Shabanov  
+
+   * HsOpenSSL.cabal (Version): Bump version to 0.11.4.5
+
+   * cbits/HsOpenSSL.c: fixed HMAC_CTX_free invocation (#21)
+
 2017-03-24  Vladimir Shabanov  
 
* HsOpenSSL.cabal (Version): Bump version to 0.11.4.4
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HsOpenSSL-0.11.4.4/HsOpenSSL.cabal 
new/HsOpenSSL-0.11.4.6/HsOpenSSL.cabal
--- old/HsOpenSSL-0.11.4.4/HsOpenSSL.cabal  2017-03-23 23:44:20.0 
+0100
+++ new/HsOpenSSL-0.11.4.6/HsOpenSSL.cabal  2017-04-05 17:17:17.0 
+0200
@@ -12,7 +12,7 @@
 , which is a pure Haskell
 implementation of SSL.
 .
-Version:   0.11.4.4
+Version:   0.11.4.6
 License:   PublicDomain
 License-File:  COPYING
 Author:Adam Langley, Mikhail Vorozhtsov, PHO, Taru Karttunen
@@ -66,7 +66,7 @@
 base   >= 4.4 && < 5,
 bytestring >= 0.9   && < 0.11,
 network>= 2.1   && < 2.7,
-time   >= 1.5   && < 1.7
+time   >= 1.5   && < 1.9
 
 if flag(fast-bignum) && impl(ghc >= 7.10.1)
 -- only new integer-gmp 1.0.0 is supported
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HsOpenSSL-0.11.4.4/Setup.hs 
new/HsOpenSSL-0.11.4.6/Setup.hs
--- old/HsOpenSSL-0.11.4.4/Setup.hs 2017-03-23 23:44:20.0 +0100
+++ new/HsOpenSSL-0.11.4.6/Setup.hs 2017-04-05 17:17:17.0 +0200
@@ -1,11 +1,16 @@
-#!/usr/bin/env runghc
-
+{-# LANGUAGE CPP #-}
 {-# LANGUAGE TupleSections #-}
 
 import Distribution.Simple
 import Distribution.Simple.Setup (ConfigFlags(..), toFlag)
 import Distribution.Simple.LocalBuildInfo (localPkgDescr)
+
+#if __GLASGOW_HASKELL__ >= 802
+import Distribution.PackageDescription (FlagName(..), mkFlagName)
+#else
 import Distribution.PackageDescription (FlagName(..))
+#endif
+
 import Distribution.Verbosity (silent)
 import System.Info (os)
 import qualified Control.Exception as E (tryJust, throw)
@@ -36,13 +41,13 @@
 Right lbi -> return lbi -- library was found
 Left e
 | configConfigurationsFlags cfg
-  `intersect` [(FlagName f, True) | f <- flags] /= [] ->
+  `intersect` [(mkFlagName f, True) | f <- flags] /= [] ->
 E.throw e
 -- flag was set but library still wasn't found
 | otherwise -> do
 r <- forM flags $ \ f ->
 fmap (f,) $ tryConfig descr $
-setFlag f cfg { configVerbosity = toFlag silent }
+setFlag (mkFlagName f) cfg { configVerbosity = toFlag 
silent }
 -- TODO: configure is a long operation
 -- while 

commit ghc-HsOpenSSL for openSUSE:Factory

2017-04-06 Thread root
Hello community,

here is the log from the commit of package ghc-HsOpenSSL for openSUSE:Factory 
checked in at 2017-04-06 11:02:27

Comparing /work/SRC/openSUSE:Factory/ghc-HsOpenSSL (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-HsOpenSSL.new (New)


Package is "ghc-HsOpenSSL"

Thu Apr  6 11:02:27 2017 rev:5 rq:484560 version:0.11.4.4

Changes:

--- /work/SRC/openSUSE:Factory/ghc-HsOpenSSL/ghc-HsOpenSSL.changes  
2017-03-20 17:06:43.873859199 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-HsOpenSSL.new/ghc-HsOpenSSL.changes 
2017-04-06 11:02:29.040752903 +0200
@@ -1,0 +2,5 @@
+Mon Mar 27 12:41:56 UTC 2017 - psim...@suse.com
+
+- Update to version 0.11.4.4 with cabal2obs.
+
+---

Old:

  HsOpenSSL-0.11.4.1.tar.gz

New:

  HsOpenSSL-0.11.4.4.tar.gz



Other differences:
--
++ ghc-HsOpenSSL.spec ++
--- /var/tmp/diff_new_pack.SmmzKg/_old  2017-04-06 11:02:29.532683375 +0200
+++ /var/tmp/diff_new_pack.SmmzKg/_new  2017-04-06 11:02:29.532683375 +0200
@@ -19,7 +19,7 @@
 %global pkg_name HsOpenSSL
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.11.4.1
+Version:0.11.4.4
 Release:0
 Summary:Partial OpenSSL binding for Haskell
 License:SUSE-Public-Domain

++ HsOpenSSL-0.11.4.1.tar.gz -> HsOpenSSL-0.11.4.4.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HsOpenSSL-0.11.4.1/ChangeLog 
new/HsOpenSSL-0.11.4.4/ChangeLog
--- old/HsOpenSSL-0.11.4.1/ChangeLog2017-02-26 22:48:27.0 +0100
+++ new/HsOpenSSL-0.11.4.4/ChangeLog2017-03-23 23:44:20.0 +0100
@@ -1,3 +1,25 @@
+2017-03-24  Vladimir Shabanov  
+
+   * HsOpenSSL.cabal (Version): Bump version to 0.11.4.4
+
+   * OpenSSL/EVP/Digest.hsc (hmacLBS): fixed linking error (#19).
+
+   * Tests/OpenSSL/EVP/Digest.hs: added tests for hmacBS and hmacLBS.
+
+2017-03-22  Vladimir Shabanov  
+
+   * HsOpenSSL.cabal (Version): Bump version to 0.11.4.3
+
+   * OpenSSL/EVP/Digest.hsc (hmacLBS): added HMAC on lazy bytestrings,
+   by SX91 (#18).
+
+2017-03-11  Vladimir Shabanov  
+
+   * HsOpenSSL.cabal (Version): Bump version to 0.11.4.2
+
+   * Ported BN to integer-gmp-1.0.x,
+   by SX91 (#17).
+
 2017-02-27  Vladimir Shabanov  
 
* HsOpenSSL.cabal (Version): Bump version to 0.11.4.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HsOpenSSL-0.11.4.1/HsOpenSSL.cabal 
new/HsOpenSSL-0.11.4.4/HsOpenSSL.cabal
--- old/HsOpenSSL-0.11.4.1/HsOpenSSL.cabal  2017-02-26 22:48:27.0 
+0100
+++ new/HsOpenSSL-0.11.4.4/HsOpenSSL.cabal  2017-03-23 23:44:20.0 
+0100
@@ -12,7 +12,7 @@
 , which is a pure Haskell
 implementation of SSL.
 .
-Version:   0.11.4.1
+Version:   0.11.4.4
 License:   PublicDomain
 License-File:  COPYING
 Author:Adam Langley, Mikhail Vorozhtsov, PHO, Taru Karttunen
@@ -68,15 +68,12 @@
 network>= 2.1   && < 2.7,
 time   >= 1.5   && < 1.7
 
-if flag(fast-bignum)
+if flag(fast-bignum) && impl(ghc >= 7.10.1)
+-- only new integer-gmp 1.0.0 is supported
+-- and it only works in OpenSSL version < 1.1.0 where BIGNUM
+-- wasn't opaque structure.
 CPP-Options: -DFAST_BIGNUM
-if impl(ghc >= 6.11)
--- TODO: integer-gmp >= 1 is not supported yet.
--- https://github.com/phonohawk/HsOpenSSL/issues/36
-Build-Depends: integer-gmp >= 0.2 && < 1
--- Doesn't work since GHC 7.10.1 (integer-gmp-1.0.0.0)
-else
-Build-Depends: ghc-prim, integer
+Build-Depends: integer-gmp >= 1.0.0 && < 1.1.0
 
 if os(darwin) && flag(homebrew-openssl)
 Include-Dirs: /usr/local/opt/openssl/include
@@ -174,6 +171,19 @@
 Other-Modules: Test.OpenSSL.TestUtils
 Build-Depends:
 HsOpenSSL,
+base >= 4.4 && < 5,
+bytestring   >= 0.9 && < 0.11
+Default-Language:
+Haskell2010
+GHC-Options:
+-Wall
+
+Test-Suite test-evp-digest
+Type:exitcode-stdio-1.0
+Main-Is: Test/OpenSSL/EVP/Digest.hs
+Other-Modules: Test.OpenSSL.TestUtils
+Build-Depends:
+HsOpenSSL,
 base >= 4.4 && < 5,
 bytestring   >= 0.9 && < 0.11
 Default-Language:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HsOpenSSL-0.11.4.1/OpenSSL/BN.hsc 
new/HsOpenSSL-0.11.4.4/OpenSSL/BN.hsc
--- 

commit ghc-HsOpenSSL for openSUSE:Factory

2017-03-20 Thread root
Hello community,

here is the log from the commit of package ghc-HsOpenSSL for openSUSE:Factory 
checked in at 2017-03-20 17:06:42

Comparing /work/SRC/openSUSE:Factory/ghc-HsOpenSSL (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-HsOpenSSL.new (New)


Package is "ghc-HsOpenSSL"

Mon Mar 20 17:06:42 2017 rev:4 rq:477438 version:0.11.4.1

Changes:

--- /work/SRC/openSUSE:Factory/ghc-HsOpenSSL/ghc-HsOpenSSL.changes  
2017-02-11 01:40:26.783248094 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-HsOpenSSL.new/ghc-HsOpenSSL.changes 
2017-03-20 17:06:43.873859199 +0100
@@ -1,0 +2,5 @@
+Mon Feb 27 10:12:20 UTC 2017 - psim...@suse.com
+
+- Update to version 0.11.4.1 with cabal2obs.
+
+---

Old:

  HsOpenSSL-0.11.4.tar.gz

New:

  HsOpenSSL-0.11.4.1.tar.gz



Other differences:
--
++ ghc-HsOpenSSL.spec ++
--- /var/tmp/diff_new_pack.b16qR2/_old  2017-03-20 17:06:44.685744561 +0100
+++ /var/tmp/diff_new_pack.b16qR2/_new  2017-03-20 17:06:44.685744561 +0100
@@ -19,7 +19,7 @@
 %global pkg_name HsOpenSSL
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.11.4
+Version:0.11.4.1
 Release:0
 Summary:Partial OpenSSL binding for Haskell
 License:SUSE-Public-Domain

++ HsOpenSSL-0.11.4.tar.gz -> HsOpenSSL-0.11.4.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HsOpenSSL-0.11.4/ChangeLog 
new/HsOpenSSL-0.11.4.1/ChangeLog
--- old/HsOpenSSL-0.11.4/ChangeLog  2017-01-24 02:44:40.0 +0100
+++ new/HsOpenSSL-0.11.4.1/ChangeLog2017-02-26 22:48:27.0 +0100
@@ -1,3 +1,9 @@
+2017-02-27  Vladimir Shabanov  
+
+   * HsOpenSSL.cabal (Version): Bump version to 0.11.4.1
+
+   * Updated for OpenSSL 1.1.0 (#16)
+
 2017-01-24  Vladimir Shabanov  
 
* HsOpenSSL.cabal (Version): Bump version to 0.11.4
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HsOpenSSL-0.11.4/HsOpenSSL.cabal 
new/HsOpenSSL-0.11.4.1/HsOpenSSL.cabal
--- old/HsOpenSSL-0.11.4/HsOpenSSL.cabal2017-01-24 02:44:40.0 
+0100
+++ new/HsOpenSSL-0.11.4.1/HsOpenSSL.cabal  2017-02-26 22:48:27.0 
+0100
@@ -12,7 +12,7 @@
 , which is a pure Haskell
 implementation of SSL.
 .
-Version:   0.11.4
+Version:   0.11.4.1
 License:   PublicDomain
 License-File:  COPYING
 Author:Adam Langley, Mikhail Vorozhtsov, PHO, Taru Karttunen
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HsOpenSSL-0.11.4/OpenSSL/Stack.hs 
new/HsOpenSSL-0.11.4.1/OpenSSL/Stack.hs
--- old/HsOpenSSL-0.11.4/OpenSSL/Stack.hs   2017-01-24 02:44:40.0 
+0100
+++ new/HsOpenSSL-0.11.4.1/OpenSSL/Stack.hs 1970-01-01 01:00:00.0 
+0100
@@ -1,61 +0,0 @@
-{-# LANGUAGE EmptyDataDecls   #-}
-{-# LANGUAGE ForeignFunctionInterface #-}
-module OpenSSL.Stack
-( STACK
-, mapStack
-, withStack
-, withForeignStack
-)
-where
-import   Control.Exception
-import   Foreign
-import   Foreign.C
-
-
-data STACK
-
-
-foreign import ccall unsafe "sk_new_null"
-skNewNull :: IO (Ptr STACK)
-
-foreign import ccall unsafe "sk_free"
-skFree :: Ptr STACK -> IO ()
-
-foreign import ccall unsafe "sk_push"
-skPush :: Ptr STACK -> Ptr () -> IO ()
-
-foreign import ccall unsafe "sk_num"
-skNum :: Ptr STACK -> IO CInt
-
-foreign import ccall unsafe "sk_value"
-skValue :: Ptr STACK -> CInt -> IO (Ptr ())
-
-
-mapStack :: (Ptr a -> IO b) -> Ptr STACK -> IO [b]
-mapStack m st
-= do num <- skNum st
- mapM (\ i -> fmap castPtr (skValue st i) >>= m)
-  $ take (fromIntegral num) [0..]
-
-
-newStack :: [Ptr a] -> IO (Ptr STACK)
-newStack values
-= do st <- skNewNull
- mapM_ (skPush st . castPtr) values
- return st
-
-
-withStack :: [Ptr a] -> (Ptr STACK -> IO b) -> IO b
-withStack values
-= bracket (newStack values) skFree
-
-
-withForeignStack :: (fp -> Ptr obj)
- -> (fp -> IO ())
- -> [fp]
- -> (Ptr STACK -> IO ret)
- -> IO ret
-withForeignStack unsafeFpToPtr touchFp fps action
-= do ret <- withStack (map unsafeFpToPtr fps) action
- mapM_ touchFp fps
- return ret
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HsOpenSSL-0.11.4/OpenSSL/Stack.hsc 
new/HsOpenSSL-0.11.4.1/OpenSSL/Stack.hsc
--- old/HsOpenSSL-0.11.4/OpenSSL/Stack.hsc  1970-01-01 01:00:00.0 
+0100
+++ 

commit ghc-HsOpenSSL for openSUSE:Factory

2017-02-10 Thread root
Hello community,

here is the log from the commit of package ghc-HsOpenSSL for openSUSE:Factory 
checked in at 2017-02-11 01:40:25

Comparing /work/SRC/openSUSE:Factory/ghc-HsOpenSSL (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-HsOpenSSL.new (New)


Package is "ghc-HsOpenSSL"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-HsOpenSSL/ghc-HsOpenSSL.changes  
2016-11-10 13:19:20.0 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-HsOpenSSL.new/ghc-HsOpenSSL.changes 
2017-02-11 01:40:26.783248094 +0100
@@ -1,0 +2,5 @@
+Thu Jan 26 16:22:01 UTC 2017 - psim...@suse.com
+
+- Update to version 0.11.4 with cabal2obs.
+
+---

Old:

  HsOpenSSL-0.11.3.2.tar.gz

New:

  HsOpenSSL-0.11.4.tar.gz



Other differences:
--
++ ghc-HsOpenSSL.spec ++
--- /var/tmp/diff_new_pack.KaWb9p/_old  2017-02-11 01:40:28.279037025 +0100
+++ /var/tmp/diff_new_pack.KaWb9p/_new  2017-02-11 01:40:28.283036460 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-HsOpenSSL
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
 %global pkg_name HsOpenSSL
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.11.3.2
+Version:0.11.4
 Release:0
 Summary:Partial OpenSSL binding for Haskell
 License:SUSE-Public-Domain

++ HsOpenSSL-0.11.3.2.tar.gz -> HsOpenSSL-0.11.4.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HsOpenSSL-0.11.3.2/ChangeLog 
new/HsOpenSSL-0.11.4/ChangeLog
--- old/HsOpenSSL-0.11.3.2/ChangeLog2016-10-17 16:11:02.0 +0200
+++ new/HsOpenSSL-0.11.4/ChangeLog  2017-01-24 02:44:40.0 +0100
@@ -1,3 +1,9 @@
+2017-01-24  Vladimir Shabanov  
+
+   * HsOpenSSL.cabal (Version): Bump version to 0.11.4
+
+   * Updated for OpenSSL 1.1.0 (#15)
+
 2016-10-17  Vladimir Shabanov  
 
* HsOpenSSL.cabal (Version): Bump version to 0.11.3.2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HsOpenSSL-0.11.3.2/HsOpenSSL.cabal 
new/HsOpenSSL-0.11.4/HsOpenSSL.cabal
--- old/HsOpenSSL-0.11.3.2/HsOpenSSL.cabal  2016-10-17 16:11:02.0 
+0200
+++ new/HsOpenSSL-0.11.4/HsOpenSSL.cabal2017-01-24 02:44:40.0 
+0100
@@ -12,7 +12,7 @@
 , which is a pure Haskell
 implementation of SSL.
 .
-Version:   0.11.3.2
+Version:   0.11.4
 License:   PublicDomain
 License-File:  COPYING
 Author:Adam Langley, Mikhail Vorozhtsov, PHO, Taru Karttunen
@@ -127,7 +127,6 @@
 OpenSSL.BIO
 OpenSSL.ERR
 OpenSSL.Objects
-OpenSSL.SSL
 OpenSSL.SSL.Option
 OpenSSL.Stack
 OpenSSL.Utils
@@ -144,19 +143,6 @@
 Includes:
 openssl/asn1.h
 
-Test-Suite test-cipher
-Type:exitcode-stdio-1.0
-Main-Is: Test/OpenSSL/Cipher.hs
-Other-Modules: Test.OpenSSL.TestUtils
-Build-Depends:
-HsOpenSSL,
-base >= 4.4 && < 5,
-bytestring   >= 0.9 && < 0.11
-Default-Language:
-Haskell2010
-GHC-Options:
--Wall
-
 Test-Suite test-dsa
 Type:exitcode-stdio-1.0
 Main-Is: Test/OpenSSL/DSA.hs
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HsOpenSSL-0.11.3.2/OpenSSL/Cipher.hsc 
new/HsOpenSSL-0.11.4/OpenSSL/Cipher.hsc
--- old/HsOpenSSL-0.11.3.2/OpenSSL/Cipher.hsc   2016-10-17 16:11:02.0 
+0200
+++ new/HsOpenSSL-0.11.4/OpenSSL/Cipher.hsc 2017-01-24 02:44:40.0 
+0100
@@ -16,7 +16,10 @@
 , AESCtx
 , newAESCtx
 , aesCBC
-, aesCTR)
+#if OPENSSL_VERSION_NUMBER < 0x1010L
+, aesCTR
+#endif
+)
 where
 #include "HsOpenSSL.h"
 #include "openssl/aes.h"
@@ -56,9 +59,6 @@
 foreign import ccall unsafe "AES_cbc_encrypt"
 _AES_cbc_encrypt :: Ptr CChar -> Ptr Word8 -> CULong -> Ptr AES_KEY -> 
Ptr CUChar -> CInt -> IO ()
 
-foreign import ccall unsafe "AES_ctr128_encrypt"
-_AES_ctr_encrypt :: Ptr CChar -> Ptr Word8 -> CULong -> Ptr AES_KEY -> 
Ptr CUChar -> Ptr CUChar -> Ptr CUInt -> IO ()
-
 foreign import ccall unsafe ""
 _free :: FunPtr (Ptr a -> IO ())
 
@@ -99,6 +99,11 @@
 BSI.create (BS.length input) $ \out ->
 _AES_cbc_encrypt ptr out (fromIntegral len) ctxPtr ivPtr $ modeToInt mode
 
+#if OPENSSL_VERSION_NUMBER < 0x1010L
+-- seems that AES_ctr128_encrypt 

commit ghc-HsOpenSSL for openSUSE:Factory

2016-11-10 Thread h_root
Hello community,

here is the log from the commit of package ghc-HsOpenSSL for openSUSE:Factory 
checked in at 2016-11-10 13:19:19

Comparing /work/SRC/openSUSE:Factory/ghc-HsOpenSSL (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-HsOpenSSL.new (New)


Package is "ghc-HsOpenSSL"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-HsOpenSSL/ghc-HsOpenSSL.changes  
2016-09-24 15:21:34.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-HsOpenSSL.new/ghc-HsOpenSSL.changes 
2016-11-10 13:19:20.0 +0100
@@ -1,0 +2,15 @@
+Thu Oct 27 15:55:02 UTC 2016 - psim...@suse.com
+
+- Update to version 0.11.3.2 with cabal2obs.
+
+---
+Mon Oct 17 15:37:38 UTC 2016 - psim...@suse.com
+
+- Update to version 0.11.3.1 with cabal2obs.
+
+---
+Tue Oct 11 08:49:43 UTC 2016 - psim...@suse.com
+
+- Update to version 0.11.2.4 with cabal2obs.
+
+---

Old:

  1.cabal
  HsOpenSSL-0.11.1.1.tar.gz

New:

  HsOpenSSL-0.11.3.2.tar.gz



Other differences:
--
++ ghc-HsOpenSSL.spec ++
--- /var/tmp/diff_new_pack.nqPwgk/_old  2016-11-10 13:19:21.0 +0100
+++ /var/tmp/diff_new_pack.nqPwgk/_new  2016-11-10 13:19:21.0 +0100
@@ -19,29 +19,20 @@
 %global pkg_name HsOpenSSL
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.11.1.1
+Version:0.11.3.2
 Release:0
 Summary:Partial OpenSSL binding for Haskell
 License:SUSE-Public-Domain
-Group:  System/Libraries
+Group:  Development/Languages/Other
 Url:https://hackage.haskell.org/package/%{pkg_name}
 Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
-Source1:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal
 BuildRequires:  ghc-Cabal-devel
-# Begin cabal-rpm deps:
 BuildRequires:  ghc-bytestring-devel
 BuildRequires:  ghc-network-devel
-BuildRequires:  ghc-old-locale-devel
 BuildRequires:  ghc-rpm-macros
 BuildRequires:  ghc-time-devel
 BuildRequires:  libopenssl-devel
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-%if %{with tests}
-BuildRequires:  ghc-HUnit-devel
-BuildRequires:  ghc-test-framework-devel
-BuildRequires:  ghc-test-framework-hunit-devel
-%endif
-# End cabal-rpm deps
 
 %description
 HsOpenSSL is an OpenSSL binding for Haskell. It can generate RSA and DSA keys,
@@ -59,33 +50,24 @@
 Group:  Development/Libraries/Other
 Requires:   %{name} = %{version}-%{release}
 Requires:   ghc-compiler = %{ghc_version}
-# Begin cabal-rpm deps:
 Requires:   libopenssl-devel
 Requires(post): ghc-compiler = %{ghc_version}
 Requires(postun): ghc-compiler = %{ghc_version}
-# End cabal-rpm deps
 
 %description devel
 This package provides the Haskell %{pkg_name} library development files.
 
 %prep
 %setup -q -n %{pkg_name}-%{version}
-cp -p %{SOURCE1} %{pkg_name}.cabal
-
 
 %build
 %ghc_lib_build
 
-
 %install
 %ghc_lib_install
 
-
 %check
-%if %{with tests}
-%{cabal} test
-%endif
-
+%cabal_test
 
 %post devel
 %ghc_pkg_recache
@@ -99,6 +81,6 @@
 
 %files devel -f %{name}-devel.files
 %defattr(-,root,root,-)
-%doc AUTHORS ChangeLog README.rst examples
+%doc AUTHORS ChangeLog README.md examples
 
 %changelog

++ HsOpenSSL-0.11.1.1.tar.gz -> HsOpenSSL-0.11.3.2.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HsOpenSSL-0.11.1.1/ChangeLog 
new/HsOpenSSL-0.11.3.2/ChangeLog
--- old/HsOpenSSL-0.11.1.1/ChangeLog2015-01-06 08:36:45.0 +0100
+++ new/HsOpenSSL-0.11.3.2/ChangeLog2016-10-17 16:11:02.0 +0200
@@ -1,3 +1,96 @@
+2016-10-17  Vladimir Shabanov  
+
+   * HsOpenSSL.cabal (Version): Bump version to 0.11.3.2
+
+   * Test/*, HsOpenSSL.cabal (Build-Depends):
+   Removed HUnit, test-framework and test-framework-hunit dependencies.
+
+2016-10-15  Vladimir Shabanov  
+
+   * HsOpenSSL.cabal (Version): Bump version to 0.11.3.1
+
+   * OpenSSL/Session.hsc: Detect failure of SSL_CTX_new,
+   by Eric Mertens @glguy (#13)
+
+2016-10-14  Vladimir Shabanov  
+
+   * HsOpenSSL.cabal (Version): Bump version to 0.11.3
+
+   * HsOpenSSL.cabal (Build-Depends): Bump HUnit upper bound,
+
+   * OpenSSL/RSA.hsc, OpenSSL/DER.hsc: moved DER function from RSA to DER
+   module. Added encoding/decoding of private keys in ASN.1 DER.
+   by @shak-mar (#12).
+
+2016-10-08  Vladimir Shabanov  
+
+   * HsOpenSSL.cabal (Version): Bump version to 0.11.2.4
+
+   *