summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-01-16 23:19:50 -0800
committerKhem Raj <raj.khem@gmail.com>2020-01-17 15:44:06 -0800
commit8bb1fabfc5307214d272ddd266e5580b91336f20 (patch)
tree5e2b77246384c2fadd53399205c3e2e8b7ec8852
parentdcd719b714adedd28f026030d3ea037e560b9aac (diff)
downloadmeta-openembedded-8bb1fabfc5307214d272ddd266e5580b91336f20.tar.gz
opensc: Upgrade to 0.20.0
Drop all patches as they are already included in 0.20.0 release Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-support/opensc/opensc/0001-Fix-misleading-code-indentation.patch69
-rw-r--r--meta-oe/recipes-support/opensc/opensc/0001-Remove-redundant-logging.patch34
-rw-r--r--meta-oe/recipes-support/opensc/opensc_0.20.0.bb (renamed from meta-oe/recipes-support/opensc/opensc_0.19.0.bb)4
3 files changed, 1 insertions, 106 deletions
diff --git a/meta-oe/recipes-support/opensc/opensc/0001-Fix-misleading-code-indentation.patch b/meta-oe/recipes-support/opensc/opensc/0001-Fix-misleading-code-indentation.patch
deleted file mode 100644
index eb71b9d766..0000000000
--- a/meta-oe/recipes-support/opensc/opensc/0001-Fix-misleading-code-indentation.patch
+++ /dev/null
@@ -1,69 +0,0 @@
1From 283578519ec83a8792b026c10322789784d629de Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 27 Dec 2019 11:33:57 -0800
4Subject: [PATCH] Fix misleading code indentation
5
6Fixes
7error: misleading indentation; statement is not part of the previous 'if' [-Werror,-Wmisleading-indentation]
8 if(cipher)
9 ^
10../../../git/src/libopensc/card-entersafe.c:369:2: note: previous statement is here
11 if(sbuf)
12 ^
13Upstream-Status: Submitted [https://github.com/OpenSC/OpenSC/pull/1894]
14Signed-off-by: Khem Raj <raj.khem@gmail.com>
15---
16 src/libopensc/card-entersafe.c | 12 ++++++------
17 src/tools/pkcs15-init.c | 4 ++--
18 2 files changed, 8 insertions(+), 8 deletions(-)
19
20diff --git a/src/libopensc/card-entersafe.c b/src/libopensc/card-entersafe.c
21index 3e42c11f..abb9fd81 100644
22--- a/src/libopensc/card-entersafe.c
23+++ b/src/libopensc/card-entersafe.c
24@@ -352,10 +352,10 @@ static int entersafe_transmit_apdu(sc_card_t *card, sc_apdu_t *apdu,
25 size_t cipher_data_size,mac_data_size;
26 int blocks;
27 int r=SC_SUCCESS;
28- u8 *sbuf=NULL;
29- size_t ssize=0;
30+ u8 *sbuf=NULL;
31+ size_t ssize=0;
32
33- SC_FUNC_CALLED(card->ctx, SC_LOG_DEBUG_VERBOSE);
34+ SC_FUNC_CALLED(card->ctx, SC_LOG_DEBUG_VERBOSE);
35
36 assert(card);
37 assert(apdu);
38@@ -363,10 +363,10 @@ static int entersafe_transmit_apdu(sc_card_t *card, sc_apdu_t *apdu,
39 if((cipher||mac) && (!key||(keylen!=8 && keylen!=16)))
40 SC_FUNC_RETURN(card->ctx, SC_LOG_DEBUG_VERBOSE, SC_ERROR_INVALID_ARGUMENTS);
41
42- r = sc_apdu_get_octets(card->ctx, apdu, &sbuf, &ssize, SC_PROTO_RAW);
43- if (r == SC_SUCCESS)
44+ r = sc_apdu_get_octets(card->ctx, apdu, &sbuf, &ssize, SC_PROTO_RAW);
45+ if (r == SC_SUCCESS)
46 sc_apdu_log(card->ctx, SC_LOG_DEBUG_VERBOSE, sbuf, ssize, 1);
47- if(sbuf)
48+ if(sbuf)
49 free(sbuf);
50
51 if(cipher)
52diff --git a/src/tools/pkcs15-init.c b/src/tools/pkcs15-init.c
53index 1ce79f45..9a73121c 100644
54--- a/src/tools/pkcs15-init.c
55+++ b/src/tools/pkcs15-init.c
56@@ -2311,8 +2311,8 @@ do_read_private_key(const char *filename, const char *format,
57 r = util_getpass(&passphrase, &len, stdin);
58 if (r < 0 || !passphrase)
59 return SC_ERROR_INTERNAL;
60- r = do_read_pkcs12_private_key(filename,
61- passphrase, pk, certs, max_certs);
62+ r = do_read_pkcs12_private_key(filename,
63+ passphrase, pk, certs, max_certs);
64 }
65 } else {
66 util_error("Error when reading private key. "
67--
682.24.1
69
diff --git a/meta-oe/recipes-support/opensc/opensc/0001-Remove-redundant-logging.patch b/meta-oe/recipes-support/opensc/opensc/0001-Remove-redundant-logging.patch
deleted file mode 100644
index 291f1a239a..0000000000
--- a/meta-oe/recipes-support/opensc/opensc/0001-Remove-redundant-logging.patch
+++ /dev/null
@@ -1,34 +0,0 @@
1From c012f46965b3fe24e31367796e52c2d0b14ca5d9 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 17 Dec 2018 18:44:23 -0800
4Subject: [PATCH] Remove redundant logging
5
6Same information is printed a few line below in same function, the only
7difference is that there it takes care of case when label is NULL pointer
8unlike this line
9
10secondly, every function call to cosm_write_tokeninfo() in this file
11passes label=NULL, and then it tries to print a null pointer
12
13Fixes errors like
14src/libopensc/log.h:48:47: error: '%s' directive argument is null
15[-Werror=format-overflow=]
16
17Upstream-Status: Submitted [https://github.com/OpenSC/OpenSC/pull/1557]
18Signed-off-by: Khem Raj <raj.khem@gmail.com>
19---
20 src/pkcs15init/pkcs15-oberthur.c | 1 -
21 1 file changed, 1 deletion(-)
22
23Index: git/src/pkcs15init/pkcs15-oberthur.c
24===================================================================
25--- git.orig/src/pkcs15init/pkcs15-oberthur.c
26+++ git/src/pkcs15init/pkcs15-oberthur.c
27@@ -70,7 +70,6 @@ cosm_write_tokeninfo (struct sc_pkcs15_c
28 ctx = p15card->card->ctx;
29
30 SC_FUNC_CALLED(ctx, SC_LOG_DEBUG_VERBOSE);
31- sc_debug(ctx, SC_LOG_DEBUG_NORMAL, "cosm_write_tokeninfo() label '%s'; flags 0x%X", label, flags);
32 if (sc_profile_get_file(profile, COSM_TITLE"-token-info", &file)) {
33 rv = SC_ERROR_INCONSISTENT_PROFILE;
34 SC_TEST_GOTO_ERR(ctx, SC_LOG_DEBUG_NORMAL, rv, "Cannot find "COSM_TITLE"-token-info");
diff --git a/meta-oe/recipes-support/opensc/opensc_0.19.0.bb b/meta-oe/recipes-support/opensc/opensc_0.20.0.bb
index 0d744e213b..a815980c4f 100644
--- a/meta-oe/recipes-support/opensc/opensc_0.19.0.bb
+++ b/meta-oe/recipes-support/opensc/opensc_0.20.0.bb
@@ -12,10 +12,8 @@ LICENSE = "LGPLv2+"
12LIC_FILES_CHKSUM = "file://COPYING;md5=7fbc338309ac38fefcd64b04bb903e34" 12LIC_FILES_CHKSUM = "file://COPYING;md5=7fbc338309ac38fefcd64b04bb903e34"
13 13
14#v0.19.0 14#v0.19.0
15SRCREV = "f1691fc91fc113191c3a8aaf5facd6983334ec47" 15SRCREV = "45e29056ccde422e70ed3585084a7f150c632515"
16SRC_URI = "git://github.com/OpenSC/OpenSC \ 16SRC_URI = "git://github.com/OpenSC/OpenSC \
17 file://0001-Remove-redundant-logging.patch \
18 file://0001-Fix-misleading-code-indentation.patch \
19 " 17 "
20DEPENDS = "virtual/libiconv openssl" 18DEPENDS = "virtual/libiconv openssl"
21 19