[Pcsclite-muscle] Serial non-usb readers - Help required
Hemanth Kumar
hemanth.sahara at gmail.com
Tue Nov 21 05:49:53 PST 2017
Any help??
On Mon, Nov 20, 2017 at 1:08 PM, Hemanth Kumar <hemanth.sahara at gmail.com> wrote:
> Used vpcd dylib in my reader.conf.. My etc/reader.conf.d/reader.conf
> looks like this now in Mac osx..
>
> FRIENDLYNAME "Virtual PCD"
> DEVICENAME /dev/tty.Bluetooth-Incoming-Port
> LIBPATH /usr/local/libexec/SmartCardServices/drivers/serial/libifdvpcd.dylib.0.8
>
> Confused on what should be the device name, as per the man page it
> says the physical port where the reader is connected. In my case I
> don't have any reader connected, this is a virtual reader with some
> sort of ports open for write/read.
>
> pcsctest still doesn't show any readers connected. Please advice.
>
> otool output below:
>
> test$ otool -l libifdvpcd.dylib.0.8
>
> libifdvpcd.dylib.0.8:
>
> Mach header
>
> magic cputype cpusubtype caps filetype ncmds sizeofcmds flags
>
> 0xfeedfacf 16777223 3 0x00 6 13 1472 0x00100085
>
> Load command 0
>
> cmd LC_SEGMENT_64
>
> cmdsize 552
>
> segname __TEXT
>
> vmaddr 0x0000000000000000
>
> vmsize 0x0000000000003000
>
> fileoff 0
>
> filesize 12288
>
> maxprot 0x00000007
>
> initprot 0x00000005
>
> nsects 6
>
> flags 0x0
>
> Section
>
> sectname __text
>
> segname __TEXT
>
> addr 0x0000000000000aa0
>
> size 0x0000000000001e1a
>
> offset 2720
>
> align 2^4 (16)
>
> reloff 0
>
> nreloc 0
>
> flags 0x80000400
>
> reserved1 0
>
> reserved2 0
>
> Section
>
> sectname __stubs
>
> segname __TEXT
>
> addr 0x00000000000028ba
>
> size 0x00000000000000a2
>
> offset 10426
>
> align 2^1 (2)
>
> reloff 0
>
> nreloc 0
>
> flags 0x80000408
>
> reserved1 0 (index into indirect symbol table)
>
> reserved2 6 (size of stubs)
>
> Section
>
> sectname __stub_helper
>
> segname __TEXT
>
> addr 0x000000000000295c
>
> size 0x000000000000011e
>
> offset 10588
>
> align 2^2 (4)
>
> reloff 0
>
> nreloc 0
>
> flags 0x80000400
>
> reserved1 0
>
> reserved2 0
>
> Section
>
> sectname __const
>
> segname __TEXT
>
> addr 0x0000000000002a7a
>
> size 0x000000000000000b
>
> offset 10874
>
> align 2^0 (1)
>
> reloff 0
>
> nreloc 0
>
> flags 0x00000000
>
> reserved1 0
>
> reserved2 0
>
> Section
>
> sectname __cstring
>
> segname __TEXT
>
> addr 0x0000000000002a85
>
> size 0x000000000000050a
>
> offset 10885
>
> align 2^0 (1)
>
> reloff 0
>
> nreloc 0
>
> flags 0x00000002
>
> reserved1 0
>
> reserved2 0
>
> Section
>
> sectname __unwind_info
>
> segname __TEXT
>
> addr 0x0000000000002f90
>
> size 0x0000000000000068
>
> offset 12176
>
> align 2^2 (4)
>
> reloff 0
>
> nreloc 0
>
> flags 0x00000000
>
> reserved1 0
>
> reserved2 0
>
> Load command 1
>
> cmd LC_SEGMENT_64
>
> cmdsize 472
>
> segname __DATA
>
> vmaddr 0x0000000000003000
>
> vmsize 0x0000000000001000
>
> fileoff 12288
>
> filesize 4096
>
> maxprot 0x00000007
>
> initprot 0x00000003
>
> nsects 5
>
> flags 0x0
>
> Section
>
> sectname __nl_symbol_ptr
>
> segname __DATA
>
> addr 0x0000000000003000
>
> size 0x0000000000000010
>
> offset 12288
>
> align 2^3 (8)
>
> reloff 0
>
> nreloc 0
>
> flags 0x00000006
>
> reserved1 27 (index into indirect symbol table)
>
> reserved2 0
>
> Section
>
> sectname __got
>
> segname __DATA
>
> addr 0x0000000000003010
>
> size 0x0000000000000008
>
> offset 12304
>
> align 2^3 (8)
>
> reloff 0
>
> nreloc 0
>
> flags 0x00000006
>
> reserved1 29 (index into indirect symbol table)
>
> reserved2 0
>
> Section
>
> sectname __la_symbol_ptr
>
> segname __DATA
>
> addr 0x0000000000003018
>
> size 0x00000000000000d8
>
> offset 12312
>
> align 2^3 (8)
>
> reloff 0
>
> nreloc 0
>
> flags 0x00000007
>
> reserved1 30 (index into indirect symbol table)
>
> reserved2 0
>
> Section
>
> sectname __common
>
> segname __DATA
>
> addr 0x00000000000030f0
>
> size 0x0000000000000008
>
> offset 0
>
> align 2^3 (8)
>
> reloff 0
>
> nreloc 0
>
> flags 0x00000001
>
> reserved1 0
>
> reserved2 0
>
> Section
>
> sectname __bss
>
> segname __DATA
>
> addr 0x0000000000003100
>
> size 0x0000000000000010
>
> offset 0
>
> align 2^4 (16)
>
> reloff 0
>
> nreloc 0
>
> flags 0x00000001
>
> reserved1 0
>
> reserved2 0
>
> Load command 2
>
> cmd LC_SEGMENT_64
>
> cmdsize 72
>
> segname __LINKEDIT
>
> vmaddr 0x0000000000004000
>
> vmsize 0x0000000000001000
>
> fileoff 16384
>
> filesize 3220
>
> maxprot 0x00000007
>
> initprot 0x00000001
>
> nsects 0
>
> flags 0x0
>
> Load command 3
>
> cmd LC_ID_DYLIB
>
> cmdsize 80
>
> name /Library/VirtualSmartCard/lib/libifdvpcd.0.dylib (offset 24)
>
> time stamp 1 Wed Dec 31 19:00:01 1969
>
> current version 1.0.0
>
> compatibility version 1.0.0
>
> Load command 4
>
> cmd LC_DYLD_INFO_ONLY
>
> cmdsize 48
>
> rebase_off 16384
>
> rebase_size 8
>
> bind_off 16392
>
> bind_size 56
>
> weak_bind_off 0
>
> weak_bind_size 0
>
> lazy_bind_off 16448
>
> lazy_bind_size 448
>
> export_off 16896
>
> export_size 512
>
> Load command 5
>
> cmd LC_SYMTAB
>
> cmdsize 24
>
> symoff 17472
>
> nsyms 67
>
> stroff 18772
>
> strsize 832
>
> Load command 6
>
> cmd LC_DYSYMTAB
>
> cmdsize 80
>
> ilocalsym 0
>
> nlocalsym 10
>
> iextdefsym 10
>
> nextdefsym 28
>
> iundefsym 38
>
> nundefsym 29
>
> tocoff 0
>
> ntoc 0
>
> modtaboff 0
>
> nmodtab 0
>
> extrefsymoff 0
>
> nextrefsyms 0
>
> indirectsymoff 18544
>
> nindirectsyms 57
>
> extreloff 0
>
> nextrel 0
>
> locreloff 0
>
> nlocrel 0
>
> Load command 7
>
> cmd LC_UUID
>
> cmdsize 24
>
> uuid 3FD1F524-F257-35C7-83B5-45E25FD27F3A
>
> Load command 8
>
> cmd LC_VERSION_MIN_MACOSX
>
> cmdsize 16
>
> version 10.12
>
> sdk 10.12
>
> Load command 9
>
> cmd LC_SOURCE_VERSION
>
> cmdsize 16
>
> version 0.0
>
> Load command 10
>
> cmd LC_LOAD_DYLIB
>
> cmdsize 56
>
> name /usr/lib/libSystem.B.dylib (offset 24)
>
> time stamp 2 Wed Dec 31 19:00:02 1969
>
> current version 1238.60.2
>
> compatibility version 1.0.0
>
> Load command 11
>
> cmd LC_FUNCTION_STARTS
>
> cmdsize 16
>
> dataoff 17408
>
> datasize 64
>
> Load command 12
>
> cmd LC_DATA_IN_CODE
>
> cmdsize 16
>
> dataoff 17472
>
> datasize 0
>
> On Mon, Nov 20, 2017 at 12:30 PM, Hemanth Kumar
> <hemanth.sahara at gmail.com> wrote:
>> Thanks Ludovic.
>>
>> So the use case flow i mentioned in my initial thread, does that look good?
>> Is there any .so file (serial reader driver sample) available to test this?
>>
>>
>> On Mon, Nov 20, 2017 at 11:05 AM, Ludovic Rousseau
>> <ludovic.rousseau at free.fr> wrote:
>>> Le 20/11/2017 à 16:56, Hemanth Kumar a écrit :
>>>>
>>>> What if I have no USB devices connected to my mac?
>>>> I am surprised how this type of scenario could not be resolved. Its
>>>> very much possible that the macbook is free of any usb devices. Most
>>>> of the organization restrict using any usb device.
>>>>
>>>> Is serial smart card readers not a possibility in mac osx?
>>>
>>>
>>> Yes. It is possible.
>>> Just use a /etc/reader.conf file.
>>>
>>> /etc/reader.conf has been removed in macOS 10.10 but re-introduced in 10.11
>>> (or something like that).
>>>
>>> Bye
>>>
>>> --
>>> Dr. Ludovic Rousseau
>>>
>>> _______________________________________________
>>> pcsclite-muscle mailing list
>>> pcsclite-muscle at lists.infradead.org
>>> http://lists.infradead.org/mailman/listinfo/pcsclite-muscle
More information about the pcsclite-muscle
mailing list