Skip to content

Commit 031fdbc

Browse files
selvanaircron2
authored andcommitted
vcpkg-ports/pkcs11-helper: bump version to 1.31
RFC7512 patch for pkcs11-uri is rebased to current master, fixing minor conflicts. Change-Id: I032a573df6deaa44b4afce3c2d2fd54f69df6e7a Signed-off-by: Selva Nair <[email protected]> Acked-by: Frank Lichtenheld <[email protected]> Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1368 Message-Id: <[email protected]> URL: https://www.mail-archive.com/[email protected]/msg34527.html Signed-off-by: Gert Doering <[email protected]> (cherry picked from commit 3d0d4b1)
1 parent 647b115 commit 031fdbc

File tree

3 files changed

+15
-16
lines changed

3 files changed

+15
-16
lines changed

contrib/vcpkg-ports/pkcs11-helper/pkcs11-helper-001-RFC7512.patch

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
upstream PR: https://github.com/OpenSC/pkcs11-helper/pull/4
22

3+
Rebased to 1.31.0 by [email protected]
4+
35
commit 90590b02085edc3830bdfe0942a46c4e7bf3f1ab (HEAD -> master)
46
Author: David Woodhouse <[email protected]>
57
Date: Thu Apr 30 14:58:24 2015 +0100
@@ -596,9 +598,9 @@ index ad275f8..1d077e4 100644
596598
+ }
597599
+ certificate_id->attrCKA_ID_size = id_hex_len/2;
598600

599-
if (
600-
(rv = _pkcs11h_mem_malloc (
601-
@@ -430,21 +596,64 @@ pkcs11h_certificate_deserializeCertificateId (
601+
if (certificate_id->attrCKA_ID_size == 0) {
602+
rv = CKR_ATTRIBUTE_VALUE_INVALID;
603+
@@ -434,21 +600,64 @@ pkcs11h_certificate_deserializeCertificateId (
602604
goto cleanup;
603605
}
604606

@@ -669,20 +671,17 @@ index ad275f8..1d077e4 100644
669671
PKCS11H_LOG_DEBUG2,
670672
"PKCS#11: pkcs11h_certificate_deserializeCertificateId return rv=%lu-'%s'",
671673
diff --git a/lib/pkcs11h-util.c b/lib/pkcs11h-util.c
672-
index 0743fd1..f90e443 100644
674+
index 1fcadfc..a304642 100644
673675
--- a/lib/pkcs11h-util.c
674676
+++ b/lib/pkcs11h-util.c
675-
@@ -110,12 +110,7 @@ _pkcs11h_util_hexToBinary (
676-
p++;
677+
@@ -123,10 +123,6 @@ _pkcs11h_util_hexToBinary (
678+
(*p_target_size)++;
677679
}
678680

679681
- if (*p != '\x0') {
680-
- return CKR_ATTRIBUTE_VALUE_INVALID;
681-
- }
682-
- else {
683-
- return CKR_OK;
682+
- goto cleanup;
684683
- }
685-
+ return CKR_OK;
686-
}
684+
-
685+
ret = CKR_OK;
687686

688-
CK_RV
687+
cleanup:

contrib/vcpkg-ports/pkcs11-helper/portfile.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
set(VERSION 1.30.0)
1+
set(VERSION 1.31.0)
22

33
vcpkg_download_distfile(ARCHIVE
44
URLS "https://github.com/OpenSC/pkcs11-helper/releases/download/pkcs11-helper-${VERSION}/pkcs11-helper-${VERSION}.tar.bz2"
55
FILENAME "pkcs11-helper-${VERSION}.tar.bz2"
6-
SHA512 19fba76e41210cc17f9efa4501d0214d4a5c777ab7b2671888fd280b150bae4a6b190c7f47fb783015f9aa40d409fd6087264e531d6f28d0bed4293dcbf8bdd5
6+
SHA512 0833efc59e9093dd398a54640d858b01a830ef7adfb40321c1e0ed0afa004500fc1259cc66bc49c5263935adeda0a3bfe658de538eefd66888685a71f731c484
77
)
88

99
vcpkg_extract_source_archive_ex(

contrib/vcpkg-ports/pkcs11-helper/vcpkg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pkcs11-helper",
3-
"version": "1.30.0",
3+
"version": "1.31.0",
44
"description": "pkcs11-helper is a library that simplifies the interaction with PKCS#11 providers for end-user applications.",
55
"homepage": "https://github.com/OpenSC/pkcs11-helper",
66
"license": "BSD-3-Clause OR GPL-2.0-only"

0 commit comments

Comments
 (0)