Re: Compiling rdesktop with smartcard

Henrik Andersson <[email protected]> Wed, 11 Jul 2012 14:23:49 +0200
Newsgroups gmane.network.rdesktop.user
Message-ID <[email protected]>
Hi,

Ah ok, so the build is ok then, does the crash occur instantly or when 
you are accessing
the smartcard from within any windows services ?

if you provide a backtrace of the crash i can take a look at it.

Regards,

Henrik Andersson (Cendio AB)

On 07/11/2012 01:56 PM, Mueller, Andreas wrote:
> Hi Henrik,
>
> thanks for your replay. With your grep command I found this one:
>
> root@debian:~/rdesktop-1.7.1# grep WITH_SCARD config.log
> | #define WITH_SCARD 1
> | #define WITH_SCARD 1
> | #define WITH_SCARD 1
> | #define WITH_SCARD 1
> | #define WITH_SCARD 1
> | #define WITH_SCARD 1
> | #define WITH_SCARD 1
> | #define WITH_SCARD 1
> | #define WITH_SCARD 1
> | #define WITH_SCARD 1
> | #define WITH_SCARD 1
> DEFS='-DPACKAGE_NAME=\"rdesktop\" -DPACKAGE_TARNAME=\"rdesktop\" -DPACKAGE_VERSION=\"1.7.1\" -DPACKAGE_STRING=\"rdesktop\ 1.7.1\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DL_ENDIAN=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_LOCALE_H=1 -DHAVE_LANGINFO_H=1 -DHAVE_SYSEXITS_H=1 -Dssldir=\"/usr\" -DWITH_SCARD=1 -DEGD_SOCKET=\"/var/run/egd-pool\" -DWITH_RDPSND=1 -DRDPSND_OSS=1 -DHAVE_DIRENT_H=1 -DHAVE_DIRFD=1 -DHAVE_DECL_DIRFD=1 -DHAVE_ICONV_H=1 -DHAVE_ICONV=1 -DICONV_CONST= -DHAVE_SYS_VFS_H=1 -DHAVE_SYS_STATVFS_H=1 -DHAVE_SYS_STATFS_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_MOUNT_H=1 -DSTAT_STATVFS=1 -DHAVE_STRUCT_STATVFS_F_NAMEMAX=1 -DHAVE_STRUCT_STATFS_F_NAMELEN=1 -DHAVE_MNTENT_H=1 -DHAVE_SETMNTENT=1'
> #define WITH_SCARD 1
>
> I hope this helps. The libpcsclite-dev information come here:
>
> root@debian:~/rdesktop-1.7.1# apt-cache show libpcsclite-dev
> Package: libpcsclite-dev
> Source: pcsc-lite
> Version: 1.8.4-1
> Installed-Size: 215
> Maintainer: Ludovic Rousseau <[email protected]>
> Architecture: amd64
> Depends: libpcsclite1 (= 1.8.4-1), libc6 (>= 2.4)
>
> And the rdesktop help means rdesktop has 2-r scard2: See this one:
>
>           '-r scard[:"Scard Name"="Alias Name[;Vendor Name]"[,...]]
>            example: -r scard:"eToken PRO 00 00"="AKS ifdh 0"
>                     "eToken PRO 00 00" -> Device in Linux/Unix enviroment
>                     "AKS ifdh 0"       -> Device shown in Windows enviroment
>            example: -r scard:"eToken PRO 00 00"="AKS ifdh 0;AKS"
>                     "eToken PRO 00 00" -> Device in Linux/Unix enviroment
>                     "AKS ifdh 0"       -> Device shown in Windows enviroment
>                     "AKS"              -> Device vendor name
>
> But if I run rdesktop with smardcard, rdesktop chrashed.
>
> Greetz Andreas
>
> --
> Cosmos Consulting Group IT Services GmbH
> Andreas Müller
> Systemintegration
> Klenzestr. 23
> 80469 München / Germany
> e-Mail:[email protected]
> www.cosmosnet.de
> Tel.: +49 89 451503-30
> Fax/Voicebox: +49 89 451503-822
>
>
> -----Ursprüngliche Nachricht-----
> Von: Henrik Andersson [mailto:[email protected]]
> Gesendet: Mittwoch, 11. Juli 2012 13:07
> An: [email protected]
> Betreff: Re: [rdesktop-users] Compiling rdesktop with smartcard
>
> Hi Andreas,
>
> That log is correct, it should fail due to its a test to detect if an old version of pcsclite is used.
>
> Can you verify that PCSC package is installed and found by pkg-config:
>
> grep WITH_SCARD config.log
>
> also, if a binary is produced, rdesktop --help will show options -r scard help section if its compiled with smartcard support.
>
> Regards,
>
> Henrik Andersson (Cendio AB)
>
> On 07/10/2012 11:34 AM, Mueller, Andreas wrote:
>> Hi,
>>
>> i'd like to compile rdesktop with smartcard support.
>> Some packages I tried.
>>
>> The source package from Ubuntu 12.1 distribution The source package
>> from Debian testing distribution The source package from opensuse 12.1
>> distribution The source package form rdesktop page in version 1.7.0
>> and 1.7.1
>>
>> ./configure --enable-smartcard  comes with the following error in
>> config.log
>>
>> conftest.c: In function 'main':
>> conftest.c:39:1: warning: passing argument 1 of 'SCardControl' makes
>> integer from pointer without a cast [enabled by default]
>> /usr/include/PCSC/winscard.h:68:16: note: expected 'SCARDHANDLE' but argument is of type 'void *'
>> conftest.c:39:1: warning: passing argument 2 of 'SCardControl' makes
>> integer from pointer without a cast [enabled by default]
>> /usr/include/PCSC/winscard.h:68:16: note: expected 'DWORD' but argument is of type 'void *'
>> conftest.c:39:1: warning: passing argument 4 of 'SCardControl' makes
>> integer from pointer without a cast [enabled by default]
>> /usr/include/PCSC/winscard.h:68:16: note: expected 'DWORD' but argument is of type 'void *'
>> conftest.c:39:1: error: too few arguments to function 'SCardControl'
>> /usr/include/PCSC/winscard.h:68:16: note: declared here
>>
>> After compiling I can start rdesktop, but if I try to use smartcard rdesktop goes to nirvana.
>>
>> Any ideas what can be wrong.
>> Greetings
>> Andreas Müller
>>
>>
>> --
>> Cosmos Consulting Group IT Services GmbH Andreas Müller
>> Systemintegration Klenzestr. 23
>> 80469 München / Germany
>> e-Mail:[email protected]
>> www.cosmosnet.de
>> Tel.: +49 89 451503-30
>> Fax/Voicebox: +49 89 451503-822
>>
>>
>>
>> ----------------------------------------------------------------------
>> --------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond.
>> Discussions will include endpoint security, mobile security and the
>> latest in malware threats.
>> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> rdesktop-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/rdesktop-users
>
> --
> ---
> Henrik Andersson
> Cendio AB        http://cendio.com
> Teknikringen 8        http://twitter.com/ThinLinc
> 583 30 Linköping    http://facebook.com/ThinLinc
> Phone: +46-13-214600    http://plus.google.com/112509906846170010689
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> rdesktop-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/rdesktop-users
>


-- 
---
Henrik Andersson
Cendio AB        http://cendio.com
Teknikringen 8        http://twitter.com/ThinLinc
583 30 Linköping    http://facebook.com/ThinLinc
Phone: +46-13-214600    http://plus.google.com/112509906846170010689


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/