]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
vcpkg-ports/pkcs11-helper: bump version to 1.31
authorSelva Nair <selva.nair@gmail.com>
Wed, 19 Nov 2025 11:02:25 +0000 (12:02 +0100)
committerGert Doering <gert@greenie.muc.de>
Wed, 19 Nov 2025 12:52:07 +0000 (13:52 +0100)
RFC7512 patch for pkcs11-uri is rebased to current master,
fixing minor conflicts.

Change-Id: I032a573df6deaa44b4afce3c2d2fd54f69df6e7a
Signed-off-by: Selva Nair <selva.nair@gmail.com>
Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1368
Message-Id: <20251119110231.13999-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg34527.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
contrib/vcpkg-ports/pkcs11-helper/pkcs11-helper-001-RFC7512.patch
contrib/vcpkg-ports/pkcs11-helper/portfile.cmake
contrib/vcpkg-ports/pkcs11-helper/vcpkg.json

index 56e3486e1ded116fd0aa4ad60bfd5a41d1a42ec2..65b159c90618cc087f0ea9ac0533d5bc066aa68b 100644 (file)
@@ -1,5 +1,7 @@
 upstream PR: https://github.com/OpenSC/pkcs11-helper/pull/4
 
+Rebased to 1.31.0 by selva.nair@gmail.com
+
 commit 90590b02085edc3830bdfe0942a46c4e7bf3f1ab (HEAD -> master)
 Author: David Woodhouse <David.Woodhouse@intel.com>
 Date:   Thu Apr 30 14:58:24 2015 +0100
@@ -596,9 +598,9 @@ index ad275f8..1d077e4 100644
 +      }
 +      certificate_id->attrCKA_ID_size = id_hex_len/2;
  
-       if (
-               (rv = _pkcs11h_mem_malloc (
-@@ -430,21 +596,64 @@ pkcs11h_certificate_deserializeCertificateId (
+       if (certificate_id->attrCKA_ID_size == 0) {
+               rv = CKR_ATTRIBUTE_VALUE_INVALID;
+@@ -434,21 +600,64 @@ pkcs11h_certificate_deserializeCertificateId (
                goto cleanup;
        }
  
@@ -669,20 +671,17 @@ index ad275f8..1d077e4 100644
                PKCS11H_LOG_DEBUG2,
                "PKCS#11: pkcs11h_certificate_deserializeCertificateId return rv=%lu-'%s'",
 diff --git a/lib/pkcs11h-util.c b/lib/pkcs11h-util.c
-index 0743fd1..f90e443 100644
+index 1fcadfc..a304642 100644
 --- a/lib/pkcs11h-util.c
 +++ b/lib/pkcs11h-util.c
-@@ -110,12 +110,7 @@ _pkcs11h_util_hexToBinary (
-               p++;
+@@ -123,10 +123,6 @@ _pkcs11h_util_hexToBinary (
+               (*p_target_size)++;
        }
  
 -      if (*p != '\x0') {
--              return CKR_ATTRIBUTE_VALUE_INVALID;
--      }
--      else {
--              return CKR_OK;
+-              goto cleanup;
 -      }
-+      return CKR_OK;
- }
+-
+       ret = CKR_OK;
  
- CK_RV
+ cleanup:
index db9a5ab8766e287920e54c976a8e6e574ebcbbe3..af19831d80d73e22f3524ec2a4ba7f97e43d0a9e 100644 (file)
@@ -1,9 +1,9 @@
-set(VERSION 1.30.0)
+set(VERSION 1.31.0)
 
 vcpkg_download_distfile(ARCHIVE
     URLS "https://github.com/OpenSC/pkcs11-helper/releases/download/pkcs11-helper-${VERSION}/pkcs11-helper-${VERSION}.tar.bz2"
     FILENAME "pkcs11-helper-${VERSION}.tar.bz2"
-    SHA512 19fba76e41210cc17f9efa4501d0214d4a5c777ab7b2671888fd280b150bae4a6b190c7f47fb783015f9aa40d409fd6087264e531d6f28d0bed4293dcbf8bdd5
+    SHA512 0833efc59e9093dd398a54640d858b01a830ef7adfb40321c1e0ed0afa004500fc1259cc66bc49c5263935adeda0a3bfe658de538eefd66888685a71f731c484
 )
 
 vcpkg_extract_source_archive_ex(
index 521f7547569669a9a2d3be938cc11e8bc10f92cb..382a3d38a41bf7e5c93abc5739b7ea2ce4b6e05c 100644 (file)
@@ -1,6 +1,6 @@
 {
     "name": "pkcs11-helper",
-    "version": "1.30.0",
+    "version": "1.31.0",
     "description": "pkcs11-helper is a library that simplifies the interaction with PKCS#11 providers for end-user applications.",
     "homepage": "https://github.com/OpenSC/pkcs11-helper",
     "license": "BSD-3-Clause OR GPL-2.0-only"