Skip to content

Conversation

@xhanulik
Copy link
Member

This PR disables old and recently unmodified card drivers (card-*.c) and their counterpart PKCS#15 emulators (pkcs15-*.c), and adds boilerplate for disabling old emulators.

Developer activity below tracks active developing and maintaining a card driver/emulator, excluding generic changes and fuzzing/static analysis fixes:

  • card-akis.c: modified 2007
  • card-asepcos.c: modified 2010
  • card-atrust-acos.c (pkcs15-atrust-acos.c): modified 2008
  • card-flex.c: modified 2010
  • card-gpk.c (pkcs15-gemsafeGPK.c): modified 2007
  • card-incrypto34.c: modified 2007
  • card-westcos.c (pkcs15-westcos.c): modified 2010
  • pkcs15-actalis.c and pkcs15-tccardos.c: Emulators detect card according to card name, which was changed in card-cardos.c in eee4964 (2017) and they were not updated since this change accordingly, which implies no latest use.

There was no recent user activity (issues, bug reports) related to the mentioned cards.
Disabled drivers and emulators can be enabled in opensc.conf.
Filtering of PKCS#15 emulators in pkcs15-emulator-filter.c enables emulators according to opensc.conf file.

Checklist
  • Documentation is added or updated
  • New files have a LGPL 2.1 license statement

Currently disabled card drivers
due to no recent user or developer activity:
- akis
- asepcos
- atrust-acos
- flex
- gpk
- incrypto34
- westcos
Filtering of enabled pkcs15 emulators according to conf file.
Currently disabled:
- westcos
- gemsafeGPK
- atrust-acos
Basic unit tests for filtering enabled emulators according to conf file
Emulators detect card according to string "CardOS M4",
which was changed in card-cardos.c (eee4964), but
they were not modified since than accordingly.
goto out;
break;
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should at least a log warning if we try to add a non-existing emulator. At this moment, it will get silently ignored. Note, that you will need a opensc context for logging in this function.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for pointing out, should be resolved with 86dfd9d

