@@ -3,28 +3,23 @@ class Lasso < Formula
3
3
4
4
desc "Library for Liberty Alliance and SAML protocols"
5
5
homepage "https://lasso.entrouvert.org/"
6
- url "https://dev.entrouvert.org/releases/lasso/lasso-2.8.2 .tar.gz"
7
- sha256 "6a1831bfdbf8f424c7508aba47b045d51341ec0fde9122f38b0b86b096ef533e "
6
+ url "https://dev.entrouvert.org/releases/lasso/lasso-2.9.0 .tar.gz"
7
+ sha256 "63816c8219df48cdefeccb1acb35e04014ca6395b5263c70aacd5470ea95c351 "
8
8
license "GPL-2.0-or-later"
9
- revision 2
10
9
11
10
livecheck do
12
11
url :homepage
13
12
regex ( /href=.*?lasso[._-]v?(\d +(?:\. \d +)+)\. t/i )
14
13
end
15
14
16
- no_autobump! because : :requires_manual_review
17
-
18
15
bottle do
19
- sha256 cellar : :any , arm64_sequoia : "d11f5c5002eea8bf352df2eb6d3e903a25cf985c624d764d908646b7193d7787"
20
- sha256 cellar : :any , arm64_sonoma : "bae175f8483fcb721716c04489109384cf80f7b1b3e2dfddfe2bbb785e0cbddf"
21
- sha256 cellar : :any , arm64_ventura : "1d90d46ff6490946d1f8e156038fb83fe63c59f7bebab3b712ee6eeaf73175c9"
22
- sha256 cellar : :any , arm64_monterey : "9b7b4aaf4ebb484bc9965c44ec60b5688bf07160fd21009b3698c9906339ceca"
23
- sha256 cellar : :any , sonoma : "1ae094adf28b557f503e6902eba7782fc3f06851f99af55bb719cd1ef5421acc"
24
- sha256 cellar : :any , ventura : "c70b29501fec372898d179cc2b90a8778135b1b90679cedbc9d04967c23be6ca"
25
- sha256 cellar : :any , monterey : "c502d05c3014a4bc43418345944c10ad4f5aa7e65743a83b374b51f8f44d2eff"
26
- sha256 cellar : :any_skip_relocation , arm64_linux : "06aec249f21d3077204ca46f10391df23570448ff47650cbeefd69455dad5a78"
27
- sha256 cellar : :any_skip_relocation , x86_64_linux : "9adf24a05cbf953ad5f3d3bca3f388eadb08480aaf9f100663504c2ea83ff025"
16
+ sha256 cellar : :any , arm64_sequoia : "73a4b5de8e89c7600198eda7cbe6a6c617645e5a902419856e8c661aad8f9805"
17
+ sha256 cellar : :any , arm64_sonoma : "6b4e27f4dec99b6f3e4fdd7e199fe025913c19bb6cb0bfb9960f4e5e4c8baeac"
18
+ sha256 cellar : :any , arm64_ventura : "b5d48e185589b6c5e989efd4334885d05aaeb181fadefc2d679d1296fec110a9"
19
+ sha256 cellar : :any , sonoma : "bdf22529b3f2873ad02c0630beb28cbb6f05656819f7912441fb3324a649cf5e"
20
+ sha256 cellar : :any , ventura : "2d7722abbe72ada2eeb86163ea469ab83bbaba42b4d57183d3c47f08d565fb12"
21
+ sha256 cellar : :any_skip_relocation , arm64_linux : "c489df4d15314a1ea8c3589a21dcd9c584e989964d03f26170c9f9def96c6dbb"
22
+ sha256 cellar : :any_skip_relocation , x86_64_linux : "10d43be485d5889e1ad8fe51b3f9a685bb34e19a1fce924faed46de9f682f5ce"
28
23
end
29
24
30
25
depends_on "pkgconf" => :build
@@ -48,13 +43,6 @@ class Lasso < Formula
48
43
end
49
44
end
50
45
51
- # patch from upstream issue: https://dev.entrouvert.org/issues/85339
52
- # Remove when https://git.entrouvert.org/entrouvert/lasso/pulls/10/ is merged
53
- #
54
- # Backport https://git.entrouvert.org/entrouvert/lasso/commit/cbe2c45455d93ed793dc4be59e3d2d26f1bd1111
55
- # Remove on the next release (starting from "diff --git a/lasso/lasso.c b/lasso/lasso.c")
56
- patch :DATA
57
-
58
46
def install
59
47
ENV [ "PYTHON" ] = if OS . linux?
60
48
venv = virtualenv_create ( buildpath /"venv" , "python3" )
@@ -92,116 +80,3 @@ def install
92
80
system "./test"
93
81
end
94
82
end
95
-
96
- __END__
97
- diff --git a/lasso/xml/tools.c b/lasso/xml/tools.c
98
- index 4d5fa78a..0478f3f4 100644
99
- --- a/lasso/xml/tools.c
100
- +++ b/lasso/xml/tools.c
101
- @@ -64,6 +64,7 @@
102
- #include <glib.h>
103
- #include "xml.h"
104
- #include "xml_enc.h"
105
- +#include "id-ff/server.h"
106
- #include "saml-2.0/saml2_assertion.h"
107
- #include <unistd.h>
108
- #include "../debug.h"
109
- @@ -309,7 +310,7 @@ xmlSecKeyPtr lasso_get_public_key_from_pem_file(const char *file) {
110
- pub_key = lasso_get_public_key_from_pem_cert_file(file);
111
- break;
112
- case LASSO_PEM_FILE_TYPE_PUB_KEY:
113
- - pub_key = xmlSecCryptoAppKeyLoad(file,
114
- + pub_key = xmlSecCryptoAppKeyLoadEx(file, xmlSecKeyDataTypePublic | xmlSecKeyDataTypePrivate,
115
- xmlSecKeyDataFormatPem, NULL, NULL, NULL);
116
- break;
117
- case LASSO_PEM_FILE_TYPE_PRIVATE_KEY:
118
- @@ -378,7 +379,7 @@ lasso_get_public_key_from_pem_cert_file(const char *pem_cert_file)
119
- static xmlSecKeyPtr
120
- lasso_get_public_key_from_private_key_file(const char *private_key_file)
121
- {
122
- - return xmlSecCryptoAppKeyLoad(private_key_file,
123
- + return xmlSecCryptoAppKeyLoadEx(private_key_file, xmlSecKeyDataTypePrivate | xmlSecKeyDataTypePublic,
124
- xmlSecKeyDataFormatPem, NULL, NULL, NULL);
125
- }
126
-
127
- @@ -2704,7 +2705,7 @@ cleanup:
128
- xmlSecKeyPtr
129
- lasso_xmlsec_load_key_info(xmlNode *key_descriptor)
130
- {
131
- - xmlSecKeyPtr key, result = NULL;
132
- + xmlSecKeyPtr key = NULL, result = NULL;
133
- xmlNodePtr key_info = NULL;
134
- xmlSecKeyInfoCtx ctx = {0};
135
- xmlSecKeysMngr *keys_mngr = NULL;
136
- @@ -2738,6 +2739,17 @@ lasso_xmlsec_load_key_info(xmlNode *key_descriptor)
137
- ctx.keyReq.keyUsage = xmlSecKeyDataUsageAny;
138
- ctx.certsVerificationDepth = 0;
139
-
140
- + if((xmlSecPtrListAdd(&ctx.enabledKeyData, BAD_CAST xmlSecKeyDataX509Id) < 0) ||
141
- + (xmlSecPtrListAdd(&ctx.enabledKeyData, BAD_CAST xmlSecKeyDataValueId) < 0) ||
142
- + (xmlSecPtrListAdd(&ctx.enabledKeyData, BAD_CAST xmlSecKeyDataRsaId) < 0) ||
143
- + (xmlSecPtrListAdd(&ctx.enabledKeyData, BAD_CAST xmlSecKeyDataDsaId) < 0) ||
144
- + (xmlSecPtrListAdd(&ctx.enabledKeyData, BAD_CAST xmlSecKeyDataHmacId) < 0)) {
145
- + message(G_LOG_LEVEL_CRITICAL, "Could not enable needed KeyData");
146
- + goto next;
147
- + }
148
- +
149
- +
150
- +
151
- key = xmlSecKeyCreate();
152
- if (lasso_flag_pem_public_key) {
153
- xmlSecErrorsDefaultCallbackEnableOutput(FALSE);
154
- diff --git a/lasso/xml/xml.c b/lasso/xml/xml.c
155
- index 0d5c6e31..09cc3037 100644
156
- --- a/lasso/xml/xml.c
157
- +++ b/lasso/xml/xml.c
158
- @@ -620,6 +620,10 @@ lasso_node_encrypt(LassoNode *lasso_node, xmlSecKey *encryption_public_key,
159
- goto cleanup;
160
- }
161
-
162
- +#if (XMLSEC_MAJOR > 1) || (XMLSEC_MAJOR == 1 && XMLSEC_MINOR > 3) || (XMLSEC_MAJOR == 1 && XMLSEC_MINOR == 3 && XMLSEC_SUBMINOR >= 0)
163
- + enc_ctx->keyInfoWriteCtx.flags |= XMLSEC_KEYINFO_FLAGS_LAX_KEY_SEARCH;
164
- +#endif
165
- +
166
- /* generate a symetric key */
167
- switch (encryption_sym_key_type) {
168
- case LASSO_ENCRYPTION_SYM_KEY_TYPE_AES_256:
169
- diff --git a/lasso/lasso.c b/lasso/lasso.c
170
- index 42b7d6bb..bc75f5e6 100644
171
- --- a/lasso/lasso.c
172
- +++ b/lasso/lasso.c
173
- @@ -138,7 +138,13 @@ DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
174
- #include "types.c"
175
-
176
- static void
177
- -lasso_xml_structured_error_func(G_GNUC_UNUSED void *user_data, xmlErrorPtr error)
178
- +lasso_xml_structured_error_func(G_GNUC_UNUSED void *user_data,
179
- +#if LIBXML_VERSION >= 21200
180
- + const xmlError *error
181
- +#else
182
- + xmlErrorPtr error
183
- +#endif
184
- + )
185
- {
186
- g_log("libxml2", G_LOG_LEVEL_DEBUG, "libxml2: %s", error->message);
187
- }
188
- diff --git a/lasso/xml/tools.c b/lasso/xml/tools.c
189
- index bbc87d9f..4d5fa78a 100644
190
- --- a/lasso/xml/tools.c
191
- +++ b/lasso/xml/tools.c
192
- @@ -1450,7 +1450,14 @@ lasso_concat_url_query(const char *url, const char *query)
193
- }
194
- }
195
-
196
- -static void structuredErrorFunc (void *userData, xmlErrorPtr error) {
197
- +static void structuredErrorFunc (void *userData,
198
- +#if LIBXML_VERSION >= 21200
199
- + const xmlError *error
200
- +#else
201
- + xmlErrorPtr error
202
- +#endif
203
- + )
204
- +{
205
- *(int*)userData = error->code;
206
- }
207
-
0 commit comments