Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
4371 commits
Select commit Hold shift + click to select a range
6bee48e
cac: Improve logging
Jakuje Sep 24, 2025
35b2f54
cac: Fix possible use of uninitialized memory (fuzz_pkcs15_crypt/4)
Jakuje Sep 24, 2025
24869e7
pkcs15init: Avoid buffer overrun
Jakuje Dec 9, 2025
067ce7b
ctx: Introduce possibility to use custom openssl config
Jakuje Nov 27, 2025
3ede293
macOS code signing
metsma Dec 19, 2025
006a219
Use CI local vcpkg copy and silence CodeQL warnings
metsma Jan 5, 2026
3d593d0
Fix build with disable-sm
metsma Jan 15, 2026
2af83ef
pkcs11: Fix constant-time regression in PKCS#1 v1.5 decrypt path
Jan 12, 2026
18363d2
configure: Drop AC_C_CONST
Jakuje Jan 13, 2026
1dbdf41
Softhsm 2.7.0 reference file
Jakuje Jan 13, 2026
dd24780
tests: Adjust unwrap test for new softhsm
Jakuje Jan 13, 2026
22ac38c
pkcs11-spy: Avoid buffer overrun with bad modules
Jakuje Jan 13, 2026
33ab343
card-piv.c - fix history object
dengert Jan 19, 2026
4f57576
Fixed CID 501272: Resource leaks (#3557)
frankmorgner Jan 24, 2026
bc776c3
Fix typo in manpage
Jakuje Jan 14, 2026
3082984
Load FIPS provider by default when system is in FIPS mode
Jakuje Jan 14, 2026
496d8f0
Add CI on CentOS 10 Stream (+FIPS mode)
Jakuje Jan 14, 2026
8e66703
ci: Use default Fedora image instead of quay.io
Jakuje Jan 23, 2026
07a1475
pkcs11-tool: Do not query for the DE/ENCAPSULATE on non-KEM keys
Jakuje Jan 23, 2026
bc7b005
CI: added upload to Signpath.io
frankmorgner Jan 7, 2026
d700725
CI: perform Windows signing and macOS notarization for releases only
frankmorgner Jan 23, 2026
9ab1daf
Remove remaining uses of strcat()
Jakuje Jan 19, 2026
33121be
pkcs11: Default to CKA_TOKEN=FALSE according to the specification
Jakuje Jan 20, 2026
6c17819
pkcs11-tool: Add missing help option for --usage-encapsulate
Jakuje Dec 15, 2025
db0450f
pkcs11-tool: Check the the options structures are in sync
Jakuje Dec 15, 2025
6afc34a
Merge pull request #2257 from frankmorgner/fix_read_dg
frankmorgner Jan 25, 2026
20c551a
card-piv.c test History object URL file name is all hex digits
dengert Jan 26, 2026
cb35c5a
card-piv.c whitespace fixup
dengert Jan 26, 2026
3f24f0b
Merge pull request #3558 from dengert/piv-history-fix
frankmorgner Jan 26, 2026
053575d
CI: disable Signpath via AppVeyor
frankmorgner Jan 26, 2026
17172e3
CI: updated Github actions
frankmorgner Jan 27, 2026
e7fd828
CI: extracted notarization process for better orchestration
frankmorgner Jan 27, 2026
c1fc88e
card-piv.c Fix creation of serial number from FASC-N
dengert Jan 22, 2026
44e18bb
CI: updated github actions (#3564)
frankmorgner Feb 9, 2026
45af3fb
switched to Github issue forms (#3562)
frankmorgner Feb 9, 2026
afa1851
Merge branch 'master' into signpath
frankmorgner Feb 9, 2026
2c096c8
Merge pull request #3523 from frankmorgner/signpath
frankmorgner Feb 11, 2026
8012a0a
github: Fix id in bug report template
Jakuje Feb 11, 2026
8c65cfc
Removed duplicated link to security vulnerabilities
frankmorgner Feb 11, 2026
7f2e106
Unify wording of contact_list links with the other issue forms
frankmorgner Feb 11, 2026
4924961
Change usage of pin logged_in state to bitfield
Jakuje Feb 12, 2026
3983c64
opensc.h: Fix typo in comment
Jakuje Feb 12, 2026
b3cd8fe
sc-hsm: Add max APDU sizes for 4.* versions from #3567
Jakuje Feb 12, 2026
d6a10b7
sc-hsm: Adjust size limits to reflect APDU overhead
Jakuje Feb 12, 2026
c7b3d41
OpenSC 0.27.0
Jakuje Dec 1, 2025
6727826
macos: Include package suffix in package version
Jakuje Feb 24, 2026
306a425
Add Windows Build Option hint to disable asserts
jozsefd Feb 18, 2026
3b2919b
libopensc: guard NULL tries_left in dtrust PIN info
daloic Mar 1, 2026
c8b0907
Normalize windows package name and strip version number from git tag
metsma Feb 25, 2026
033f594
fixed typo
frankmorgner Mar 10, 2026
a46d33a
Rename Windows artifacts
metsma Mar 6, 2026
1df21be
OpenSC 0.27.0-rc2
Jakuje Mar 12, 2026
02b14f2
README: Fix artifact names in release
Jakuje Mar 17, 2026
937f183
README: Add Windows build status badge
Jakuje Mar 17, 2026
34d750a
ci: Remove broken packit and build RPMs from scratch
Jakuje Mar 12, 2026
c2b9d67
Build with no-modules to include legacy provider in static build
metsma Mar 22, 2026
13b849c
pkcs15-sc-hsm.c Comparing Brainpool EC parameters
dengert Mar 20, 2026
8dd3864
Add brainpoolPxxxt1 (twisted) curve OIDs definitions
embetrix Mar 12, 2026
61119f5
tests: add brainpoolP256r1/brainpoolP256t1 sign/verify tests
embetrix Mar 13, 2026
3b4f198
tests: Fail gracefully when reference file is not resent
Jakuje Mar 13, 2026
5fab888
ci: Fixup artifact names
Jakuje Mar 13, 2026
6c7b8af
pkcs11-tool: Fix public ML-DSA Key import
Jakuje Mar 23, 2026
0e92fc7
ci: Update to latest libressl 4.2.1
Jakuje Mar 13, 2026
36851e3
ci: Simplify kryoptic tests by using packaged version
Jakuje Mar 23, 2026
776e4cd
Workaround for RTLD_DEEPBIND crashes Firefox/Chrome
metsma Mar 24, 2026
0913b19
MacOSX/build-openssl: Fix infinite loop on missing CLI arg
gkapetanakis Mar 23, 2026
cc6664d
pkcs11-tool: Print more information about RSA keys
Jakuje Mar 23, 2026
5f2cfaf
pkcs11-tool: Common function to print hexadecimal strings
Jakuje Mar 23, 2026
c4abf20
pkcs11-tool: Print small values as integers (such as RSA public expon…
Jakuje Mar 26, 2026
7cd18ef
tests: Exclude p11test when built without cmocka
Jakuje Mar 30, 2026
55cba1a
tests: Add missing scripts to dist tarball
Jakuje Mar 30, 2026
c6b4bc0
tests: Fix reference to scripts for out-of-source build
Jakuje Mar 30, 2026
f423ce1
tests: Avoid leaving test files in build directory
Jakuje Mar 30, 2026
273cf88
tests: Package libssh reference file to release tarball
Jakuje Mar 30, 2026
f7efb3a
ci: Define LIBRESSL_VERSION only for the libressl jobs
Jakuje Mar 30, 2026
65fc211
pkcs15: Avoid buffer overrun on invalid data
Jakuje Nov 25, 2025
0358817
profile: Avoid possible buffer overrun
Jakuje Mar 3, 2026
73fe9c9
rtecp: Avoid stack buffer overrun
Jakuje Mar 25, 2026
b675b9b
pkcs15-crypt: Avoid possible stack buffer overrun
Jakuje Mar 25, 2026
502d0c0
asn1: Avoid stack buffer overrun
Jakuje Mar 25, 2026
aca0767
OpenSC 0.27.0
Jakuje Dec 1, 2025
1986898
OpenSC 0.27.1
Jakuje Mar 30, 2026
1b8c0cb
CI: updated OpenPACE
frankmorgner Mar 10, 2026
a36025a
AppVeyor: updated zlib
frankmorgner Mar 10, 2026
fc45d4f
piv-tool.c pkcs15-piv.c allow creating retired key management keys 82-95
dengert Feb 9, 2026
7141e79
piv-tool.1.xml - Create Retired Keys and History object
dengert Feb 10, 2026
7d32133
piv-tool.c - fix error messages and improve error responses
dengert Feb 15, 2026
e6b7687
piv-tool.1.xml - fix wording of example
dengert Feb 15, 2026
8954f5e
tools.html
dengert Feb 17, 2026
c98951f
Build doc/tools/tools.xml and doc/files/files.xml in source directory
dengert Feb 17, 2026
9171d92
doc/files/files.html - match this CI
dengert Feb 18, 2026
5f68d37
Lithuanian Identity Card driver
tadas-s Jan 19, 2026
dc28c2f
switch to portable bit fields
frankmorgner Mar 2, 2026
c8157c3
more fields
frankmorgner Mar 2, 2026
dfcf9e3
lteid-tool: Check return value of select file
Jakuje Apr 2, 2026
8fdc276
lteid-tool: Fix possible memory leak on error paths
Jakuje Apr 2, 2026
b02b63a
pkcs11-tool: Do not set PARAMETER_SET on private key template during …
Jakuje Apr 7, 2026
96e39e7
pkcs11-tool: fix CKA_VERIFY_RECOVER queried on secret key objects
ElMostafaIdrassi Apr 6, 2026
82d8fb8
Serbian CardEdge card driver
hirashix0 Apr 1, 2026
28ace05
srbeid: Address review comments
hirashix0 Apr 2, 2026
34658c4
pkcs11-tool: honor --label when selecting keys for sign/decrypt/encry…
Apr 3, 2026
2b204ec
CI: enable Dependabot for actions and vcpkg
frankmorgner Mar 10, 2026
2690f6a
Specify what types of bugs are expected for private reporting
frankmorgner Apr 14, 2026
8ad96ad
Changes for OpenSSL-4.0.0
dengert Apr 15, 2026
c1b5267
srbeid: bound CardEdge dir entry count before allocation
hirashix0 Apr 20, 2026
a5f0dde
coolkey: Avoid reading uninitialized memory from response buffer
Jakuje Apr 13, 2026
ef53bbe
coolkey: Verify datalen is not too large
Jakuje Apr 13, 2026
43a5a93
sccardos: Avoid integer overflow and buffer overrun during cardinfo p…
Jakuje Apr 13, 2026
46c26ef
build: Use delimiter character less likely appearing in branch name
Jakuje Apr 13, 2026
6c5dde6
entersafe: Avoid write buffer overrun on long input
Jakuje Apr 13, 2026
8ceb8ae
entersafe: Check bounds when encoding RSA keys
Jakuje Apr 13, 2026
fc3a8ee
entersafe: Avoid buffer overrun while copying MAC
Jakuje Apr 13, 2026
ed4e53c
authentic: Avoid pointer leaving the scope of a block
Jakuje Apr 13, 2026
4d81d00
authetnic: Avoid buffer overrun for long PIN
Jakuje Apr 13, 2026
d6d62c6
entersafe: Avoid buffer overrun with too long PINs
Jakuje Apr 13, 2026
97c514e
authentic: Avoid unsigned integer underflow
Jakuje Apr 13, 2026
2dcfa4a
authentic: Avoid buffer overrun when accessing pins_sha1
Jakuje Apr 13, 2026
14f81d3
authentic: Avoid buffer overrun when constructing PIN change buffer
Jakuje Apr 13, 2026
64b760c
coolkey: Check ECC input length bounds
Jakuje Apr 20, 2026
fc7afff
gids: Avoid heap buffer over-read
Jakuje Apr 20, 2026
ca789c7
build(deps): bump actions/checkout from 4 to 6
dependabot[bot] Apr 13, 2026
d9cea56
build(deps): bump actions/cache from 4 to 5
dependabot[bot] Apr 13, 2026
7d5d10e
srbeid: match by ATR whitelist, drop AID fallback
hirashix0 Apr 20, 2026
95ae550
Added missing null checks after dynamic memory allocation (#3664)
michalitv21 Apr 22, 2026
ed85750
pkcs11: Improve logging message when registering mechanism
Jakuje Apr 13, 2026
efe2e91
Revert "Do not register SHA1-based mechanisms in FIPS mode"
Jakuje Apr 19, 2026
de11c27
build(deps): bump actions/setup-java from 4 to 5
dependabot[bot] Apr 13, 2026
adc6884
build(deps): bump actions/upload-artifact from 6 to 7
dependabot[bot] Apr 21, 2026
09c15aa
CI: removed AppVeyor provider
frankmorgner Apr 21, 2026
6c101a4
build(deps): bump actions/download-artifact from 7 to 8
dependabot[bot] Apr 20, 2026
a060894
Add a NULL check at the entry of `sc_pkcs11_find_mechanism`. This
citypw Apr 22, 2026
24d4bf9
linux-strict.yml - test with --enable-piv-sm
dengert Apr 20, 2026
b41e08a
card-piv.c - fix -Wshorten-64-to-32 errors
dengert Apr 23, 2026
5fb109f
fuzz_pkcs11.c - fix -Wshorten-64-to-32 errors
dengert Apr 23, 2026
4407f3a
Merge pull request #3661 from dengert/Wshorten-64-to-32
dengert Apr 23, 2026
a807d69
replaced assert() with error handling (#3659)
frankmorgner Apr 24, 2026
6a8b1b6
build(deps): bump vapier/coverity-scan-action from 0 to 1
dependabot[bot] Apr 13, 2026
80ea44e
authentic: Make coverity happy about bounds
Jakuje Apr 20, 2026
a5f0f40
pkcs15init: Avoid memory leak
Jakuje Apr 22, 2026
f47791e
isoapplet: Avoid possible NULL dereference
Jakuje Apr 24, 2026
fc72a39
rutoken: Remove dead code
Jakuje Apr 24, 2026
3715c06
setcos: Avoid negative indexing
Jakuje Apr 24, 2026
cf9e46b
myeid: Avoid possible NULL pointer dereference
Jakuje Apr 24, 2026
3ad3d13
entersafe: Fis possible NULL pointer dereference
Jakuje Apr 24, 2026
b14ea2f
cardos: Avoid NULL dereference
Jakuje Apr 24, 2026
3a5b551
belpic: Avoid NULL dereference
Jakuje Apr 24, 2026
5919be3
entersafe: Avoid NULL dereference
Jakuje Apr 24, 2026
607aa2a
coolkey: Avoid NULL deference
Jakuje Apr 24, 2026
679a987
entersafe: Avoid NULL dereference
Jakuje Apr 24, 2026
554beb4
rtecp: Avoid memory leak on error
Jakuje Apr 24, 2026
a6a311a
cac: Avoid NULL dereference
Jakuje Apr 24, 2026
7e0c63c
rtecp: Remove dead code
Jakuje Apr 24, 2026
e7fbecb
openpgp: Avoid invalid integer handling
Jakuje Apr 24, 2026
7e0a2c0
entersafe: Fix NULL dereference
Jakuje Apr 24, 2026
bb62549
oberthur: Fix NULL dereference
Jakuje Apr 24, 2026
cf1c82b
rtecp: Remove dead code
Jakuje Apr 24, 2026
5c6f4b8
piv: Fix Off-by-one comparison
Jakuje Apr 24, 2026
7de2037
pkcs11: enable C_WaitForSlotEvent for all platforms
frankmorgner Apr 15, 2026
549f247
Prevent in-place modification of verify data
simo5 Apr 29, 2026
86c5005
Replace direct ASN1_STRING field access
simo5 Apr 29, 2026
680d444
gids: fixed possible CWE-125 on non-null-terminated GIDS directory st…
frankmorgner Apr 9, 2026
52ba3c8
openpgp: fixed possible overflow
frankmorgner Apr 9, 2026
11326df
fixed Off-by-One OOB Write in reader-tr03119.c
frankmorgner Apr 9, 2026
5ebb04d
epass2003/iasecc: fixed possible heap over-reads
frankmorgner Apr 9, 2026
0254d27
fixed possible Null-dereference READ
frankmorgner Apr 10, 2026
6852460
fixed formatting
frankmorgner Apr 11, 2026
3106355
Merge pull request #3642 from frankmorgner/reports
frankmorgner May 5, 2026
a7586e0
Add new paths to pkcs11-register
metsma Apr 29, 2026
afbc863
pkcs15-tool: prevent buffer overflow on RSA key parsing
frankmorgner May 11, 2026
123f11e
oberthur: Avoid memory leak while writing public keys
Jakuje May 11, 2026
3f3d484
ci: Fix 32b Fedora build
Jakuje May 11, 2026
814f745
pkcs11-tool: prevent buffer overflow
frankmorgner May 11, 2026
2a31d3c
pkcs15: mark AlgorithmInfo parameters CHOICE as optional
vesajaaskelainen May 10, 2026
0d967c3
asn1: honour SC_ASN1_OPTIONAL for CHOICE entries
vesajaaskelainen May 10, 2026
e794edd
tests/unittests: add tests for optional CHOICE in asn1_decode
vesajaaskelainen May 10, 2026
04d9b35
oberthur-awp: fixed possible out of bounds write on card initialization
frankmorgner May 3, 2026
7aa03ca
.clang-format - Do not change *.json files
dengert May 3, 2026
72cbeac
test-piv.sh no longer needs opensc-piv.conf
dengert Apr 30, 2026
ccaaf54
card-piv.c - Major PIV card improvements
dengert Feb 10, 2025
35b77ae
card-piv.c manually reformat long if statements before clang-format
dengert May 13, 2026
97e3d99
card-piv.c - clang-format
dengert May 13, 2026
d08a0b9
iasecc: fixed possible Stack Buffer Overflow
frankmorgner May 19, 2026
63f21f4
Merge pull request #3673 from dengert/Nitrokey-PIV
frankmorgner May 21, 2026
1c8b70f
esteid2018: fixed possible Global-buffer-overflow
frankmorgner May 19, 2026
79963b7
asn1: avoid uninitialized read of INTEGER/ENUMERATED debug output (#3…
Carmel0 May 27, 2026
bc2c29c
Fix epass2003 regression with SM
Jakuje May 28, 2026
7ac299a
netkey-tool: Check buffer bounds during certificate reading
Jakuje May 25, 2026
d306b13
muscle: Check buffer bounds to prevent heap overflow
Jakuje May 27, 2026
b423c2d
eidenv: Use correct types to prevent buffer overflow in ASN1 parser
Jakuje May 27, 2026
b25b788
coolkey: Avoid reading behind buffer bounds
Jakuje May 27, 2026
c930b22
dnie: Avoid buffer overrun while processing EF(CFD)
Jakuje May 27, 2026
1fc51e2
common: Add a way to exclude the RTLD_DEEPBIND from dlopen flags
Jakuje Apr 27, 2026
0322047
build(deps): bump github.com/microsoft/vcpkg in /.github
dependabot[bot] May 19, 2026
6f898a1
refactored pin commands to avoid tries_left as additional parameter …
frankmorgner Jun 3, 2026
4fa2c65
ui: fixed detecting default language (#3561)
frankmorgner Jun 3, 2026
08b1c11
Draft AGENTS.md
Jakuje Jun 3, 2026
4965113
AGENTS: Request specific references to code
Jakuje Jun 3, 2026
7a7a73d
SECURITY: Require one advisory per issue
Jakuje Jun 3, 2026
758c0bf
CI: Artifacts contain release (candidate) tags or short hash otherwise
frankmorgner May 19, 2026
e78ad86
Update windows build
metsma Jun 14, 2026
5517bba
build(deps): bump awalsh128/cache-apt-pkgs-action from 1.6.0 to 1.6.1
dependabot[bot] Jun 16, 2026
f587e30
card-piv.c - circumvent problem with G&D card response to select aid
dengert Jun 10, 2026
08b3deb
srbeid: support RSA-2048 raw signing and decryption
hirashix0 Jun 10, 2026
39e8771
oberthur: Validate we parsed non-empty modulus and exponent
Jakuje Jun 5, 2026
2edec19
cwa: Refactor to use ASN1 decoding functions
Jakuje Jun 5, 2026
ec07582
eoi: Avoid writing behind the buffer bounds if mapping was already in…
Jakuje Jun 5, 2026
4ded8e1
doc: updated info about file caching
frankmorgner Jun 3, 2026
c869a0e
opensc-explorer: document decimal notation for pin/key references
frankmorgner Jun 4, 2026
39aec86
PC/SC: fixed missing events of sc_wait_for_event()
frankmorgner Sep 21, 2025
e1e11ce
pkcs11-tool: fixed possible buffer overflow (#3710)
frankmorgner Jun 22, 2026
eaf9d6a
pkcs11-tool: increase input buffer of unwrap_key to 16384 bytes (#3696)
Wawszczak Jun 22, 2026
708dddb
IAS/ECC: add bounds checking
frankmorgner Jun 22, 2026
3aa01db
PC/SC: fixed length checking for PACE escaped commands
frankmorgner Jun 22, 2026
9670795
CAC: fixed possible NULL dereference
frankmorgner Jun 22, 2026
03c8bfa
PC/SC: added bounds check when parsing reader capabilities
frankmorgner Jun 22, 2026
e71f01b
pkcs11: fixed possible memory corruption
frankmorgner Jun 10, 2026
0fa519f
build(deps): bump actions/checkout from 6 to 7
dependabot[bot] Jun 23, 2026
6d08c5b
CI: test sc-hsm with pico-hsm
frankmorgner Jun 4, 2026
eb0f722
sc-hsm-tool: free resources at end
frankmorgner Jun 20, 2026
d88e6b5
added Pico HSM to README
frankmorgner Jun 21, 2026
bbd6613
doc: updated html files
frankmorgner Jun 23, 2026
ac436b4
pkcs11: add PC/SC status to each slot to detect changes
frankmorgner Apr 8, 2026
5e9f58d
oseid: disable broken encryption test case
frankmorgner Jun 21, 2026
6a9a6c6
CI: Added workflow to manage inactive PR/Issues automatically (#3697)
frankmorgner Jun 25, 2026
07d0d40
Certain operating systems (fedora,..) block weak algorithms, eg: SHA1.
mvogt1 Apr 19, 2026
868b4c7
piv: Avoid buffer overrun when parsing ASN1 from files
Jakuje Jun 22, 2026
9323954
openpgp: Fix possible buffer overrun with unlike 32bit public exponents
Jakuje Jun 22, 2026
566118a
dtrust: Avoid memory leak on initialization errors
Jakuje Jun 22, 2026
2746789
build(deps): bump actions/cache from 5 to 6
dependabot[bot] Jun 30, 2026
dc5754a
minidriver: fixed recognition of ECC keys when also RSA is supported
frankmorgner Jun 26, 2026
5f94fdc
reader-ctk: added guards against missing card object
frankmorgner Jun 26, 2026
727fa9c
PKCS#11: fixed possible use of uninitialized pointer
frankmorgner Jun 26, 2026
d6d2dfa
CI: Pin IsoApplet v1 to its latest working version
frankmorgner Jun 27, 2026
f164e2b
ci: Fix filename in workflow file
Jakuje Jul 16, 2026
5e2191a
tests: Disable SoftHSM wrapping tests as it crashes
Jakuje Jul 16, 2026
c6c9405
epass2003: Fix potential stack buffer overflow when encoding SM APDU
Jakuje Jun 2, 2026
ed27f12
iasecc: Avoid reading behind data buffer bounds
Jakuje Jun 2, 2026
d913ce1
myeid: Fix stack buffer overflow
Jakuje Jun 2, 2026
cedd862
libopensc: avoid heap buffer overflow
Jakuje Jun 2, 2026
fb7cea4
starcos: Avoid buffer overrun during writing 3k RSA key
Jakuje Jun 3, 2026
6732059
scarcos: Avoid buffer overrun while enclding larger RSA private keys
Jakuje Jun 3, 2026
8eacca5
epass2003: Fix more possible buffer overruns while encoding SM APDUs
Jakuje Jun 4, 2026
d1941c2
iasecc: Add NULL guards to prevent NULL dereferennce
Jakuje Jul 14, 2026
aae270a
PIV: enable X25519 key derivation for YubiKey 5.7+
olszomal Jul 16, 2026
3f2dded
CI: pin pico-hsm to its latest version
frankmorgner Jul 16, 2026
a379e9d
configure.ac: Fix reader detection
UVV-gh Jun 21, 2026
dfe4e4a
ci: Add a configuration that doesn't use any readers
UVV-gh Jun 25, 2026
d0f842f
Add empty reader implementation that always succeeds
UVV-gh Jul 20, 2026
aea995b
minidriver: Add ATRs for Japanese Individual Number Card (My Number C…
hamano Jul 23, 2026
ce60e6a
card-jpki: Use sc_file_free() to release virtual MF
hamano Jul 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
47 changes: 47 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
BasedOnStyle: LLVM
# defaults from LLVM
# BreakBeforeBraces: Attach
# AllowShortIfStatementsOnASingleLine: Never
# IndentCaseLabels: false
# AlignAfterOpenBracket: Align
# AlignTrailingComments: true
# MaxEmptyLinesToKeep: 1
# ReflowComments: falsedefault
# SortIncludes: true
# BreakBeforeBinaryOperators: None
# BraceWrapping:
# AfterClass: false
# AfterControlStatement: false
# AfterFunction: false
# AfterNamespace: false
# BeforeCatch: false
# BeforeElse: false
# IndentBraces: false

# OpenSC modifications
TabWidth: 8
IndentWidth: 8
ContinuationIndentWidth: 16
AlignAfterOpenBracket: DontAlign
UseTab: Always
AlignConsecutiveMacros: true
AlignEscapedNewlines: DontAlign
AllowShortFunctionsOnASingleLine: None
AlwaysBreakAfterReturnType: AllDefinitions
## This prevents reflowing intentionally short lines but
## it can be allowed only after we will have some baseline
ColumnLimit: 0
#ColumnLimit: 110
IndentCaseBlocks: false
AlignArrayOfStructures: Left

BreakBeforeBraces: Custom
BraceWrapping:
AfterObjCDeclaration: true
AfterUnion: true
AfterFunction: true

---
Language: Json
DisableFormat: true
20 changes: 20 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
root = true

[*]
charset = utf-8
max_line_length = 110
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true

[*.{c,h,sh}]
indent_style = tab
tab_width = 8

[{Makefile.am,configure.ac}]
indent_style = tab
tab_width = 8

[*.{yml,yaml}]
indent_style = space
indent_size = 2
7 changes: 7 additions & 0 deletions .github/.codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: "CodeQL configuration file"

query-filters:
- exclude:
# This reports all the uses of the DES, but this is needed for
# interoperability with cards not supporting AES
id: cpp/weak-cryptographic-algorithm
103 changes: 103 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
name: Bug report
description: Report a problem or unexpected behavior in OpenSC
labels: ["bug"]
body:
- type: markdown
attributes:
value: |
Thanks for reporting a bug in OpenSC!
Please fill out the sections below to help us diagnose the issue.
See https://github.com/OpenSC/OpenSC/wiki/How-to-write-a-good-bug-report on what to include here.

- type: textarea
id: description
attributes:
label: Describe the bug
description: A clear and concise description of what the bug is.
placeholder: What went wrong?
validations:
required: true

- type: textarea
id: steps
attributes:
label: Steps to reproduce
description: How can we reproduce the issue?
placeholder: |
1.
2.
3.
validations:
required: true

- type: textarea
id: expected
attributes:
label: Expected behavior
description: What you expected to happen.
validations:
required: true

- type: textarea
id: actual
attributes:
label: Actual behavior
description: What actually happened.
validations:
required: true

- type: input
id: opensc_version
attributes:
label: OpenSC version
placeholder: e.g. 0.25.1
description: Only the latest release and development versions are supported.
validations:
required: true

- type: input
id: os
attributes:
label: Operating system
placeholder: e.g. Ubuntu 22.04, Windows 11, macOS 14
validations:
required: true

- type: input
id: card
attributes:
label: Smart card model or security token
placeholder: Try `opensc-tool -n` if unkown

- type: input
id: application
attributes:
label: Application used with smart card
placeholder: e.g. Firefox, Windows Logon, Apple Mail, ssh, ...

- type: textarea
id: logs
attributes:
label: Logs and debug output
description: |
Please include relevant logs or debug output.
You can enable verbose output setting the environment variable `OPENSC_DEBUG` to `3`.
- `set OPENSC_DEBUG="3"` (Windows CMD)
- `export OPENSC_DEBUG="3"` (Unix shell)

Useful commands for getting debug information are:
- `opensc-tool --atr --name -vvv`
- `pkcs11-tool --test --login`
- `certutil -scinfo` (Windows only)
- `sc_auth identities` (macOS only)
render: shell

- type: checkboxes
id: checklist
attributes:
label: Checklist
options:
- label: I am using a supported OpenSC version
required: true
- label: I have searched existing issues to avoid duplicates
required: true
11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
blank_issues_enabled: false

contact_links:
- name: Start a discussion
url: https://github.com/OpenSC/OpenSC/discussions/new/choose
about: |
Ask questions, start discussions, or propose ideas that don't belong in an issue.

- name: Use the mailing lists
url: https://github.com/OpenSC/OpenSC/wiki/Mailing-lists
about: Write us an email or read the archive.
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Feature request
description: Suggest an enhancement or new feature for OpenSC
labels: ["enhancement"]
body:
- type: markdown
attributes:
value: |
Have an idea to improve OpenSC? We'd love to hear it.

- type: textarea
id: problem
attributes:
label: Problem statement
description: What problem does this feature solve?
validations:
required: true

- type: textarea
id: solution
attributes:
label: Proposed solution
description: Describe the solution you'd like to see.
validations:
required: true

- type: textarea
id: alternatives
attributes:
label: Alternatives considered
description: Any alternative solutions or workarounds you've considered.

- type: textarea
id: context
attributes:
label: Additional context
description: |
Related standards, card types, use cases, or references.
For new smart cards, include the output of `opensc-tool --atr --name -vvv`
17 changes: 17 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!--
Thank you for your pull request.

If this fixes a GitHub issue, make sure to have a line saying 'Fixes #XXXX'
(without quotes) in the commit message.

Mention which card(s) are used during testing. To get the name of your card,
run this command: `opensc-tool -n`
-->

##### Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->
- [ ] Documentation is added or updated
- [ ] New files have a LGPL 2.1 license statement
- [ ] PKCS#11 module is tested
- [ ] Windows minidriver is tested
- [ ] macOS token is tested
33 changes: 33 additions & 0 deletions .github/add_signing_key.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/sh

set -ex -o xtrace

pushd .github/
KEY_CHAIN=mac-build.keychain

# Create the keychain with a password
security create-keychain -p travis $KEY_CHAIN

# Make the custom keychain default, so xcodebuild will use it for signing
security default-keychain -s $KEY_CHAIN

# Unlock the keychain for one hour
security unlock-keychain -p travis $KEY_CHAIN
security set-keychain-settings -t 3600 -u $KEY_CHAIN

# Add certificates to keychain and allow codesign to access them
curl -L https://developer.apple.com/certificationauthority/AppleWWDRCA.cer > AppleWWDRCA.cer
security import AppleWWDRCA.cer \
-k ~/Library/Keychains/$KEY_CHAIN \
-T /usr/bin/codesign -T /usr/bin/productsign
security import DeveloperIDApplication.p12 \
-k ~/Library/Keychains/$KEY_CHAIN -P $KEY_PASSWORD \
-T /usr/bin/codesign -T /usr/bin/productsign
security import DeveloperIDInstaller.p12 \
-k ~/Library/Keychains/$KEY_CHAIN -P $KEY_PASSWORD \
-T /usr/bin/codesign -T /usr/bin/productsign
security unlock-keychain -p travis $KEY_CHAIN

# https://docs.travis-ci.com/user/common-build-problems/#mac-macos-sierra-1012-code-signing-errors
security set-key-partition-list -S apple-tool:,apple: -s -k travis $KEY_CHAIN
popd
Loading
Loading