Update to the latest version.  CHANGES:

0.5.1 (2015-05-27)
=====

* Fix META file for versions of OCaml older than 4.02.0 (thanks Anil
  Madhavapeddy, closes #20).

0.5.0 (2015-05-18)
=====
* Allow to honor server cipher preferences (thanks mfp, closes #18).
* Add functions for reading into/writing from bigarrays, avoiding copy (thanks
  mfp, closes #15).
* Support disabling SSL protocol versions (thanks Edwin Török, closes #13).
* Use Bytes instead of String for read and write, changes the ABI thus the
  version bump (thanks Vincent Bernardoff, closes #16, and mfp, closes #19).
* Make verbosity of client_verify_callback configurable (thanks Nicolas Trangez,
  closes #12).
* Fix build with old versions of SSL (thanks Edwin Török, closes #10).

0.4.7 (2014-04-21)
=====

* Add support for TLS1.1 and TLS1.2 (thanks Thomas Calderon).
* Add function to initialize Diffie-Hellman and elliptic curve parameters
  (thanks Thomas Calderon and Edwin Török).
* Add set_client_SNI_hostname to specify client-side SNI hostname (thanks
  Mauricio Fernandez).
* Fix double leave of blocking section in ocaml_ssl_accept (thanks Edwin Török).
* Check for errors in SSL_connect/SSL_accept (thanks Jérôme Vouillon).
* Clear the error queue before calling SSL_read and similar functions;
  SSL_get_error does not work reliably otherwise (thanks Jérôme Vouillon).
* Allow static linking on Mingw64 (thanks schadinger).

This version does not integrate the patch I had submitted upstream,
which is a good thing because it can be improved: if SSLv3 is requested,
the error message should not be

  "Unknown method (this should not have happened, please report)."

because there is no bug to report.

ok?

Index: Makefile
===================================================================
RCS file: /cvs/ports/security/ocaml-ssl/Makefile,v
retrieving revision 1.7
diff -u -p -r1.7 Makefile
--- Makefile    30 Aug 2015 16:27:32 -0000      1.7
+++ Makefile    6 Oct 2015 16:58:25 -0000
@@ -4,9 +4,8 @@ COMMENT =       OCaml bindings for libssl
 CATEGORIES =   devel security
 
 NAME =         ocaml-ssl
-DISTNAME =     ${NAME}-0.4.6
+DISTNAME =     ${NAME}-0.5.1
 MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=savonet/ocaml-ssl/}
-REVISION =     4
 
 HOMEPAGE =     http://sourceforge.net/projects/savonet/files/ocaml-ssl/
 
@@ -26,10 +25,9 @@ USE_GMAKE =  Yes
 
 post-install:
        ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/${NAME}/html
-       ${INSTALL_DATA} ${WRKDIST}/{README,CHANGES} ${PREFIX}/share/doc/${NAME}/
+       ${INSTALL_DATA} ${WRKDIST}/{README.md,CHANGES} 
${PREFIX}/share/doc/${NAME}/
        ${INSTALL_DATA} ${WRKDIST}/doc/html/* ${PREFIX}/share/doc/${NAME}/html/
        ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/${NAME}
        ${INSTALL_DATA} ${WRKDIST}/examples/* ${PREFIX}/share/examples/${NAME}/
-
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/security/ocaml-ssl/distinfo,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 distinfo
--- distinfo    18 Aug 2012 22:34:57 -0000      1.1.1.1
+++ distinfo    6 Oct 2015 16:52:57 -0000
@@ -1,2 +1,2 @@
-SHA256 (ocaml-ssl-0.4.6.tar.gz) = H/f7x3u17Htr/coEXGx6UdTZjtYKhl8p4G3ZEoWslJk=
-SIZE (ocaml-ssl-0.4.6.tar.gz) = 118798
+SHA256 (ocaml-ssl-0.5.1.tar.gz) = g7yPWypLmUPGS9+mYSOuHwmbNtdripigt7mc3ZSkd4c=
+SIZE (ocaml-ssl-0.5.1.tar.gz) = 125006
Index: patches/patch-src_ssl_stubs_c
===================================================================
RCS file: /cvs/ports/security/ocaml-ssl/patches/patch-src_ssl_stubs_c,v
retrieving revision 1.2
diff -u -p -r1.2 patch-src_ssl_stubs_c
--- patches/patch-src_ssl_stubs_c       28 Aug 2015 11:44:08 -0000      1.2
+++ patches/patch-src_ssl_stubs_c       6 Oct 2015 17:12:06 -0000
@@ -4,21 +4,21 @@ Fixed in
 
   
https://github.com/savonet/ocaml-ssl/commit/8f698ba93028f0b399f75079d4369f44db82182c
 
---- src/ssl_stubs.c.orig       Sun Oct 16 12:57:56 2011
-+++ src/ssl_stubs.c    Sat Jul 18 12:28:06 2015
-@@ -269,6 +269,7 @@ static const SSL_METHOD *get_method(int protocol, int 
-       }
+--- src/ssl_stubs.c.orig       Wed May 27 09:56:10 2015
++++ src/ssl_stubs.c    Tue Oct  6 19:12:01 2015
+@@ -290,6 +290,7 @@ static const SSL_METHOD *get_method(int protocol, int 
        break;
  
-+#ifndef OPENSSL_NO_SSL3
      case 1:
++#ifndef OPENSSL_NO_SSL3
        switch (type)
        {
-@@ -285,6 +286,7 @@ static const SSL_METHOD *get_method(int protocol, int 
+         case 0:
+@@ -304,6 +305,7 @@ static const SSL_METHOD *get_method(int protocol, int 
+           method = SSLv3_method();
            break;
        }
-       break;
 +#endif
+       break;
  
      case 2:
-       switch (type)
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/security/ocaml-ssl/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 PLIST
--- pkg/PLIST   18 Aug 2012 22:34:57 -0000      1.1.1.1
+++ pkg/PLIST   6 Oct 2015 16:57:25 -0000
@@ -15,7 +15,7 @@ lib/ocaml/ssl/ssl_threads.mli
 @comment lib/ocaml/stublibs/dllssl_threads_stubs.so.owner
 share/doc/ocaml-ssl/
 share/doc/ocaml-ssl/CHANGES
-share/doc/ocaml-ssl/README
+share/doc/ocaml-ssl/README.md
 share/doc/ocaml-ssl/html/
 share/doc/ocaml-ssl/html/Ssl.html
 share/doc/ocaml-ssl/html/Ssl_threads.html
@@ -24,6 +24,7 @@ share/doc/ocaml-ssl/html/index_attribute
 share/doc/ocaml-ssl/html/index_class_types.html
 share/doc/ocaml-ssl/html/index_classes.html
 share/doc/ocaml-ssl/html/index_exceptions.html
+share/doc/ocaml-ssl/html/index_extensions.html
 share/doc/ocaml-ssl/html/index_methods.html
 share/doc/ocaml-ssl/html/index_module_types.html
 share/doc/ocaml-ssl/html/index_modules.html


-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply via email to