Rename function TPM_SBuffer_Set to TPM_Sbuffer_Set

Minor typo in function name

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Acked-by: Corey Bryant <coreyb@linux.vnet.ibm.com>
This commit is contained in:
Stefan Berger 2013-12-20 11:20:20 -05:00 committed by Corey Bryant
parent 93a6459a8e
commit ebcefd0548
3 changed files with 6 additions and 6 deletions

View File

@ -2486,7 +2486,7 @@ TPM_RESULT TPM_ProcessA(unsigned char **response,
/* set the sbuffer from the response parameters */
if (rc == 0) {
rc = TPM_SBuffer_Set(&responseSbuffer,
rc = TPM_Sbuffer_Set(&responseSbuffer,
*response,
*response_size,
*response_total);

View File

@ -152,7 +152,7 @@ void TPM_Sbuffer_GetAll(TPM_STORE_BUFFER *sbuffer,
return;
}
/* TPM_SBuffer_Set() creates a TPM_STORE_BUFFER from
/* TPM_Sbuffer_Set() creates a TPM_STORE_BUFFER from
'buffer' - pointer to a buffer that was allocated (can be NULL)
@ -162,7 +162,7 @@ void TPM_Sbuffer_GetAll(TPM_STORE_BUFFER *sbuffer,
greater than total.
*/
TPM_RESULT TPM_SBuffer_Set(TPM_STORE_BUFFER *sbuffer,
TPM_RESULT TPM_Sbuffer_Set(TPM_STORE_BUFFER *sbuffer,
unsigned char *buffer,
const uint32_t length,
const uint32_t total)
@ -171,7 +171,7 @@ TPM_RESULT TPM_SBuffer_Set(TPM_STORE_BUFFER *sbuffer,
if (rc == 0) {
if (sbuffer == NULL) {
printf("TPM_SBuffer_Set: Error (fatal), sbuffer is NULL\n");
printf("TPM_Sbuffer_Set: Error (fatal), sbuffer is NULL\n");
rc = TPM_FAIL;
}
}
@ -179,7 +179,7 @@ TPM_RESULT TPM_SBuffer_Set(TPM_STORE_BUFFER *sbuffer,
if (buffer != NULL) {
if (rc == 0) {
if (length > total) {
printf("TPM_SBuffer_Set: Error (fatal), length %u > total %u\n",
printf("TPM_Sbuffer_Set: Error (fatal), length %u > total %u\n",
length, total);
rc = TPM_FAIL;
}

View File

@ -59,7 +59,7 @@ void TPM_Sbuffer_GetAll(TPM_STORE_BUFFER *sbuffer,
unsigned char **buffer,
uint32_t *length,
uint32_t *total);
TPM_RESULT TPM_SBuffer_Set(TPM_STORE_BUFFER *sbuffer,
TPM_RESULT TPM_Sbuffer_Set(TPM_STORE_BUFFER *sbuffer,
unsigned char *buffer,
const uint32_t length,
const uint32_t total);