Hi group,

I got a bug report from Ralf Spenneberg<softw...@opensource-security.de> that he can not store three 2048bit certificates in ePass3000. I looked into it and found that no one can create more than 15 files under 5015 df. I increase it from 15 to 48, and all are OK.
Attached is the patch for this issue.


--
Weitao Sun <wei...@ftsafe.com>
TEL:+86 010 62304466 ext. 585
FAX:+86 010 62304477

Entersafe R&D Dep.<www.entersafe.com>
Feitian Technologies Co., Ltd.<www.ftsafe.com>
5th Floor, Building 7A, No.40 Xueyuan Road
Haidian District, Beijing, P.R. China, 100083



Index: src/pkcs15init/pkcs15-entersafe.c
===================================================================
--- src/pkcs15init/pkcs15-entersafe.c	(revision 3711)
+++ src/pkcs15init/pkcs15-entersafe.c	(working copy)
@@ -151,7 +151,7 @@
 		 df_data.type = SC_ENTERSAFE_DF_DATA;
 		 df_data.data.df.file_id[0]=(df->id >> 8) & 0xFF;
 		 df_data.data.df.file_id[1]=df->id & 0xFF;
-		 df_data.data.df.file_count=0x0F;
+		 df_data.data.df.file_count=0x30;
 		 df_data.data.df.flag=0x01;
 		 df_data.data.df.ikf_size[0]=(df->size>>8)&0xFF;
 		 df_data.data.df.ikf_size[1]=df->size&0xFF;
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to