Overview
Comment: | ChromeOS: Restructured initialization so that the Google PCSC Smartcard Manager App ID can be found at runtime |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
16b40cb47e9e13b9fa704089a920df2d |
User & Date: | rkeene on 2016-02-15 06:39:29 |
Other Links: | manifest | tags |
Context
2016-02-15
| ||
06:43 | ChromeOS: Fixed race with specifying the Google Smartcard Manager App ID check-in: c53eda4523 user: rkeene tags: trunk | |
06:39 | ChromeOS: Restructured initialization so that the Google PCSC Smartcard Manager App ID can be found at runtime check-in: 16b40cb47e user: rkeene tags: trunk | |
06:20 | ChromeOS: Pass PIN prompt back to the user (unused for now) check-in: b97c4963e4 user: rkeene tags: trunk | |
Changes
Modified build/chrome/build-deps from [5999de848a] to [2732a78124].
︙ | |||
234 235 236 237 238 239 240 | 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 | - + | cat << \_EOF_ > "${instdir}/include/PCSC/pcsc-nacl.h" #ifndef PCSC_NACL_H #define PCSC_NACL_H 1 #ifdef __cplusplus #include <ppapi/cpp/core.h> #include <ppapi/cpp/instance.h> |
︙ | |||
308 309 310 311 312 313 314 | 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 | - + + + + + + + + + - + | #include "pcsc_nacl_global.h" #include "dom_requests_manager.h" #include "pcsc_nacl.h" static DomRequestsManager *pcscNaClDRM = NULL; |
︙ |
Modified build/chrome/cackey-chrome-init.cc from [7e38a33c28] to [7c0a1742a0].
︙ | |||
15 16 17 18 19 20 21 | 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | - + - - - + + - + + + + + + + + + | #include <ppapi/cpp/var_array_buffer.h> #include "pcsc-nacl.h" #include "cackey-chrome.h" class CACKeyInstance : public pp::Instance { private: |
︙ |
Modified build/chrome/cackey.js from [f054a4b4b3] to [95eeb58033].
︙ | |||
86 87 88 89 90 91 92 93 94 95 96 97 98 99 | 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 | + + + + | if (messageEvent.data.target != "cackey") { return; } console.log("START MESSAGE"); console.log(messageEvent.data); console.log("END MESSAGE"); if (messageEvent.data.id == null) { return; } chromeCallback = cackeyOutstandingCallbacks[messageEvent.data.id]; if (chromeCallback == null) { console.log("[cackey] Discarding outdated message"); return; |
︙ | |||
291 292 293 294 295 296 297 298 299 300 301 302 303 304 | 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 | + + + + + + + + + + + + + + + + | console.log("[cackey] Loaded CACKey PNaCl Module"); /* Register listeners with Chrome */ if (chrome.certificateProvider) { chrome.certificateProvider.onCertificatesRequested.addListener(cackeyListCertificates); chrome.certificateProvider.onSignDigestRequested.addListener(cackeySignMessage); } /* * Initialize CACKey with the correct handle to talk to the Google Smartcard Manager App */ cackeyHandle.postMessage( { "target": "cackey", "command": "init" } ); /* * Start the Google PCSC Interface */ new GoogleSmartCard.PcscNacl(cackeyHandle); return; } /* * Initialize CACKey and the PCSC library from Google */ |
︙ | |||
333 334 335 336 337 338 339 | 353 354 355 356 357 358 359 360 361 362 363 364 365 366 | - - - - - | elementEmbed.id = "cackeyModule"; elementEmbed.addEventListener('error', function(messageEvent) { console.error("Error loading CACKey PNaCl Module: " + messageEvent.data); }, true); elementEmbed.addEventListener('load', cackeyInitLoaded, true); elementEmbed.addEventListener('message', cackeyMessageIncoming, true); cackeyHandle = elementEmbed; |