OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Licensed Materials - Property of IBM | 3 * Licensed Materials - Property of IBM |
4 * | 4 * |
5 * trousers - An open source TCG Software Stack | 5 * trousers - An open source TCG Software Stack |
6 * | 6 * |
7 * (C) Copyright International Business Machines Corp. 2004-2006 | 7 * (C) Copyright International Business Machines Corp. 2004-2006 |
8 * | 8 * |
9 */ | 9 */ |
10 | 10 |
| 11 #include <limits.h> |
11 #include <stdlib.h> | 12 #include <stdlib.h> |
12 #include <stdio.h> | 13 #include <stdio.h> |
13 #include <string.h> | 14 #include <string.h> |
14 #include <inttypes.h> | 15 #include <inttypes.h> |
15 #include <limits.h> | 16 #include <limits.h> |
16 | 17 |
17 #include "trousers/tss.h" | 18 #include "trousers/tss.h" |
18 #include "trousers/trousers.h" | 19 #include "trousers/trousers.h" |
19 #include "trousers_types.h" | 20 #include "trousers_types.h" |
20 #include "spi_utils.h" | 21 #include "spi_utils.h" |
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
569 free(symKey.data); | 570 free(symKey.data); |
570 return TSPERR(TSS_E_OUTOFMEMORY); | 571 return TSPERR(TSS_E_OUTOFMEMORY); |
571 } | 572 } |
572 | 573 |
573 free(symKey.data); | 574 free(symKey.data); |
574 memcpy(*prgbCredential, credBlob, credLen); | 575 memcpy(*prgbCredential, credBlob, credLen); |
575 *pulCredentialLength = credLen; | 576 *pulCredentialLength = credLen; |
576 | 577 |
577 return TSS_SUCCESS; | 578 return TSS_SUCCESS; |
578 } | 579 } |
OLD | NEW |