Re: winscard/tests: Add the tests file (try 3)

2011-11-07 Thread Bruno Jesus
On Mon, Oct 31, 2011 at 23:27, Bruno Jesus 00cp...@gmail.com wrote: try 3 - avoid magic constants by using winscard.h defines try 2 - split the patches and fix win2000 error This is the starting point for the winscard implementation. I'll add dozens of tests and I would like all of them

Re: winscard/tests: Add the tests file

2011-10-26 Thread Marvin
android. === W2KPROSP4 (32 bit winscard) === winscard.c:53: Test failed: SCardIsValidContext expected SCARD_E_INVALID_HANDLE, received 0006 winscard.c:64: Test failed: SCardReleaseContext expected SCARD_E_INVALID_HANDLE, received 0006

Re: winscard/tests: Add the tests file

2011-10-26 Thread Bruno Jesus
On Wed, Oct 26, 2011 at 11:38, Marvin test...@testbot.winehq.org wrote: === W2KPROSP4 (32 bit winscard) === winscard.c:53: Test failed: SCardIsValidContext expected SCARD_E_INVALID_HANDLE, received 0006 winscard.c:64: Test failed: SCardReleaseContext expected SCARD_E_INVALID_HANDLE

Re: [1/4] winscard: implementation

2011-10-06 Thread Bruno Jesus
2011/10/3 André Hentschel n...@dawncrow.de: Am 03.10.2011 09:31, schrieb Vincent Hardy: First submitted on wine-devel and modified following comments from Marcus Meissner (MAX_ATR_SIZE / bytecount). OK, some notes: winscard: implementation is a very bad name for a patch, especially for 4

Re: [1/4] winscard: implementation

2011-10-06 Thread Erich Hoover
On Thu, Oct 6, 2011 at 8:07 AM, Bruno Jesus 00cp...@gmail.com wrote: ... This is a whole new feature, in my short period into wine developing this is the first time I see a completely new thing being introduced. I'd take a look at usbd.sys, as it was introduced relatively recently. Generally

Re: [1/4] winscard: implementation

2011-10-06 Thread Stefan Leichter
: winscard: implementation is a very bad name for a patch, especially for 4. Splitting the patches is a good idea, but you need to split it different (you are adding dead code). In the first patch you might want to add the configure.ac and library loading stuff together with only the things needed

Re: [1/4] winscard: implementation

2011-10-03 Thread André Hentschel
Am 03.10.2011 09:31, schrieb Vincent Hardy: First submitted on wine-devel and modified following comments from Marcus Meissner (MAX_ATR_SIZE / bytecount). OK, some notes: winscard: implementation is a very bad name for a patch, especially for 4. Splitting the patches is a good idea, but you

winscard

