Skip to content

Instantly share code, notes, and snippets.

@jakzal
Created November 13, 2010 21:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakzal/675636 to your computer and use it in GitHub Desktop.
Save jakzal/675636 to your computer and use it in GitHub Desktop.
Dirty fix for invalid PBM mask calculation in sasc-ng
--- sc-clean/systems/sc-seca/sc-seca.c 2010-11-13 21:23:27.178801999 +0100
+++ sc/systems/sc-seca/sc-seca.c 2010-11-13 19:28:42.290801995 +0100
@@ -274,6 +274,7 @@
bool cSmartCardSeca::CheckAccess(const unsigned char *data, const cProviderScSeca *p)
{
+ return true;
struct SecaChannelInfo *sci=(struct SecaChannelInfo*)data;
if(sci->date[0]>p->date[0] || (sci->date[0]==p->date[0] && sci->date[1]>p->date[1]))
return false;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment