NaCl libpcsc

Check-in [ee9e97aeea]
Login
Overview
SHA1:ee9e97aeea349b791bb20c67ae3235ee23beb03d
Date: 2016-04-14 18:35:54
User: rkeene
Comment:Added logging handler to automatically created element
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2016-04-14
19:13
[a31210a9e4] Typo, extra close paren (user: rkeene, tags: trunk)
18:35
[ee9e97aeea] Added logging handler to automatically created element (user: rkeene, tags: trunk)
18:28
[1708fe41fa] Updated to remove logging messages that could not be parsed (user: rkeene, tags: trunk)
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Modified build/assemble-source-from-google.sh from [00f4c4f3b3] to [34125b3144].

    37     37   		cp third_party/pcsc-lite/src-*/src/PCSC/*.h "${instdir}/include/PCSC" || exit 1
    38     38   
    39     39   		# Update some of the JavaScript files to provide a better interface
    40     40   		## Create a message channel if one is not present
    41     41   		sed -i '
    42     42   			s@naclModuleMessageChannel.*opt_serverAppId@&, opt_naclElement@
    43     43   			/opt_naclElement/ a \
    44         -if (naclModuleMessageChannel == null && opt_naclElement != null) { naclModuleMessageChannel = new GoogleSmartCard.NaclModuleMessageChannel(opt_naclElement, GoogleSmartCard.Logging.getScopedLogger("NaclModule<>")); }
           44  +if (naclModuleMessageChannel == null && opt_naclElement != null) { var logger = new GoogleSmartCard.Logging.getScopedLogger("NaclModule<>"); naclModuleMessageChannel = new GoogleSmartCard.NaclModuleMessageChannel(opt_naclElement, logger)); new GoogleSmartCard.NaclModuleLogMessagesReceiver(naclModuleMessageChannel, logger); }
    45     45   		' third_party/pcsc-lite/naclport/cpp_client/src/nacl-client-backend.js
    46     46   
    47     47   		## Do not log errors parsing messages -- not all of them are intended for you !
    48     48   		sed -i '
    49     49   			/if (!typedMessage)/,/}$/ d
    50     50   			/parseTypedMessage/ a \
    51     51   if (!typedMessage) { return; }