2011-09-30 Thread Vincent Hardy
Hi all, Here are four patches that are a partial but functional implementation of winscard. I installed Belgian Electronic Identity Card MiddleWare (http://eid-mw.googlecode.com/files/BeidMW35-6995.msi) I tested winscard by starting beid35gui.exe and I can see my identity card data

Re: winscard

2011-09-30 Thread Bruno Jesus
On Fri, Sep 30, 2011 at 06:42, Vincent Hardy vincent.hardy...@gmail.com wrote: Hi all, Here are four patches that are a partial but functional implementation of winscard. Congratulations =) I installed Belgian Electronic Identity Card MiddleWare (http://eid-mw.googlecode.com/files/BeidMW35

Re: winscard

2011-09-30 Thread Jeff Latimer
On 30/09/11 19:42, Vincent Hardy wrote: Are these 4 patches good enough to be sent to wine-patch ? Vincent, normally you would start by adding tests that can confirm the same behaviour in Windows. If you can do that and get the test accepted then you are a long closer to get your patches

Re: winscard

2011-09-30 Thread Marcus Meissner
On Fri, Sep 30, 2011 at 11:42:26AM +0200, Vincent Hardy wrote: Hi all, Here are four patches that are a partial but functional implementation of winscard. I installed Belgian Electronic Identity Card MiddleWare (http://eid-mw.googlecode.com/files/BeidMW35-6995.msi) I tested winscard

Re: winscard

2011-09-30 Thread Mounir IDRASSI
are just transferring all bytes from pcsclite side to the WIN32 side. That being said, maybe putting pStates[i].cbAtr will help the patches be accepted. By the way, I want to thank Vincent for taking the time to try to incorporate the winscard code into Wine. Without his dedication, this could

Re: winscard: Implement some functions of winscard.dll

2011-05-26 Thread Alexandre Julliard
Sergey Stepanov serg_ad...@rambler.ru writes: @@ -33,6 +35,24 @@ const SCARD_IO_REQUEST g_rgSCardT0Pci = { SCARD_PROTOCOL_T0, 8 }; const SCARD_IO_REQUEST g_rgSCardT1Pci = { SCARD_PROTOCOL_T1, 8 }; const SCARD_IO_REQUEST g_rgSCardRawPci = { SCARD_PROTOCOL_RAW, 8 }; +#define

winscard: Implement some functions of winscard.dll

2011-05-15 Thread Juan Lang
Hi Sergey, #include config.h +#include dlfcn.h #include stdarg.h This change will cause compile failures on systems without this header. You need to add a configure check for the header, and include it conditionally. Thanks, --Juan

Re: winscard/tests: Implement test for two functions of winscard.dll

2011-05-06 Thread Marvin
Hi, While running your changed tests on Windows, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check? Full results can be found at http://testbot.winehq.org/JobDetails.pl?Key=10749 Your paranoid

Re: winscard/tests: Implement test for two functions of winscard.dll

2011-05-06 Thread Marvin
Hi, While running your changed tests on Windows, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check? Full results can be found at http://testbot.winehq.org/JobDetails.pl?Key=10750 Your paranoid

winscard/tests: Add test base functions of winscard.dll

2011-05-06 Thread Joerg-Cyril.Hoehle
== SCARD_S_SUCCESS || result == SCARD_E_XYZ || broken(result == SCARD_E_...) Here's work done last year by Yauheni Baltouski and Aliaksei Hud. They are not working on winscard any more. I'd be pleased to eventually see winscard tests in Wine. Maybe you could merge this work? I *hope* I attached

Re: winscard/tests: Add test base functions of winscard.dll

2011-05-04 Thread Marvin
Hi, While running your changed tests on Windows, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check? Full results can be found at http://testbot.winehq.org/JobDetails.pl?Key=10722 Your paranoid

Re: winscard

2011-01-22 Thread André Hentschel
Am 21.01.2011 09:53, schrieb vince: Hi all, I'm back with a smaller and reworked winscard patch. In respond to Vitaly Margolen (http://www.winehq.org/pipermail/wine-devel/2010-September/087017.html) 1. I used configure to get the so name of the library. 2. I removed trailing spaces. 3

winscard

2011-01-21 Thread vince
Hi all, I'm back with a smaller and reworked winscard patch. In respond to Vitaly Margolen (http://www.winehq.org/pipermail/wine-devel/2010-September/087017.html) 1. I used configure to get the so name of the library. 2. I removed trailing spaces. 3. When this patch is approved, I will make

Re: winscard: add pcsc-lite helpers for upcoming(?) implementation

2009-11-15 Thread Heiko Nardmann
What's the current state of PCSC support in Wine? When I recently looked, winscard seemed full of stubs. OTOH, there's a company http://www.starmoney.de/index.php?id=243 that seems to use Wine (and Darwine?) with card readers to make its software available for Linux Mac. Also seems

Re: winscard: add pcsc-lite helpers for upcoming(?) implementation

2009-11-15 Thread Juan Lang
To my knowledge the integration of the patches by Mounir IDRASSI has been rejected due to missing automated tests. This is a problem since for a full test someone has to write/provide an IFD handler which emulates some stuff. IIRC, there was also a problem with the way it integration was done.

Re: winscard: add pcsc-lite helpers for upcoming(?) implementation

2009-11-13 Thread viny
joerg-cyril.hoe...@t-systems.com a écrit : Hi, looking for PCSC-card-reader support in Wine, I came across old mails from 2007. http://www.winehq.org/pipermail/wine-devel/2007-May/057052.html What's the current state of PCSC support in Wine? When I recently looked, winscard seemed full

winscard: add pcsc-lite helpers for upcoming(?) implementation

2009-11-12 Thread Joerg-Cyril.Hoehle
Hi, looking for PCSC-card-reader support in Wine, I came across old mails from 2007. http://www.winehq.org/pipermail/wine-devel/2007-May/057052.html What's the current state of PCSC support in Wine? When I recently looked, winscard seemed full of stubs. OTOH, there's a company http

integration of winscard patches: ideas for implementing test cases?

2008-11-07 Thread frechdachs69
Hi together! I am currently wondering which test cases make sense after an integration of winscard patches. So far most API calls are directly related to pcsc-lite behaviour and therefore we need a result from pcsc-lite which is comparable with what Win/winscard.dll would return to us

Re: integration of winscard patches: ideas for implementing test cases?

2008-11-07 Thread Dan Kegel
On Fri, Nov 7, 2008 at 10:27 AM, frechdachs69 [EMAIL PROTECTED] wrote: I am currently wondering which test cases make sense after an integration of winscard patches. So far most API calls are directly related to pcsc-lite behaviour and therefore we need a result from pcsc-lite which

Re: Winscard: Correct the declaration of SCardReleaseStartedEvent to match MSDN

2008-08-27 Thread Mounir IDRASSI
corrects the declaration of the function SCardReleaseStartedEvent of Winscard to match its definition in MSDN found in the following link : http://msdn.microsoft.com/en-us/library/aa379799(VS.85).aspx -voidWINAPI SCardReleaseStartedEvent(void); +voidWINAPI SCardReleaseStartedEvent

Re: Winscard: Correct the declaration of SCardReleaseStartedEvent to match MSDN

2008-08-26 Thread Dmitry Timoshkov
Mounir IDRASSI [EMAIL PROTECTED] wrote: This patch corrects the declaration of the function SCardReleaseStartedEvent of Winscard to match its definition in MSDN found in the following link : http://msdn.microsoft.com/en-us/library/aa379799(VS.85).aspx -voidWINAPI

Re: winscard: add pcsc-lite helpers for upcoming implementation (try 2)

2007-05-24 Thread Alexandre Julliard
Mounir IDRASSI [EMAIL PROTECTED] writes: +/* + * pcsc-lite functions pointers + */ +typedef LONG (*SCardEstablishContextPtr)(DWORD dwScope,LPCVOID pvReserved1, +LPCVOID pvReserved2, LPSCARDCONTEXT phContext); +typedef LONG (*SCardReleaseContextPtr)(SCARDCONTEXT hContext); +typedef

Re: winscard: add pcsc-lite helpers for upcoming implementation (try 2)

2007-05-24 Thread Mounir IDRASSI
in winscard. The only exception is for winscard handles: in pcsclite they are always defined as long, whereas in PSDK they are defined as ULONG_PTR. So, for me, the only thing to do is convert those handles back and forth from long to ULONG_PTR. Another possible issue is when wine is running under

Re: winscard: add pcsc-lite helpers for upcoming implementation (try 2)

2007-05-24 Thread Alexandre Julliard
but this is useless as they are the same as the ones in winscard. Unfortunately they aren't, the pcsclite headers use unsigned long instead of DWORD for instance. This won't have the same size on 64-bit. -- Alexandre Julliard [EMAIL PROTECTED]

Re: winscard: add pcsc-lite helpers for upcoming implementation

2007-05-23 Thread James Hawkins
On 5/23/07, Mounir IDRASSI [EMAIL PROTECTED] wrote: Hi, This patch adds helper variables and functions that exposes pcsc-lite functionalities for the use of the upcoming implementation. +/* loading entry points*/ +bSuccess = TRUE; +if (bSuccess +

re: winscard: add pcsc-lite helpers for upcoming implementation

2007-05-23 Thread Dan Kegel
James wrote: This would be a lot cleaner as: if (!(liteSCardEstablishContext = (SCardEstablishContextPtr) wine_dlsym(g_pcscliteHandle,SCardEstablishContext,szErr,sizeof(szErr))) { ERR(Failed to get SCardEstablishContext from pcsclite library. Error = %s\n,szErr); goto error; } I think

Re: winscard: add pcsc-lite helpers for upcoming implementation

2007-05-23 Thread Juan Lang
(); break; } I suspect it's safer not to fail loading winscard if PCSC-Lite isn't available. Instead, the functions such as SCardListCards should probably return empty lists. But knowing to do so relies on knowing that PCSC-Lite couldn't be initialized, so the return value

Re: winscard: add pcsc-lite helpers for upcoming implementation

2007-05-23 Thread Mounir IDRASSI
Thanks for your comments Juan. Actually, the upcoming implementation checks the used function pointer at each call and returns an error if not assigned. Also in it, winscard always succeed to load even if pcsc-lite is not running. FYI, my first winscard patch contains an advanced stage

re: winscard: add pcsc-lite helpers for upcoming implementation

2007-05-23 Thread Mounir IDRASSI
The code is definitely cleaner with all your suggestions. I'm applying them now. Mounir IDRASSI IDRIX - Cryptography and IT Security Experts http://www.idrix.fr James wrote: This would be a lot cleaner as: if (!(liteSCardEstablishContext = (SCardEstablishContextPtr)

Re: winscard: small stub implementation of winscard dll (Try 2)

2007-05-22 Thread Alexandre Julliard
Mounir IDRASSI [EMAIL PROTECTED] writes: +BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) +{ +TRACE(%p,%x,%p\n, hinstDLL, fdwReason, lpvReserved); + +switch (fdwReason) +{ +case DLL_PROCESS_ATTACH: +{ +

Re: winscard: small stub implementation of winscard dll (Try 2)

2007-05-22 Thread Mounir IDRASSI
Hi Alexandre, You are completely right...these variables are definitely useless!! I don't remember when I coded that but it must have been very late at night! Anyway, I'll purge them from the patch. Mounir IDRASSI IDRIX - Cryptography and IT Security Experts http://www.idrix.fr Alexandre

Re: winscard stub dll

2007-05-16 Thread Mounir IDRASSI
Hi Francois, Thanks for your modifications. I'll review your patch and submit it if I have no comments, ِCheers, Mounir IDRASSI IDRIX - Cryptography and IT Security Experts http://www.idrix.fr Francois Gouget wrote: Hi, Here's a new version of the patch that removes the casts as suggested by

winscard stub dll

2007-05-15 Thread Francois Gouget
As I was working on the winscard headers, I also did small tweaks on the winscard stub implementation. I admit it's mostly whitespace changes: * removed unneeded #includes. They should be added back when the implementation actually requires them. * use LPCBYTE like in the headers instead

Re: winscard stub dll

2007-05-15 Thread Alexandre Julliard
Francois Gouget [EMAIL PROTECTED] writes: * I would really have liked to get rid of the (unsigneg int) casts, but as the handle types are ULONG_PTRs it seems like it won't be possible. That's quite annoying. If anyone has suggestions... ULONG_PTRs are longs, they should be printed with %lx

Re: winscard stub dll

2007-05-15 Thread Francois Gouget
Alexandre Julliard wrote: Francois Gouget [EMAIL PROTECTED] writes: * I would really have liked to get rid of the (unsigneg int) casts, but as the handle types are ULONG_PTRs it seems like it won't be possible. That's quite annoying. If anyone has suggestions... ULONG_PTRs are longs, they

Re: winscard stub dll

2007-05-15 Thread Alexandre Julliard
Francois Gouget [EMAIL PROTECTED] writes: But then on a 64bit system an __int64 should be the same as a long so maybe it's ok anyway. Yes, __int64 is a long on Win64. The only issue that could happen is if we try to compile Wine's dlls on a 64bit Windows system using Visual C++. Isn't a

Re: winscard stub dll

2007-05-15 Thread Mounir IDRASSI
Hi, Apart from Alexandre comment, I don't see any other possible changes. So, if the first patch containing the API headers is OK, I can submit the winscard stub patch. Mounir IDRASSI IDRIX - Cryptography and IT Security Experts http://www.idrix.fr Alexandre Julliard wrote: Francois Gouget

Re: Winscard support (for smart cards)

2007-05-07 Thread Mounir IDRASSI
Hi all, We have noticed that our first patch for winscard containing only the headers have not been applied yet. Is this a normal delay? Is there any pending issues? Should we send the remaining list of patches to complete the winscard implementation? Any comments/remarks are welcomed. Cheers

Re: Winscard support (for smart cards)

2007-05-07 Thread Detlef Riekenberg
On Mo, 2007-04-30 at 00:58 +0200, Mounir IDRASSI wrote: +#define SCARD_S_SUCCESS0x +#define SCARD_F_INTERNAL_ERROR 0x8011 /** An internal consistency check failed. */ +#define SCARD_E_CANCELLED 0x8012 /** The action

Re: Adding header files for the implementation of Winscard dll (Smart Cards support)

2007-05-02 Thread Dmitry Timoshkov
Mounir IDRASSI [EMAIL PROTECTED] wrote: diff --git a/include/scarderr.h b/include/scarderr.h new file mode 100755 index 000..c07833e --- /dev/null +++ b/include/scarderr.h ... diff --git a/include/winscard.h b/include/winscard.h new file mode 100755 index 000..f302a9f --- /dev/null

Re: Adding header files for the implementation of Winscard dll (Smart Cards support)

2007-05-02 Thread Mounir IDRASSI
Sorry, my mistake... I'll definitely be more careful next time. Mounir IDRASSI IDRIX - Cryptography and IT Security Experts http://www.idrix.fr Dmitry Timoshkov wrote: This is a notice more for Alexandre this time, but next time please make sure to send the files with exec bits turned off (755

Re: Winscard support (for smart cards)

2007-05-01 Thread Eric Pouech
Mounir IDRASSI a écrit : Hi all, Followings your comments, I have rewritten the header files and split winscard.c into smaller files. You'll find attached with this email a patch containing only the headers and a skeleton for this dll. Once integrated into the source tree, I'll provide another

Re: Winscard support (for smart cards)

2007-05-01 Thread Mounir IDRASSI
Hi Eric, I am afraid I don't see any MS comments in scarderr.h: I have written all the file from scratch and the comments are mine. Can you point them out please? In the final implementation, all the functions are needed even if they are stubs because they can be called by applications that ignore

Re: Winscard support (for smart cards)

2007-05-01 Thread Eric Pouech
Mounir IDRASSI a écrit : Hi Eric, I am afraid I don't see any MS comments in scarderr.h: I have written all the file from scratch and the comments are mine. Can you point them out please? sorry, I didn't actually compare the files, just saw the comments (my bad) In the final implementation,

Re: Winscard support (for smart cards)

2007-05-01 Thread Mounir IDRASSI
Hi, Please find attached the patch for adding header files for the support of smart cards through Winscard dll. If it's OK, should I post it elsewhere? Thanks in advance. Mounir IDRASSI IDRIX - Cryptography and IT Security Experts http://www.idrix.fr Eric Pouech wrote: sorry, I didn't

Re: Winscard support (for smart cards)

2007-05-01 Thread Eric Pouech
Mounir IDRASSI a écrit : Hi, Please find attached the patch for adding header files for the support of smart cards through Winscard dll. If it's OK, should I post it elsewhere? Thanks in advance. yes to [EMAIL PROTECTED] A+ -- Eric Pouech The problem with designing something completely

Re: Winscard support (for smart cards)

2007-04-30 Thread Kai Blin
On Monday 30 April 2007 00:58, Mounir IDRASSI wrote: Hi all, We have managed to integrate our winscard source code into the wine source tree, including the configure.ac and Makefine.in files. As described in the developer's guide, I am attaching with this email the output of the command git

Re: Winscard support (for smart cards)

2007-04-30 Thread Eric Pouech
Mounir IDRASSI a écrit : Hi all, We have managed to integrate our winscard source code into the wine source tree, including the configure.ac and Makefine.in files. As described in the developer's guide, I am attaching with this email the output of the command git format-patch origin. Can

Re: Winscard support (for smart cards)

2007-04-30 Thread Mounir IDRASSI
with msvcrt source is that winscard exported variables have a structure as a type, whereas msvcrt exported variables are pointers. Cheers, Mounir IDRASSI IDRIX – Cryptography and IT Security Experts http://www.idrix.fr Eric Pouech wrote: from a cursory look, it looks a very goot start !!! a couple

Re: Winscard support (for smart cards)

2007-04-30 Thread Eric Pouech
. However, there is still an issue: when when try to compile a source file that uses them using winegcc, we get an unresolved symbol error. Did we miss something? The only difference we see with msvcrt source is that winscard exported variables have a structure as a type, whereas msvcrt exported variables

Re: Winscard support (for smart cards)

2007-04-30 Thread Mounir IDRASSI
Hi Eric, I have tested your hint concerning the final single call to MultiByteToWideChar in order to convert the whole area but it didn't work: even when I specify the whole length of the multi-string, it keeps stoping at the first NULL character. I guess MultiByteToWideChar and

Re: Winscard support (for smart cards)

2007-04-30 Thread Eric Pouech
Mounir IDRASSI a écrit : Hi Eric, I have tested your hint concerning the final single call to MultiByteToWideChar in order to convert the whole area but it didn't work: even when I specify the whole length of the multi-string, it keeps stoping at the first NULL character. I guess

Re: Winscard support (for smart cards)

2007-04-30 Thread Mounir IDRASSI
oups ...sorry...It was my fault! You are as absolutely right. Mounir IDRASSI IDRIX - Cryptography and IT Security Experts http://www.idrix.fr Eric Pouech wrote: they should work across the whole buffer are you sure you don't pass -1 as the length for the input buffer ? A+

Winscard support (for smart cards)

2007-04-25 Thread mounir . idrassi
Hi, We have noticed that wine doesn't have the winscard dll responsible for the support of smart cards under windows. For the need of one of our projects, we are currently developing this dll for wine under Linux based on the pcsc-lite library. Once done, we'll share it with the community

Re: Winscard support (for smart cards)

2007-04-25 Thread Saulius Krasuckas
will start doing this immediatelly, not once done. Otherwise you would probably step in a shoes of Transgaming' or Codeweavers' guys, patches from which src trees will have a somwhat hard way into Wine tree. However, we would like to known the reason behind the lack of winscard support

re: Winscard support (for smart cards)

2007-04-25 Thread Dan Kegel
I'm thrilled you're working on this! I must urge you to submit code early and often to Wine. The first patch you should send should just implement a stub dll. We can help you with that if you need it. Here's a good example of a new stuff DLL:

Re: Winscard support (for smart cards)

2007-04-25 Thread mounir . idrassi
Saulius Krasuckas [EMAIL PROTECTED] wrote: IMHO it would be best for the community if you will start doing this immediatelly, not once done. Unfortunately, we are well advanced and we can't do it that way due to other constraints in the project. Another bad point is that, since we are not

Re: Winscard support (for smart cards)

2007-04-25 Thread Vijay Kiran Kamuju
Hi, If there is a sample implementation or some kinda initial source code. (Just send a initial code) We can try to help you in integrating the code into wine tree. By progressing step by step. Thanks, VJ On 4/25/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Saulius Krasuckas [EMAIL

Re: Winscard support (for smart cards)

2007-04-25 Thread Stefan Dösinger
Am Mittwoch 25 April 2007 18:48 schrieb [EMAIL PROTECTED]: Hi, We have noticed that wine doesn't have the winscard dll responsible for the support of smart cards under windows. For the need of one of our projects, we are currently developing this dll for wine under Linux based on the pcsc