Skip to content

Commit

Permalink
security/xmlsec1: update to 1.2.37 release (+)
Browse files Browse the repository at this point in the history
This is a prerequisite for LibreOffcie 7.5 update

News:
1.2.37:	Fixed two regressions from 1.2.36 release: issue #437 and issue #449.

1.2.36:	Retired the XMLSec mailing list "xmlsec@aleksey.com" and the XMLSec Online Signature Verifier.
	Several other small fixes (more details).

1.3.25:	Migration to OpenSSL 3.0 API (based on PR by @snargit).
	The OpenSSL before 1.1.0 and LibreSSL before 2.7.0 are now deprecated and will be removed in the future versions of XMLSec Library.
	Refactored all the integer casts to ensure cast-safety. Fixed all warnings and enabled "-Werror" and "-pedantic" flags on CI builds.
	Added configure flag to use size_t for xmlSecSize (currently disabled by default for backward compatibility).
	Several other small fixes (more details).

Full Changelog:	https://www.aleksey.com/xmlsec/
With hat:	office
  • Loading branch information
fluffykhv committed Feb 4, 2023
1 parent c310ec7 commit 645c54e
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 33 deletions.
9 changes: 3 additions & 6 deletions security/xmlsec1/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
PORTNAME= xmlsec1
PORTVERSION= 1.2.34
PORTREVISION= 1
PORTVERSION= 1.2.37
CATEGORIES= security
MASTER_SITES= http://www.aleksey.com/xmlsec/download/ \
ftp://ftp.aleksey.com/pub/xmlsec/releases/ \
ftp://ftp.xmlsoft.org/xmlsec/releases/ \
ftp://ftp.rpmfind.net/pub/XML/xmlsec/releases/
MASTER_SITES= https://www.aleksey.com/xmlsec/download/ \
https://github.com/lsh123/xmlsec/releases/download/xmlsec-${PORTVERSION:S,.,_,g}/

MAINTAINER= hrs@FreeBSD.org
COMMENT= XML Security Library
Expand Down
6 changes: 3 additions & 3 deletions security/xmlsec1/distinfo
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
TIMESTAMP = 1651858077
SHA256 (xmlsec1-1.2.34.tar.gz) = 52ced4943f35bd7d0818a38298c1528ca4ac8a54440fd71134a07d2d1370a262
SIZE (xmlsec1-1.2.34.tar.gz) = 1991505
TIMESTAMP = 1670335424
SHA256 (xmlsec1-1.2.37.tar.gz) = 5f8dfbcb6d1e56bddd0b5ec2e00a3d0ca5342a9f57c24dffde5c796b2be2871c
SIZE (xmlsec1-1.2.37.tar.gz) = 2009175
4 changes: 2 additions & 2 deletions security/xmlsec1/files/patch-Makefile.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- Makefile.in.orig 2022-05-06 17:33:38 UTC
--- Makefile.in.orig 2022-12-06 14:04:01 UTC
+++ Makefile.in
@@ -490,7 +490,7 @@ DEFAULT_CRYPTO = @XMLSEC_DEFAULT_CRYPTO@
@@ -491,7 +491,7 @@ pkgconfigdir = $(prefix)/libdata/pkgconfig
bin_SCRIPTS = xmlsec1-config
pkgconfig_DATA = xmlsec1.pc @XMLSEC_CRYPTO_PC_FILES_LIST@
pkgconfigdir = $(prefix)/libdata/pkgconfig
Expand Down
11 changes: 0 additions & 11 deletions security/xmlsec1/files/patch-apps-xmlsec.c

This file was deleted.

22 changes: 11 additions & 11 deletions security/xmlsec1/files/patch-src-openssl-app.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
--- src/openssl/app.c.orig 2022-05-03 23:36:17.000000000 +0900
+++ src/openssl/app.c 2022-05-07 05:18:46.065103000 +0900
@@ -43,6 +43,29 @@
--- src/openssl/app.c.orig 2022-11-28 21:40:24 UTC
+++ src/openssl/app.c
@@ -46,6 +46,29 @@

#include "openssl_compat.h"
#include "../cast_helpers.h"

+#if defined(XMLSEC_OPENSSL_API_110) && defined(LIBRESSL_VERSION_NUMBER)
+static UI_METHOD *
Expand All @@ -27,10 +27,10 @@
+}
+#endif
+
static int xmlSecOpenSSLAppLoadRANDFile (const char *filename);
static int xmlSecOpenSSLAppSaveRANDFile (const char *filename);
static int xmlSecOpenSSLDefaultPasswordCallback (char *buf,
@@ -415,6 +438,11 @@
int bufsiz,
int verify,
@@ -462,6 +485,11 @@ xmlSecOpenSSLAppEngineKeyLoad(const char *engineName,
EVP_PKEY* pKey = NULL;
int engineInit = 0;
int ret;
Expand All @@ -40,9 +40,9 @@
+ const UI_METHOD *ui_null = ui_null_create();
+#endif

#ifndef OPENSSL_NO_ENGINE
xmlSecAssert2(engineName != NULL, NULL);
@@ -437,7 +465,7 @@
xmlSecAssert2(engineKeyId != NULL, NULL);
@@ -487,7 +515,7 @@ xmlSecOpenSSLAppEngineKeyLoad(const char *engineName,
}
}

Expand All @@ -51,7 +51,7 @@
xmlSecOpenSSLError("ENGINE_ctrl_cmd_string(SET_USER_INTERFACE)", NULL);
goto done;
}
@@ -453,7 +481,7 @@
@@ -503,7 +531,7 @@ xmlSecOpenSSLAppEngineKeyLoad(const char *engineName,

/* load private key */
pKey = ENGINE_load_private_key(engine, engineKeyId,
Expand All @@ -60,7 +60,7 @@
NULL);
if(pKey == NULL) {
xmlSecOpenSSLError("ENGINE_load_private_key", NULL);
@@ -484,6 +512,7 @@
@@ -534,6 +562,7 @@ done:
data = NULL;

done:
Expand Down

0 comments on commit 645c54e

Please sign in to comment.