Warnings for exceeding maximum count of filtered emulators
and for trying to add non-existing emulator.
@Jakuje Jakuje merged commit 146e3e1 into OpenSC:master Sep 7, 2021
@xhanulik xhanulik deleted the disable-old-drivers branch September 19, 2021 15:07
xhanulik added a commit to xhanulik/OpenSC that referenced this pull request Sep 29, 2023
Remove due to no user and developer activity.
Last relevant modification was f947614
and no more changes except general were made.
The driver was disabled in OpenSC#2391.
xhanulik added a commit to xhanulik/OpenSC that referenced this pull request Sep 29, 2023
Remove due to no user and developer activity.
Last relevant modification was 7d935df
and no more changes except general were made.
The driver was disabled in OpenSC#2391.
xhanulik added a commit to xhanulik/OpenSC that referenced this pull request Oct 2, 2023
Remove due to no user and developer activity.
Last relevant modification was 7d935df
and no more changes except general were made.
The driver was disabled in OpenSC#2391.
xhanulik added a commit to xhanulik/OpenSC that referenced this pull request Oct 2, 2023
Remove due to no user and developer activity.
Last relevant modification was a8908b8
and no more changes except general were made.
The driver was disabled in OpenSC#2391..
xhanulik added a commit to xhanulik/OpenSC that referenced this pull request Oct 2, 2023
Remove due to no user and developer activity.
Last relevant modification was a2f622a
and no more changes except general were made.
The driver was disabled in OpenSC#2391.
xhanulik added a commit to xhanulik/OpenSC that referenced this pull request Oct 2, 2023
Remove due to no user and developer activity.
Last relevant modification was c3de15d
and no more changes except general were made.
The driver was disabled in OpenSC#2391.
xhanulik added a commit to xhanulik/OpenSC that referenced this pull request Oct 2, 2023
Remove due to no user and developer activity.
Last relevant modification was a8908b8
and no more changes except general were made.
The driver was disabled in OpenSC#2391..
xhanulik added a commit to xhanulik/OpenSC that referenced this pull request Oct 2, 2023
Remove due to no user and developer activity.
Last relevant modification was a2f622a
and no more changes except general were made.
The driver was disabled in OpenSC#2391.
xhanulik added a commit to xhanulik/OpenSC that referenced this pull request Oct 2, 2023
Remove due to no user and developer activity.
Last relevant modification was c3de15d
and no more changes except general were made.
The driver was disabled in OpenSC#2391.
xhanulik added a commit to xhanulik/OpenSC that referenced this pull request Oct 3, 2023
Remove due to no user and developer activity.
Last relevant modification was a8908b8
and no more changes except general were made.
The driver was disabled in OpenSC#2391.
xhanulik added a commit to xhanulik/OpenSC that referenced this pull request Oct 3, 2023
Remove due to no user and developer activity.
Last relevant modification was a2f622a
and no more changes except general were made.
The driver was disabled in OpenSC#2391.
xhanulik added a commit to xhanulik/OpenSC that referenced this pull request Oct 3, 2023
Remove due to no user and developer activity.
Last relevant modification was c3de15d
and no more changes except general were made.
The driver was disabled in OpenSC#2391.
xhanulik added a commit to xhanulik/OpenSC that referenced this pull request Oct 3, 2023
Remove due to no user and developer activity.
Last relevant modification was f947614
and no more changes except general were made.
The driver was disabled in OpenSC#2391.
xhanulik added a commit to xhanulik/OpenSC that referenced this pull request Oct 3, 2023
Remove due to no user and developer activity.
Last relevant modification was 7d935df
and no more changes except general were made.
The driver was disabled in OpenSC#2391.
xhanulik added a commit to xhanulik/OpenSC that referenced this pull request Oct 3, 2023
Remove due to no user and developer activity.
Last relevant modification was a8908b8
and no more changes except general were made.
The driver was disabled in OpenSC#2391.
xhanulik added a commit to xhanulik/OpenSC that referenced this pull request Oct 3, 2023
Remove due to no user and developer activity.
Last relevant modification was a2f622a
and no more changes except general were made.
The driver was disabled in OpenSC#2391.
xhanulik added a commit to xhanulik/OpenSC that referenced this pull request Oct 3, 2023
Remove due to no user and developer activity.
Last relevant modification was c3de15d
and no more changes except general were made.
The driver was disabled in OpenSC#2391.
xhanulik added a commit to xhanulik/OpenSC that referenced this pull request Oct 5, 2023
Remove due to no user and developer activity.
Last relevant modification was f947614
and no more changes except general were made.
The driver was disabled in OpenSC#2391.
xhanulik added a commit to xhanulik/OpenSC that referenced this pull request Oct 5, 2023
Remove due to no user and developer activity.
Last relevant modification was a8908b8
and no more changes except general were made.
The driver was disabled in OpenSC#2391.
xhanulik added a commit to xhanulik/OpenSC that referenced this pull request Oct 5, 2023
Remove due to no user and developer activity.
Last relevant modification was a2f622a
and no more changes except general were made.
The driver was disabled in OpenSC#2391.
xhanulik added a commit to xhanulik/OpenSC that referenced this pull request Oct 5, 2023
Remove due to no user and developer activity.
Last relevant modification was c3de15d
and no more changes except general were made.
The driver was disabled in OpenSC#2391.
xhanulik added a commit to xhanulik/OpenSC that referenced this pull request Jan 23, 2024
Remove due to no user and developer activity.
Last relevant modification was f947614
and no more changes except general were made.
The driver was disabled in OpenSC#2391.
xhanulik added a commit to xhanulik/OpenSC that referenced this pull request Jan 23, 2024
Remove due to no user and developer activity.
Last relevant modification was a8908b8
and no more changes except general were made.
The driver was disabled in OpenSC#2391.
xhanulik added a commit to xhanulik/OpenSC that referenced this pull request Jan 23, 2024
Remove due to no user and developer activity.
Last relevant modification was a2f622a
and no more changes except general were made.
The driver was disabled in OpenSC#2391.
xhanulik added a commit to xhanulik/OpenSC that referenced this pull request Jan 23, 2024
Remove due to no user and developer activity.
Last relevant modification was c3de15d
and no more changes except general were made.
The driver was disabled in OpenSC#2391.
Jakuje pushed a commit that referenced this pull request Jan 26, 2024
Remove due to no user and developer activity.
Last relevant modification was f947614
and no more changes except general were made.
The driver was disabled in #2391.
Jakuje pushed a commit that referenced this pull request Jan 26, 2024
Remove due to no user and developer activity.
Last relevant modification was a8908b8
and no more changes except general were made.
The driver was disabled in #2391.
Jakuje pushed a commit that referenced this pull request Jan 26, 2024
Remove due to no user and developer activity.
Last relevant modification was a2f622a
and no more changes except general were made.
The driver was disabled in #2391.
Jakuje pushed a commit that referenced this pull request Jan 26, 2024
Remove due to no user and developer activity.
Last relevant modification was c3de15d
and no more changes except general were made.
The driver was disabled in #2391.
@emaxx-google
Copy link

Hello, should Wiki articles like https://github.com/OpenSC/OpenSC/wiki/WestCOS be updated accordingly to mention the deletion as well?

@xhanulik
Copy link
Member Author

Hello, should Wiki articles like https://github.com/OpenSC/OpenSC/wiki/WestCOS be updated accordingly to mention the deletion as well?

Thanks for noticing, I'll take care of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants