1 Reply Latest reply on Jul 27, 2010 8:24 AM by 843851

    card_connect returns 0x80100009

    843851
      Hi folks,

      I am trying to use "card_connect" function exported by "GlobalPlatform.dll" in my code (VC++) and getting the error 0x80100009.

      establish_context(&cardContext)

                readerName     =     "OMNIKEY CardMan 2020 0";

                rVal     =     card_connect(cardContext,
                                         readerName,
                                         &cardInfo,
                                         OPGP_CARD_PROTOCOL_T0|OPGP_CARD_PROTOCOL_T1); //returns 0x80100009

      Now if i try the same thing with GPShell.exe it works fine.


      mode_201
      enable_trace
      establish_context
      card_connect -reader "OMNIKEY CardMan 2020 0"
      reader name OMNIKEY CardMan 2020 0
      select -AID a0000000030000
      Command --> 00A4040007A0000000030000
      Wrapped command --> 00A4040007A0000000030000
      Response <-- 6F198408A000000003000000A50D9F6E0640513232201D9F6501FF9000
      open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4
      f -enc_key 404142434445464748494a4b4c4d4e4f // Open secure channel
      Command --> 805000000818F83D50C2AC8DDB00
      Wrapped command --> 805000000818F83D50C2AC8DDB00
      Response <-- 00004125000103905054FF011BA63739E660F93454B2A23BABB713C89000
      Command --> 8482010010069C5235886BEC7FE79C8A1ACC1CD44E
      Wrapped command --> 8482010010069C5235886BEC7FE79C8A1ACC1CD44E
      Response <-- 9000
      card_disconnect
      release_context

      Can anybody help me in finding the problem.

      Thanks
      Pankaj