Up to [cvs.NetBSD.org] / pkgsrc / security / opensc
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
*: recursive bump for icu 79
*: recursive bump for pcre2 10.49
*: revbump for pcre2 symbol versioning change
*: recursive bump for pcre2 10.48
opensc: updated to 0.27.1 New in 0.27.1; 2026-03-31 * Bugfix release to fix up infrastructure issues. New in 0.27.0; 2026-03-30 Security * CVE-2025-13763: Several uses of potentially uninitialized memory detected by fuzzers * CVE-2025-49010: Possible write beyond buffer bounds during processing of GET RESPONSE APDU * CVE-2025-66215: Possible write beyond buffer bounds in oberthur driver * CVE-2025-66038: Possible read beyond buffer bounds when parsing historical bytes in PIV driver * CVE-2025-66037: Possible buffer overrun while parsing SPKI * More low-severity data handling issues when parsing profile configuration General improvements * Added support for PKCS#11 3.2 in tools and pkcs11-spy and p11test * Added support for Ed448, X448 mechanisms and improve support for Edwards and montgomery keys in general * Support CKA_PUBKEY_KEY_INFO PKCS#11 attribute * Various refactoring of autotools build system * Remove obsolete tokend support * Run tests against different software PKCS#11 tokens kryoptic and NSS softokn * Removed internal caching for current EF/DF * Correctly detect OS-level FIPS mode in OpenSSL automatically or through custom configuration file * Added support for Brainpool twisted curves to pkcs11-tool and SC-HSM PC/SC * Handle case when smart card is removed and inserted between two subsequent calls to `refresh_attributes()` EsteID * Add support for EstEID 2025 * Implement FinEID 4.0/4.1 support * Add Latvian IDEMIA Cosmo X card support * Check if PIN is locked and hint CKF_USER_PIN_TO_BE_CHANGED * Remove obsolete FinEID cards * Add Latvian Cosmo 8.2 card support D-Trust * Prevent unncecessary pin prompts on pinpad readers * Support for D-Trust Card 5.1 & 5.4 * Implement PIN change and unblock in dtrust-tool Belpic * Add supports for belpic applet version 1.8 OpenPGP * Implement key derived PIN format (KDF-DO) as per OpenPGP card spec v3.3 IDPrime * Implement 5110+ FIPS and 5110 CC (940) derive support Windows * Update to Wix 6 * Fix C_WaitForSlotEvent() not working in Windows * remove pkcs11-register from autostart MacOS * Installer images are now notarized pkcs11-tool * Added support for ML-DSA, ML-KEM, SLH-DSA keys from PKCS#11 3.2 * Improve support for Edwards and montgomery keys and add derive key support for CKK_MONTGOMERY * Add support for ChaCha20 and Poly1305 * Add support for AES CTR in decrypt_data() and encrypt_data() * Add initial support for PKCS#11 URIs * Print more information about RSA keys
opensc: try fixing SunOS build memset_s is not available by default
*: recursive bump for icu 78.1
*: recursive bump for pcre2 Running an old binary against the new pcre doesn't work: /usr/pkg/lib/libpcre2-8.so.0: version PCRE2_10.47 required by /usr/pkg/lib/libglib-2.0.so.0 not defined
*: recursive bump for icu 77 and libxml2 2.14
opensc: updated to 0.26.1 0.26.1 General improvements Align allocations of sc_mem_secure_alloc Fix -O3 gcc optimization failure on amd64 and ppc64el pkcs11-spy Avoid crash while spying C_GetInterface() TCOS Fix reading certificate
opensc: updated to 0.26.0 New in 0.26.0; 2024-11-13 Security * CVE-2024-45615: Usage of uninitialized values in libopensc and pkcs15init * CVE-2024-45616: Uninitialized values after incorrect check or usage of APDU response values in libopensc * CVE-2024-45617: Uninitialized values after incorrect or missing checking return values of functions in libopensc * CVE-2024-45618: Uninitialized values after incorrect or missing checking return values of functions in pkcs15init * CVE-2024-45619: Incorrect handling length of buffers or files in libopensc * CVE-2024-45620: Incorrect handling of the length of buffers or files in pkcs15init * CVE-2024-8443: Heap buffer overflow in OpenPGP driver when generating key General improvements * Fix reselection of DF after error in PKCS#15 layer * Unify OpenSSL logging throughout code * Extend the p11test to support kryoptic * Fix for error in PCSC reconnection * Fixed various issues reported by OSS-Fuzz and Coverity in drivers, PKCS#11 and PKCS#15 layer PKCS#15 * Documentation for PKCS#15 profile files minidriver * Support PinCacheAlwaysPrompt usable for PIV cards pkcs11-tool * Show URI when listing token information * Do not limit size of objects to 5000 bytes * Add support for AES CMAC * Add support for AES GCM encryption * Add support for RSA OAEP encryption * Add support for HKDF * Implement better support for wrapping and unwrapping * Add support for EdDSA sign and verify pkcs15-crypt * Fix PKCS#1 encoding function to correctly detect padding type piv-tool * Fix RSA key generation * Avoid possible state change when matching unknown card sc-hsm-tool * Cleanse buffer with plaintext key share pkcs11-register * Fix pkcs11-register defaults on macOS and Windows IDPrime * Fix identification of IDPrime 840 cards * Fix container mapping for IDPrime 940 cards * Reorder ATRs for matching cards OpenPGP * Fix state tracking after erasing card Belpic * Disable Applet V1.8 MICARDO * Deactivate driver SmartCard-HSM * Fix signing with secp521r1 signature eOI * Set model via `sc_card_ctl` function Rutoken * increase the minimum PIN size to support Rutoken ECP BIO JPKI * Adjust parameters for public key in PKCS#15 emulator D-Trust * Add support for ECDSA signatures and ECDH key agreement for D-Trust Signatures Cards 4.1/4.4
*: recursive bump for icu 76 shlib major version bump
*: revbump for icu downgrade
*: recursive bump for icu 76.1 shlib bump
revbump after icu and protobuf updates
opensc: updated to 0.25.1 OpenSC 0.25.1 General improvements Add missing file to dist tarball to build documentation minidriver Fix RSA decryption with PKCS#1 v1.5 padding Fix crash when app is not set
opensc: updated to 0.25.0 New in 0.25.0; 2024-03-06 Security CVE-2023-5992: Side-channel leaks while stripping encryption PKCS#1.5 padding in OpenSC CVE-2024-1454: Potential use-after-free in AuthentIC driver during card enrollment in pkcs15init General improvements Update OpenSSL 1.1.1 to 3.0 in MacOS build Remove support for old card drivers Akis, GPK, Incrypto34 and Westcos, disable Cyberflex driver Fix 64b to 32b conversions Improvements for the p11test Fix reader initialization without SCardControl Make RSA PKCS#1 v1.5 depadding constant-time Add option for disabling PKCS#1 v1.5 depadding (type 01 and 02) on the card Enable MSI signing via Signpath CI integration for Windows Fixed various issues reported by OSS-Fuzz and Coverity in drivers, PKCS#11 and PKCS#15 layer minidriver Fix wrong hash selection pkcs11-tool Simplify printing EC keys parameters Add option to import GENERIC key Add support for importing Ed25518/448 keys drust-tool Add tool for D-Trust cards IDPrime Support uncompressed certificates on IDPrime 940 Enhance IDPrime logging Add SafeNet 5110+ FIPS token support D-Trust Signature Cards Add support for RSA D-Trust Signature Card 4.1 and 4.4 EstEID Remove expired EstEID 3.* card support ePass2003 Allow SW implementation with more SHA2 hashes and ECDSA Fix EC key generation SmartCard-HSM Fix SELECT APDU command MyEID Update for PKCS#15 profile Rutoken Support for RSA 4096 key algorithm OpenPGP Fix decryption requiting Manage Security Environment for authentication key
opensc: updated to 0.24.0 New in 0.24.0; 2023-12-13 Security CVE-2023-40660: Fix Potential PIN bypass CVE-2023-40661: Important dynamic analyzers reports CVE-2023-4535: Out-of-bounds read in MyEID driver handling encryption using symmetric keys (f1993dc) General improvements Fix compatibility of EAC with OpenSSL 3.0 Enable use_file_cache by default Use custom libctx with OpenSSL >= 3.0 Fix record-based files Fix several race conditions Run tests under Valgrind Test signing of data bigger than 512 bytes Update to OpenPACE 1.1.3 Implement logout for some of the card drivers Fix wrong popup position of opensc-notify Fixed various issues reported by OSS-Fuzz and Coverity regarding card drivers, PKCS#11 and PKCS#15 init PKCS#11 Check card presence state in C_GetSessionInfo Remove onepin-opensc-pkcs11 module Do not use colons in the token info label Present profile objects in all slots with the CKA_TOKEN attribute to resolve issues with NSS Use secure memory for PUK Don't logout to preserve concurrent access from different processes Add more examples to manual page Present profile objects in all virtual slots Provide CKA_TOKEN attribute for profile objects Improve --slot parameter documentation PKCS#15 Honor cache offsets when writing file cache Prevent needless amount of PIN prompts from pkcs15init layer Propagate CKA_EXTRACTABLE and SC_PKCS15_PRKEY_ACCESS_SENSITIVE from and back to PKCS#11 Minidriver Fix for private keys that do not need a PIN Unbreak decipher when the first null byte of PKCS#1.5 padding is missing pkcs11-tool Fix RSA key import with OpenSSL 3.0 Add support for attribute filtering when listing objects Add support for --private flag when writing certificates Add support for non-AEAD ciphers to the test mode Show CKA_SIGN attribute for secret keys Do not attempt to read CKA_ALWAYS_AUTHENTICATE on secret keys Show Sign/VerifyRecover attributes Add option to import generic keys westcos-tool Generate 2k RSA keys by default (b53fc5c) pkcs11-register Disable autostart on Linux by default IDPrime Add support for IDPrime MD 830, 930 and 940 Add support for SafeNet eToken 5110 token Process index even without keyrefmap and use correct label for second PIN Add support for Gemalto IDPrime 940C EPass2003 Change of PIN requires verification of the PIN Fix incorrect CMAC computation for subkeys Use true random number for mutual authentication for SM Add verification of data coming from the token in the secure messaging mode Avoid success when using unsupported digest and fix data length for RAW ECDSA signatures OpenPGP Fix select data command Unbreak ed/curve25519 support eOI Add support for Slovenian eID card (eOI) Italian CNS Add support for IDEMIA (Oberthur) tokens PIV Add support for Swissbit iShield FIDO2 Authenticator Implement PIV secure messaging SkeID Add support for Slovak eID cards isoApplet Support ECDSA with off-card hashing MyEID Fix WRAP operation when using T0 Identify changes on the card and enable use_file_cache Workaround for unwrapping using 2K RSA key SC-HSM Add support for opensc-tool --serial Fix unwrapping of 4096 keys with handling reader limits Indicate supported hashes and MGF1s
*: recursive bump for icu 74.1
*: bump for openssl 3
Pullup ticket #6791 - requested by manu
security/opensc: fix regression
Revisions pulled up:
- security/opensc/Makefile 1.41
- security/opensc/PLIST 1.15
- security/opensc/options.mk 1.7
---
Module Name: pkgsrc
Committed By: manu
Date: Mon Aug 14 16:08:32 UTC 2023
Modified Files:
pkgsrc/security/opensc: Makefile PLIST options.mk
Log Message:
Fix for security/opensc regression
When security/opensc was updated to 0.23.0, it gained a
--enable-notify configure flag.
The feature adds a libopensc dependency on libglib, which in turns
brings libpthread into the game.
When using the opensc-pkcs11.so module with a non threaded program
such as ssh(1), libopensc will load some thread-enabled glib function
that attemps to initialize pthread stuff. That would require libpthread
to be linked in, and if it is not the case, module load aborts.
Here is the crash in action:
Program received signal SIGABRT, Aborted.
0x000072403899c46a in _lwp_kill () from /lib/libc.so.12
(gdb) bt
#0 0x000072403899c46a in _lwp_kill () from /lib/libc.so.12
#1 0x0000724038849223 in __libc_thr_create_stub () from /lib/libc.so.12
#2 0x0000724036a9c3ee in ?? ()
#3 0x0000000000000000 in ?? ()
This change turns the notify feature into a disabled by default
option so that opensc-pkcs11.so can work agan with ssh(1).
Fix for security/opensc regression When security/opensc was updated to 0.23.0, it gained a --enable-notify configure flag. The feature adds a libopensc dependency on libglib, which in turns brings libpthread into the game. When using the opensc-pkcs11.so module with a non threaded program such as ssh(1), libopensc will load some thread-enabled glib function that attemps to initialize pthread stuff. That would require libpthread to be linked in, and if it is not the case, module load aborts. Here is the crash in action: Program received signal SIGABRT, Aborted. 0x000072403899c46a in _lwp_kill () from /lib/libc.so.12 (gdb) bt #0 0x000072403899c46a in _lwp_kill () from /lib/libc.so.12 #1 0x0000724038849223 in __libc_thr_create_stub () from /lib/libc.so.12 #2 0x0000724036a9c3ee in ?? () #3 0x0000000000000000 in ?? () This change turns the notify feature into a disabled by default option so that opensc-pkcs11.so can work agan with ssh(1).
Mass-change BUILD_DEPENDS to TOOL_DEPENDS outside mk/. Almost all uses, if not all of them, are wrong, according to the semantics of BUILD_DEPENDS (packages built for target available for use _by_ tools at build-time) and TOOL_DEPEPNDS (packages built for host available for use _as_ tools at build-time). No change to BUILD_DEPENDS as used correctly inside buildlink3. As proposed on tech-pkg: https://mail-index.netbsd.org/tech-pkg/2023/06/03/msg027632.html
revbump after textproc/icu update
opensc: updated to 0.23.0 New in 0.23.0; 2022-11-29 General improvements Support signing of data with a length of more than 512 bytes By default, disable support for old card drivers Bump minimal required OpenSSL version to 1.1.1 and add support for OpenSSL 3.0 Compatibility with LibreSSL Remove support for DSA Extend p11test to support symmetric keys Notice detached reader on macOS Support for OAEP padding Fix for PSS salt length Improve fuzzing by adding new tests Fixed various issues reported by OSS-Fuzz and Coverity regarding card drivers, PKCS#11 and PKCS#15 init Fix issues with OpenPACE Containers support for local testing Add support for encryption and decryption using symmetric keys Stop building support for Gost algorithms with OpenSSL 3.0 as they require deprecated API Fix detection of disconnected readers in PCSC Add configuration option for on-disk caching of private data Skip building empty binaries when dependencies are missing and remove needless linking Define arm64 as a supported architecture in the Installer package PKCS#11 Implement C_CreateObject for EC keys and fix signature verification for CKM_ECDSA_SHAx cards pkcs11-tool Add more elliptic curves Add support for symmetric encrypt and decrypt, wrap and unwrap operations, and initialization vector Fix consistent handling of secret key attributes Add support for signing and verifying with HMAC Add support for SHA3 Make object selectable via label Do not require an R/W session for some operations and add --session-rw option Print more information: CKA_UNIQUE_ID attribute, SHA3 HMACs and serial number for certificates Add new option --undestroyable to create keys with CKA_DESTROYABLE=FALSE sc-hsm-tool Add options for public key authentication Minidriver Fix reinit of the card Add an entry for Italian CNS (e) Fix detection of ECC mechanisms Fix ATRs before adding them to the windows registry NQ-Applet Add support for the JCOP4 Cards with NQ-Applet ItaCNS Add support for ItaCMS v1.1 (key length 2048) Belpic Add support for applet v1.8 Starcos Add ATR for V3.4 Add PKCS#15 emulator for 3.x cards with eSign app ePass2003 Fix PKCS#15 initialization Add support for FIPS Fix matching with newer versions and tokens initialized with OpenSC MyEID Support logout operation Support for symmetric encryption and decryption GIDS Fix decipher for TPM OpenPGP Get the list of supported algorithms from algorithm information on the card Support for 3 certificates with OpenPGP 3+ nPA Fix card detection Rutoken Fix formatting rtecp cards PIV Add new PIVKey ATRs for current cards
massive revision bump after textproc/icu update
revbump for textproc/icu update
revbump for icu and libffi
revbump for textproc/icu
*: Recursive revbump from textproc/icu-68.1
opensc: make it build again
Revbump for icu
Update OpenSC to 0.20.0
This is required to workround a crash in pam-p11 on NetBSD 9.0
Also fixes CVE-2019-6502 CVE-2019-15946 CVE-2019-15945 CVE-2019-19480
CVE-2019-19481 CVE-2019-19479
Change since last version in pkgsrc
## General Improvements
* fixed security problems
* CVE-2019-6502 (#1586)
* CVE-2019-15946 (a3fc769)
* CVE-2019-15945 (412a614)
* CVE-2019-19480 (6ce6152284c47ba9b1d4fe8ff9d2e6a3f5ee02c7)
* CVE-2019-19481 (b75c002cfb1fd61cd20ec938ff4937d7b1a94278)
* CVE-2019-19479 (c3f23b836e5a1766c36617fe1da30d22f7b63de2)
* Support RSA-PSS signature mechanisms using RSA-RAW (#1435)
* Added memory locking for secrets (#1491)
* added support for terminal colors (#1534)
* PC/SC driver: Fixed error handling in case of changing (#1537) or removing the card reader (#1615)
* macOS installer
* Add installer option to deselect tokend (#1607)
* Make OpenSCToken available on 10.12+ and the default on 10.15+ (2017626ed237dbdd4683a4b9410fc610618200c5)
* Configuration
* rename `md_read_only` to `read_only` and use it for PKCS#11 and Minidriver (#1467)
* allow global use of ignore_private_certificate (#1623)
* Build Environment
* Bump openssl requirement to 0.9.8 (##1459)
* Added support for fuzzing with AFL (#1580) and libFuzzer/OSS-Fuzz (#1697)
* Added CI tests for simulating GIDS, OpenPGP, PIV, IsoApplet (#1568) and MyEID (#1677) and CAC (#1757)
* Integrate clang-tidy with `make check` (#1673)
* Added support for reproducible builds (#1839)
## PKCS#11
* Implement write protection (CKF_WRITE_PROTECTED) based on the card profile (#1467)
* Added C_WrapKey and C_UnwrapKey implementations (#1393)
* Handle CKA_ALWAYS_AUTHENTICATE when creating key objects. (#1539)
* Truncate long PKCS#11 labels with ... (#1629)
* Fixed recognition of a token when being unplugged and reinserted (#1875)
## Minidriver
* Register for CardOS5 cards (#1750)
* Add support for RSA-PSS (263b945)
## OpenSC tools
* Harmonize the use of option `-r`/`--reader` (#1548)
* `goid-tool`: GoID personalization with fingerprint
* `openpgp-tool`
* replace the options `-L`/` --key-length` with `-t`/`--key-type` (#1508)
* added options `-C`/`--card-info` and `-K`/`--key-info` (#1508)
* `opensc-explorer`
* add command `pin_info` (#1487)
* extend `random` to allow writing to a file (#1487)
* `opensc-minidriver-test.exe`: Tests for Microsoft CryptoAPI (#1510)
* `opensc-notify`: Autostart on Windows
* `pkcs11-register`:
* Auto-configuration of applications for use of OpenSC PKCS#11 (#1644)
* Autostart on Windows, macOS and Linux (#1644)
* `opensc-tool`: Show ATR also for cards not recognized by OpenSC (#1625)
* `pkcs11-spy`:
* parse CKM_AES_GCM
* Add support for CKA_OTP_* and CKM_*_PSS values
* parse EC Derive parameters (#1677)
* `pkcs11-tool`
* Support for signature verification via `--verify` (#1435)
* Add object type `secrkey` for `--type` option (#1575)
* Implement Secret Key write object (#1648)
* Add GOSTR3410-2012 support (#1654)
* Add support for testing CKM_RSA_PKCS_OAEP (#1600)
* Add extractable option to key import (#1674)
* list more key access flags when listing keys (#1653)
* Add support for `CKA_ALLOWED_MECHANISMS` when creating new objects and listing keys (#1628)
* `pkcs15-crypt`: * Handle keys with user consent (#1529)
## CAC1
New separate CAC1 driver using the old CAC specification (#1502)
## CardOS
* Add support for 4K RSA keys in CardOS 5 (#1776)
* Fixed decryption with CardOS 5 (#1867)
## Coolkey
* Enable CoolKey driver to handle 2048-bit keys. (#1532)
## EstEID
* adds support for a minimalistic, small and fast card profile based on IAS-ECC issued since December 2018 (#1635)
## GIDS
* GIDS Decipher fix (#1881)
* Allow RSA 4K support (#1891)
## MICARDO
* Remove long expired EstEID 1.0/1.1 card support (#1470)
## MyEID
* Add support for unwrapping a secret key with an RSA key or secret key (#1393)
* Add support for wrapping a secret key with a secret key (#1393)
* Support for MyEID 4K RSA (#1657)
* Support for OsEID (#1677).
## Gemalto GemSafe
* add new PTeID ATRs (#1683)
* Add support for 4K RSA keys (#1863, #1872)
## OpenPGP
* OpenPGP Card v3 ECC support (#1506)
## Rutoken
* Add Rutoken ECP SC (#1652)
* Add Rutoken Lite (#1728)
## SC-HSM
* Add SmartCard-HSM 4K ATR (#1681)
* Add missing secp384r1 curve parameter (#1696)
## Starcos
* Fixed decipher with 2.3 (#1496)
* Added ATR for 2nd gen. eGK (#1668)
* Added new ATR for 3.5 (#1882)
* Detect and allow Globalplatform PIN encoding (#1882)
## TCOS
* Fix TCOS IDKey support (#1880)
* add encryption certificate for IDKey (#1892)
## Infocamere, Postecert, Cnipa
* Removed profiles (#1584)
## ACS ACOS5
* Remove incomplete acos5 driver (#1622).
*: Remove obsolete BUILDLINK_API_DEPENDS.openssl.
*: Recursive revision bump for openssl 1.1.1.
*: Remove USE_OLD_DES_API. OpenSSL 1.1.1d no longer ships des_old.h, and the time for this being necessary appears to be behind us.
update from 0.16.0 to 0.19.0 Project moved from sourceforge to github.
Updated security/opensc to 0.16.0
--------------------------------
New in 0.16.0; 2016-05-15
* build
link OpenSSL in static
option: enable PKCS11 thread locking
* configuration
use one configuration file for all systems
* tools:
package revision as version
** pkcs11-tool
keygen mechanism in pkcs11 tools
write GOST public key
fix CKA_SENSITIVE attribute of public keys
** opensc-explorer:
added command find_tags
allow ASN.1 decoding if the file seems incomplete
** pkcs15-tool:
handle record-based files when doing file caching
option to prine raw data
** sc-hsm-tool:
status info support for SmartCard-HSM V2.0
** doc: some missing options are documented, added documentation
for gid tool
* minidriver:
support for ECC
Windows x509 enrollment
first implementation of CardDeleteContainer
MD logs controlled by register and environment variable
* reader-pcsc
fixed unreleased locks with pcsc-lite
honour PC/SC pt 10 dwMaxAPDUDataSize
added call back for getting vendor/product id
restrict access to card handles after fork
SCardGetAttrib is used to initialize reader's metadata
by default only short APDUs supported
* pkcs11
no slot reserved for hot plug
no more slot created 'per-applications'
atomic operation (TODO: expand)
export all C_* symbols
metadata initialized from package info
fix registering pkcs11 mechanisms multiple times
sloppy initialization for C_GetSlotInfo
* pkcs15
cache of on-card files extended to application paths
configuration option to enable/disable application
make file cache dir configurable
in key info data type introduced 'auxiliary data' -- container
for the non-pkc15 data.
* OpenPGP
support for Gnuk -- USB cryptographic token for GNU Privacy Guard
build without OpenSSL
implemented 'erase card'
additional manufacturers
* MyEID
support for 521 bit ECC keys
ATRs for the new cards
* sc-hsm
read/write support in minidriver
* rtecp
delete keys
* GemSafeV1
support for European Patent Office smart card
sign with SHA256
* Gids
first support for Gids smart card
* dnie
* Feitian PKI card
new ATRs
* IsoApplet
(fixes)
* starcos
initial support for STARCOS 3.4 (German D-Trust cards)
* macosx
install tokend to /Library/Security/ instead /System/Library/Security/
fixed locking issue in pcsc reader
* PIV
allow using of cards where default application in not PIV
support for the Yubikey NEO
* italian-CNS
italian-cns reg file for minidriver
Bump PKGREVISION for security/openssl ABI bump.
Update to 0.15.0. Some pkgsrc patches are now upstream. Don't
install new bash completion files, given a lack of pkgsrc doctrine for
where they go.
New in 0.15.0; 2015-05-11
* new card drivers
AzeDIT 3.5
IsoApplet
MaskTech
* libopensc
allow extended length APDUs
accept no output for 'SELECT' MF and 'SELECT' DF_NAME APDUs
fixed sc_driver_version check
adjusted send/receive size accoriding to card capabilities
in iso7816 make SELECT agnosting to sc_path_t's aid
* asn1
support multi-bytes tags
* pkcs15
reviewed support and tool functions for public key
public certs and pubkeys with an auth_id are treated as private
* pkcs11
introduced default PKCS#11 provider
fetched real value of CKA_LOCAL for pubkey
removed inconsistent attributes
C_Digest issues
no check if buffer too small before update
* added support for Travis CI
* updated support of EC in libopensc, pkcs15 and pkcs11
* fixed number of warnings, resource leaks, overity-scan issues
* macosx
target minimum OSX version to 10.7
update the minimal building instructions.
locate and target the latest SDK to build against.
locate the best newest SDK present on the computer.
* build
disable Secure Messaging if OpenSSL is not used
* tools
util_get_pin helper function
* PIV
Add AES support for PIV General Authenticate
fixed invalid bit when writing PIV certificate object with gzipped certificate
fixed bad caching behavior of PIV PKCS15 emulator
* ePass2003
fixed failure due to re-authenticate of secure messaging when card is accessed
by multiple PKCS11 sessions
* MyEID
EC support for MyEID-v4 card
* openpgp
extended options for openpgp-tool
* asepcos
fixed puk handling
* sc-hsm
support for Koblitz curves secp192k1 and secp256k1 (Bitcoin)
improved error detection and reporting in sc-hsm-tool
fixed Lc byte in VERIFY PIN block for PC/SC PIN PAD reader
fix certificate delete bug
* IAS/ECC
fixed PKCS#11 compliance issues
support for Morpho IAS Agent Card
* cardos
overwrite content of deleted private key
* win32
setup improuvement
look & feel
custom actions with card registration
minidriver impouvement
fixed errors and warnings returned by Microsoft quality tool
pin-pad support
New in 0.14.0; 2014-05-31
* new card driver DNIe
* extended existing drivers by support of
Swedish eID card (gemsafeV1)
EstEID 3.5 (mcrd)
* bogus javacard driver removed
* build
return to the standard use of 'autoconf'
CI specific bootstrap script: git commit stamp for the built packages
windows friendly compile settings
fixed a ton of compiler warnings
fence against using EVP_sha256 mech
debian packaging templates
compile without OpenSSL and without SM
enable compiler warnings by default
win32
add 'VarFileInfo' block to version-info
include to MSI package 'openpgp-tool.exe'
'version-info' resource for each target
* macOSX
"graphical uninstaller" to distribution DMG
update package building to modern tools
new tool and SDK paths for OS X 10.8
improved opensc-installer from distribution
osx: target 10.9 (a free upgrade to anyone using 10.6+) from now on
build 'fat' binaries i386
* common
added getpass implementation for non windows
* libopensc
allow for the pin to be entered on the keypad during issuing
introduce 'encoded-content' to the sc_file data
general usage method to allocate generalized time
* minidriver
implemented 'CardChangeAuthenticator', 'CardGetChallenge' and 'CardUnblockPin'
improved management of GUID
use reader pin pad if available and allowed
configuration options for
compose GUID
refuse create container mechanism
add registers file for feitian cards
fixed
return code in 'CardGetContainerInfo'
returned 'tries-left' for blocked card
length of stripped data in RSADecrypt
* pkcs#11
bind non-recognized card, generic 'init-token' procedure
fixed
CKA_VALUE of 'public-key' object
fix ASN1 encoding issues
PIN-NOT-INITIALIZED for the non-user PINs
buffers overflow
segfault due to the undefined 'application-file'
* pkcs15
'direct' public key in PuKDF encoding
implement SPKI public key encoding
include and maintain minidriver framework data: cmap-record, md-flags, GUID, ..
fixed
encoding of 'SubjectPublicKeyInfo'
DER encoding of 'issuer' and 'subject'
PIN validation in 'pkcs15-verify'
public key algorithm
ECC public key encoding
ECC ecpointQ
* pkcs15init
introduce 'max-unblocks' PIN init parameter
keep cert. blob in cert-info data
file 'content' and 'prop-attrs' in the card profile
in profile more AC operations are parsed
fixed
NULL pointer dereference error
NULL 'store-key' handle
ignore if no TokenInfo file to update
set EC pubkey parameters from init data
* reader-pcsc
fixed
implicit pin modification
pin checking when implicitly given
verify/modify pinpad commands
* SM
common SM 'increase-sequence-counter' procedure
move SM APDU procedures to dedicated source file
move SM common crypto procedures to the dedicated library
* doc
documentation for --list-token-slots
* default driver
do not send possibly arbitrary APDU-s to an unknown card.
by default 'default' card driver is disabled
* sc-hsm
Added support for
persistent EC public keys generated from certificate signing requests
token label to be set via C_InitToken or sc-hsm-tool
unblock PIN using C_InitPIN()
initialize EC key params
fixed
bug that prevents a newly generated 2048 key to show up at the PKCS#11 interface
bug when changing SO-PIN with opensc-explorer sc-hsm-tool
memory checking and removed warning
problem deleting CA certificates sc-hsm
public key format returned when generating ECC keys
sc-hsm-tool
better error handling for non-SmartCard-HSM cards
support for DKEK password sharing scheme
threshold scheme parameters to manpage
crash on Windows when --wrap-key frees memory allocated in opensc.dll
* ias
simplify the compute signature operation
* PIV
use SPKI encoding for public key data
extract public key from cert if no object on card
fix
segfault and valgrind issue
gen_key to expect the proper PIV Key references
* CardOS
build for Windows
use information from AlgorithmInfo
supported CardOS V5.0
* epass2003
key generation allows stricter privkey/pubkey ACLs
list_files implemented
properly disable padding
allow exponents other than 65537
* myeid
fixed file-id in myeid.profile
* entersafe
fix a bug when writing public key
* EstEID
match card only based on presence of application.
* pteid
do not call the iso7816 driver get_response operation
* myeid
support of EC key is broken
When replacing a buildlink3.mk inclusion with a plain BUILD_DEPENDS, it helps to replace BUILDLINK_PREFIX, too. Hi wiz!
Use BUILD_DEPENDS instead of including buildlink3.mk for docbook-xsl.
Stop forcing pcsc-lite's library to be the libtool version. opensc upstream has removed the use of ltdl. Thus, it is not longer reasonable to expect it to be able to dlopen a .la file. So pass the .so, not the .la, to configure, when using the pcsc-lite (default) option. Resolves a failure of pkcs15-init to load modules.
Update to 0.13.0, based on wip/opensc (which is a post 0.13.0 git
snapshot) by Richard Hansen of BBN.
Mostly the update is straightforward, with a bit more effort to avoid
pthreads. (Threads are not ok because pam modules dlopen opensc, and
pam modules are used from nonthreaded programs.)
New in 0.13.0; 2012-12-04
* New card driver ePass2003.
* OpenPGP card:
greatly improved card driver and PKCS#15 emulation;
implemented write (pkcs15init) mode;
greatly enhanced documentation and tools.
* ECDSA keys supported in 'read' and 'write' modes by
internal PKCS#15 library, PKCS#11 and tools.
* Minidriver in 'write' mode.
* SM: secure messaging in GlobalPlatform-SP01 and CW14890 specifications;
supported by ePass2003, IAS/ECC and AuthentIC cards;
"ACL" and "APDU" modes to trigger secure messaging session;
'local' version of the external secure messaging module.
* PKCS#15: support of 'secret-key' PKCS#15 objects
support of 'authentication-object' PKCS#15 objects
support of 'algReference' common key PKCS#15 attribute
support of 'algReference' common key PKCS#15 attribute
support of 'subjectName' common public key PKCS#15 attribute
* PKCS#11: removed 'onepin' version of pkcs#11 module
configuration options to expose slots for PINs and present on-card applications.
support GOSTR3410 generate key mechanism
* Support of PACE reader.
* Remove libltdl reference.
* ECDSA supported by MyEID card
* New card driver for the SmartCard-HSM, a light-weight hardware security module
* New useful commands in 'opensc-explorer' tool: 'find', 'put-data', ...
* fixed SIGV issue due to the unsupported public key format
* fixes for the number of documentation issues
Recursive PKGREVISION bump for OpenSSL API version bump.
Recursive PKGREVISION bump for libgcrypt-1.6.0 shlib major bump.
* .include "../../devel/readline/buildlink3.mk" with USE_GNU_READLINE=yes are replaced with .include "../../devel/readline/buildlink3.mk", and USE_GNU_READLINE are removed, * .include "../../devel/readline/buildlink3.mk" without USE_GNU_READLINE are replaced with .include "../../mk/readline.buildlink3.mk".
PKGREVISION bumps for the security/openssl 1.0.1d update.
bump revision
Merge Makefile.common into Makefile, because opensc-signer is gone. This does not make any functional changes - it is just rearranging and comments.
Update to 0.12.2. Thanks to manu@ for testing and resolving pcsc-lite ptthread leakage problems. Note that pcsc-lite and openct should be an options group. Disable some obsolete CONFIGURE_ARGS. Work around assumption that either getopt_long_only is present or allgetopt functions must be provided. Finnish EID patches have been applied upstream (from whence they came, perhaps). From upstream NEWS: Complete change history is available online: http://www.opensc-project.org/opensc/timeline New in 0.12.2; 2011-07-15 * Builds are now silent by default when OpenSC is built from source on Unix. * Using --wait with command line tools works with 64bit Linux again. * Greatly improved OpenPGP card support, including OpenPGP 2.0 cards like the one found in German Privacy Foundation CryptoStick. * Fixed support for FINeID cards issued after 01.03.2011 with 2048bit keys. * #256: Fixed support for TCOS cards (broken since 0.12.0). * Added support for IDKey-cards to TCOS3 driver. * #361: Improved PC/SC driver to fetch the maximum PIN sizes from the open source CCID driver. This fixes the issue for Linux/OSX with recent driver. * WindowsInstaller now installs only static DLL-s (PKCS#11, minidriver) to system folder. * Fix FINeID cards for organizations. * Several smaller bugs and compiler warnings fixed. New in 0.12.1; 2011-05-17 * New card driver: IAS/ECC 1.0.1 * rutoken-tool has been deprecated and removed. * eidenv and piv-tool utilities now have manual pages. * pkcs11-tool now requires the use of --module parameter. * All tools can now use an ATR as an argument to --reader, to skip to the card with given ATR. * opensc-tool -l with -v now shows information about the inserted cards. * Creating files have an enforced upper size limit, 64K * Support for multiple PKCS#15 applications with different AID-s. PKCS#15 applications can be listed with pkcs15-tool --list-applications. Binding to a specific AID with PKCS#15 tools can be done with --aid. * Hex strings (like card ATR or APDU-s) can now be separated by space, in addition to colons. * Pinpad readers known to be bogus are now ignored by OpenSC. At the moment only "HP USB Smart Card Keyboard" is disabled. * Windows installer is now distributed as a statically built MSI, for both x86 and x64. * Numerous compiler warnings, unused code and internal bugs have been eliminated. New in 0.12.0; 2010-12-22 * OpenSC uses a single reader driver, specified at compile time. * New card driver: Italian eID (CNS) by Emanuele Pucciarelli. * New card driver: Portuguese eID by João Poupino. * New card driver: westcos by François Leblanc. * pkcs11-tool can use a slot based on ID, label or index in the slot list. * PIN flags are updated from supported cards when C_GetTokenInfo is called. * Support for CardOS 4.4 cards added. * Fature to exclude readers from OpenSC PKCS#11 via "ignored_readers" configuration file entry. * #229: Support semi-automatic fixes to cards personalized with older and broken OpenSC versions. * Software keys removed from pkcs15-init and the PKCS#11 module. OpenSC can either generate keys on card or import plaintext keys to the card, but will never generate plaintext key material in software by itself. All traces of a software token (PKCS#15 Section 7) shall be removed. * Updates to PC/SC driver to build with pcsc-lite >= 1.6.2 * Build script for a binary Mac OS X installer for 10.5 and 10.6 systems. Binary installer includes OpenSC.tokend for platform integration. 10.6 installer includes engine_pkcs11. * Modify Rutoken S binary interfaces by Aktiv Co. * Support GOST R 34.10-2001 and GOST R 34.11-94 by Aktiv Co. * CardOS driver now emulates sign on rsa keys with sign+decrypt usage with padding and decrypt(). This is compatible with old cards and card initialized by Siemens software. Removed "--split-key" option, as it is no longer needed. * Improved debugging support: debug level 3 will show everything except of ASN1 and card matching debugging (usualy not needed). * Massive changes to libopensc. This library is now internal, only used by opensc-pkcs11.so and command line tools. Header files are no longer installed, library should not be used by other applications. Please use generic PKCS#11 interface instead. * #include file statements cleaned up: first include "config.h", then system headers, then additional libraries, then headers in opensc (but from other directories), then header files from same directory. Fix path to reference headers, remove src/include/ directory. * Various source code fixes and improvements. * OpenSC now depends on xsltproc utility and docbook-xsl to build docs and man * Remove iconv dependency. EstEID driver now uses the commonName from the certificate for card label. * Possibility to change the default behavior for card resets via opensc.conf.
Restore opensc-pkcs11.so functionnality on NetBSD-6.0. libpthread shall not be loaded by dlopen(), therefore we remove the useless dependency on -lpthread
Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.
Add missing devel/readline and devel/zlib buildlinks. Bump PKGREVISION
Added support for new 2048 bit FINEID cards.
add patch from upstream to protect for possible buffer overflows from rogue cards (SA42658)
update to 0.11.13 This is basically to switch to libassuan2. other changes: minor fixes
Recursive PKGREVISION bump for jpeg update to 8.
Recursive bump for libltdl
More license info to my packages.
Update to 0.11.7. Changes from 0.11.6: * hide_empty_slots now on by default. * pinpad supported fixed for Mac OS X. * ruToken driver was updated. * openct virtual readers reduced to 2 by default. * link with iconv on Mac OS X for i18n support. * Security issue: Fix private data support. [CVE-2009-0368] * Enable lock_login by default. * Disable allow_soft_keygen by default.
OpenSC provides a set of libraries and utilities to access smart cards. Its main focus is on cards that support cryptographic operations, and facilitate their use in security applications such as mail encryption, authentication, and digital signature. OpenSC implements the PKCS#11 API so applications supporting this API such as Mozilla Firefox and Thunderbird can use it. OpenSC implements the PKCS#15 standard and aims to be compatible with every software that does so, too.
Initial revision