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

Issue 2694006: Make all TPM command functions return TPM_SUCCESS or the TPM error code. (Closed)

Created:
10 years, 6 months ago by Luigi Semenzato
Modified:
9 years, 7 months ago
CC:
chromium-os-reviews_chromium.org
Base URL:
ssh://git@chromiumos-git/tpm_lite.git
Visibility:
Public.

Description

Make all TPM command functions return TPM_SUCCESS or the TPM error code.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -70 lines) Patch
M src/tlcl/tlcl.h View 1 chunk +29 lines, -25 lines 0 comments Download
M src/tlcl/tlcl.c View 4 chunks +25 lines, -45 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Luigi Semenzato
You may be interested in a quick commit of this one---otherwise I can ask Gaurav. ...
10 years, 6 months ago (2010-06-07 22:35:20 UTC) #1
Randall Spangler
LGTM. Where are the TPM error codes defined?
10 years, 6 months ago (2010-06-08 01:54:05 UTC) #2
Luigi Semenzato
Normally in /usr/include/tss/tpm_error.h. We copied the ones of interest to vboot_firmware/lib/include/tss_constants.h. If you don't have ...
10 years, 6 months ago (2010-06-08 15:01:44 UTC) #3
Randall Spangler
10 years, 6 months ago (2010-06-08 16:24:53 UTC) #4
Thanks for the explanation.

Can you add a comment to that effect in tlcl.h?  Something like

/* The subset of TPM error codes relevant to verified boot (TPM_SUCCESS,
etc.) are in tss_constants.h.
 * A full list of TPM error codes are in /usr/include/tss/tpm_error.h, from
the trousers package. */

Thanks,
    Randall

On Tue, Jun 8, 2010 at 8:01 AM, Luigi Semenzato <semenzato@chromium.org>wrote:

> Normally in /usr/include/tss/tpm_error.h.  We copied the ones of
> interest to vboot_firmware/lib/include/tss_constants.h.
>
> If you don't have that header file, the fastest way to get it is
> apt-get install trousers on your host.
>
> On Mon, Jun 7, 2010 at 6:54 PM,  <rspangler@chromium.org> wrote:
> > LGTM.
> >
> > Where are the TPM error codes defined?
> >
> >
> > http://codereview.chromium.org/2694006/show
> >
>

Powered by Google App Engine
This is Rietveld 408576698