Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Issue 6823012: cryptohome: Add stub functions to query PKCS11 set up status (Closed)

Created:
9 years, 8 months ago by kmixter1
Modified:
9 years, 7 months ago
CC:
chromium-os-reviews_chromium.org, Will Drewry
Visibility:
Public.

Description

cryptohome: Add stub functions to query PKCS11 set up status Change-Id: I9fc410ef8c39ae82f6764195b9cca21f0466d278 BUG=chromium-os:12296 TEST=BVTs plus: localhost ~ # dbus-send --system --dest=org.chromium.Cryptohome --type=method_call --print-reply /org/chromium/Cryptohome org.chromium.CryptohomeInterface.Pkcs11GetTpmTokenInfo method return sender=:1.14 -> dest=:1.99 reply_serial=2 string "TPM" string "111111" localhost ~ # dbus-send --system --dest=org.chromium.Cryptohome --type=method_call --print-reply /org/chromium/Cryptohome org.chromium.CryptohomeInterface.Pkcs11IsTpmTokenReady method return sender=:1.14 -> dest=:1.100 reply_serial=2 boolean true Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=eedaa00

Patch Set 1 #

Total comments: 19

Patch Set 2 : Respond to gspencer #

Total comments: 4

Patch Set 3 : Improve function name to be more descriptive #

Patch Set 4 : Update comment #

Patch Set 5 : word wrap #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -5 lines) Patch
M SConstruct View 1 chunk +1 line, -0 lines 0 comments Download
M cryptohome.xml View 1 2 2 chunks +12 lines, -1 line 0 comments Download
M interface.h View 1 2 2 chunks +8 lines, -1 line 0 comments Download
M interface.cc View 1 2 2 chunks +12 lines, -1 line 0 comments Download
A pkcs11_init.h View 1 2 3 4 1 chunk +32 lines, -0 lines 0 comments Download
A pkcs11_init.cc View 1 2 3 4 1 chunk +36 lines, -0 lines 0 comments Download
M service.h View 1 2 3 4 chunks +12 lines, -1 line 0 comments Download
M service.cc View 1 2 3 chunks +17 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
kmixter1
9 years, 8 months ago (2011-04-08 19:15:00 UTC) #1
Greg Spencer (Chromium)
http://codereview.chromium.org/6823012/diff/1/cryptohome.xml File cryptohome.xml (right): http://codereview.chromium.org/6823012/diff/1/cryptohome.xml#newcode2 cryptohome.xml:2: <!-- COPYRIGHT HERE Doesn't this have to actually have ...
9 years, 8 months ago (2011-04-08 20:21:45 UTC) #2
kmixter1
Responded to all comments. http://codereview.chromium.org/6823012/diff/1/cryptohome.xml File cryptohome.xml (right): http://codereview.chromium.org/6823012/diff/1/cryptohome.xml#newcode2 cryptohome.xml:2: <!-- COPYRIGHT HERE On 2011/04/08 ...
9 years, 8 months ago (2011-04-08 21:04:14 UTC) #3
kmixter1
9 years, 8 months ago (2011-04-08 21:04:30 UTC) #4
gauravsh
lgtm (once you push this, let me know - I will rebase my local copy ...
9 years, 8 months ago (2011-04-08 21:37:35 UTC) #5
Greg Spencer (Chromium)
LGTM
9 years, 8 months ago (2011-04-08 21:46:51 UTC) #6
kmixter1
9 years, 8 months ago (2011-04-08 21:56:39 UTC) #7
pushing...

I also updated Pkcs11IsReady to be Pkcs11IsTpmTokenReady to be more descriptive.
 Now adding these functions to cros/chromeos_cryptohome.h....

http://codereview.chromium.org/6823012/diff/1/cryptohome.xml
File cryptohome.xml (right):

http://codereview.chromium.org/6823012/diff/1/cryptohome.xml#newcode109
cryptohome.xml:109: <arg type="s" name="so_pin" direction="out" />
On 2011/04/08 21:37:35, gauravsh wrote:
> update testing instructions in the issue description since you removed this.
Done.

http://codereview.chromium.org/6823012/diff/4002/service.cc
File service.cc (right):

http://codereview.chromium.org/6823012/diff/4002/service.cc#newcode84
service.cc:84: default_pkcs11_init_(new Pkcs11Init()),
On 2011/04/08 21:37:35, gauravsh wrote:
> pkcs11_init_ is just a helper pointer to avoid saying
default_pkcs11_init.get()
> each time you need to use Pkcs11Init? 

Just mimicking tpm_init_ here.  I suspect Fes/Will's intention was to make it
easy to gmock out these via dependency injection, but no one is doing that in
either case yet.

http://codereview.chromium.org/6823012/diff/4002/service.h
File service.h (right):

http://codereview.chromium.org/6823012/diff/4002/service.h#newcode152
service.h:152: // Returns the label of the TPM token along with its SO and user
PINs.
On 2011/04/08 21:37:35, gauravsh wrote:
> update comment - you only send the user PINs now.

Done.

Powered by Google App Engine
This is Rietveld 408576698