Skip to content

Commit

Permalink
security/xmlsec1: update to 1.3.2 release (+)
Browse files Browse the repository at this point in the history
It's a minimal requirement for upcoming LibreOffice

With hat:	office
  • Loading branch information
fluffykhv committed Feb 13, 2024
1 parent db61653 commit 61f0255
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 27 deletions.
4 changes: 1 addition & 3 deletions security/xmlsec1/Makefile
@@ -1,6 +1,5 @@
PORTNAME= xmlsec1
DISTVERSION= 1.2.38
PORTREVISION= 1
DISTVERSION= 1.3.2
CATEGORIES= security
MASTER_SITES= https://github.com/lsh123/xmlsec/releases/download/xmlsec_${DISTVERSION:S,.,_,g}/ \
https://www.aleksey.com/xmlsec/download/
Expand All @@ -19,7 +18,6 @@ USE_GNOME= libxml2 libxslt
USE_LDCONFIG= yes

GNU_CONFIGURE= yes
GNU_CONFIGURE_MANPREFIX=${PREFIX}/share

INSTALL_TARGET= install-strip
PORTDOCS= *
Expand Down
6 changes: 3 additions & 3 deletions security/xmlsec1/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1691949373
SHA256 (xmlsec1-1.2.38.tar.gz) = 9de8cf8d7d2e288a9cef205cc6cb93c926a67dadfaf44aaff76ed63c28ce9902
SIZE (xmlsec1-1.2.38.tar.gz) = 2036578
TIMESTAMP = 1702077731
SHA256 (xmlsec1-1.3.2.tar.gz) = 4003c56b3d356d21b1db7775318540fad6bfedaf5f117e8f7c010811219be3cf
SIZE (xmlsec1-1.3.2.tar.gz) = 2437263
4 changes: 2 additions & 2 deletions security/xmlsec1/files/patch-Makefile.in
@@ -1,6 +1,6 @@
--- Makefile.in.orig 2022-12-06 14:04:01 UTC
--- Makefile.in.orig 2023-12-08 23:22:46 UTC
+++ Makefile.in
@@ -491,7 +491,7 @@ pkgconfigdir = $(prefix)/libdata/pkgconfig
@@ -504,7 +504,7 @@ pkgconfigdir = $(prefix)/libdata/pkgconfig
bin_SCRIPTS = xmlsec1-config
pkgconfig_DATA = xmlsec1.pc @XMLSEC_CRYPTO_PC_FILES_LIST@
pkgconfigdir = $(prefix)/libdata/pkgconfig
Expand Down
21 changes: 6 additions & 15 deletions security/xmlsec1/files/patch-src-openssl-app.c
@@ -1,8 +1,8 @@
--- src/openssl/app.c.orig 2022-11-28 21:40:24 UTC
--- src/openssl/app.c.orig 2023-10-30 22:27:05 UTC
+++ src/openssl/app.c
@@ -46,6 +46,29 @@

@@ -59,6 +59,29 @@
#include "../cast_helpers.h"
#include "private.h"

+#if defined(XMLSEC_OPENSSL_API_110) && defined(LIBRESSL_VERSION_NUMBER)
+static UI_METHOD *
Expand Down Expand Up @@ -30,7 +30,7 @@
static int xmlSecOpenSSLDefaultPasswordCallback (char *buf,
int bufsiz,
int verify,
@@ -462,6 +485,11 @@ xmlSecOpenSSLAppEngineKeyLoad(const char *engineName,
@@ -490,6 +513,11 @@ xmlSecOpenSSLAppEngineKeyLoad(const char *engineName,
EVP_PKEY* pKey = NULL;
int engineInit = 0;
int ret;
Expand All @@ -42,7 +42,7 @@

xmlSecAssert2(engineName != NULL, NULL);
xmlSecAssert2(engineKeyId != NULL, NULL);
@@ -487,7 +515,7 @@ xmlSecOpenSSLAppEngineKeyLoad(const char *engineName,
@@ -538,7 +566,7 @@ xmlSecOpenSSLAppEngineKeyLoad(const char *engineName,
}
}

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

/* load private key */
pKey = ENGINE_load_private_key(engine, engineKeyId,
- (UI_METHOD *)UI_null(),
+ (UI_METHOD *)ui_null,
NULL);
if(pKey == NULL) {
xmlSecOpenSSLError("ENGINE_load_private_key", NULL);
@@ -534,6 +562,7 @@ done:
@@ -601,6 +629,7 @@ done:
data = NULL;

done:
Expand Down
8 changes: 4 additions & 4 deletions security/xmlsec1/pkg-plist
Expand Up @@ -14,6 +14,7 @@ include/xmlsec1/xmlsec/exports.h
%%GNUTLS%%include/xmlsec1/xmlsec/gcrypt/symbols.h
%%GNUTLS%%include/xmlsec1/xmlsec/gnutls/app.h
%%GNUTLS%%include/xmlsec1/xmlsec/gnutls/crypto.h
%%GNUTLS%%include/xmlsec1/xmlsec/gnutls/keysstore.h
%%GNUTLS%%include/xmlsec1/xmlsec/gnutls/symbols.h
%%GNUTLS%%include/xmlsec1/xmlsec/gnutls/x509.h
include/xmlsec1/xmlsec/io.h
Expand All @@ -25,16 +26,15 @@ include/xmlsec1/xmlsec/list.h
include/xmlsec1/xmlsec/membuf.h
include/xmlsec1/xmlsec/nodeset.h
%%NSS%%include/xmlsec1/xmlsec/nss/app.h
%%NSS%%include/xmlsec1/xmlsec/nss/bignum.h
%%NSS%%include/xmlsec1/xmlsec/nss/crypto.h
%%NSS%%include/xmlsec1/xmlsec/nss/keysstore.h
%%NSS%%include/xmlsec1/xmlsec/nss/pkikeys.h
%%NSS%%include/xmlsec1/xmlsec/nss/symbols.h
%%NSS%%include/xmlsec1/xmlsec/nss/x509.h
%%OPENSSL%%include/xmlsec1/xmlsec/openssl/app.h
%%OPENSSL%%include/xmlsec1/xmlsec/openssl/bn.h
%%OPENSSL%%include/xmlsec1/xmlsec/openssl/crypto.h
%%OPENSSL%%include/xmlsec1/xmlsec/openssl/evp.h
%%OPENSSL%%include/xmlsec1/xmlsec/openssl/keysstore.h
%%OPENSSL%%include/xmlsec1/xmlsec/openssl/symbols.h
%%OPENSSL%%include/xmlsec1/xmlsec/openssl/x509.h
include/xmlsec1/xmlsec/parser.h
Expand Down Expand Up @@ -68,6 +68,6 @@ lib/libxmlsec1.so.%%DISTVERSION%%
%%NSS%%libdata/pkgconfig/xmlsec1-nss.pc
%%OPENSSL%%libdata/pkgconfig/xmlsec1-openssl.pc
libdata/pkgconfig/xmlsec1.pc
share/man/man1/xmlsec1-config.1.gz
share/man/man1/xmlsec1.1.gz
man/man1/xmlsec1-config.1.gz
man/man1/xmlsec1.1.gz
share/aclocal/xmlsec1.m4

0 comments on commit 61f0255

Please sign in to comment.