~mrooney/ecryptfs/nautilus-integration

« back to all changes in this revision

Viewing changes to src/utils/ecryptfs_generate_tpm_key.c

  • Committer: Dustin Kirkland
  • Date: 2009-02-03 08:18:53 UTC
  • Revision ID: git-v1:b0090ac8d4f626339d7f8ca5681934d5e68dac3e
make most of the code compatible with -Werror

Thanks to Michal Hlavinka for the patch.  This has been on my
to-do list for a while now!

Patch retrieved from:
https://bugzilla.redhat.com/show_bug.cgi?id=479762

Signed-off-by: Dustin Kirkland <kirkland@canonical.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
231
231
        }
232
232
        printf("Success: Key created bound to:\n");
233
233
        for (i = 0; i < numPcrsSelected; i++) {
234
 
                uuidString = util_bytes_to_string(pcrsSelectedValues[i], 20);
 
234
                uuidString = (unsigned char *) 
 
235
                              util_bytes_to_string((char *)
 
236
                                                   pcrsSelectedValues[i], 20);
235
237
                if (uuidString == NULL) {
236
238
                        PRINT_ERR("malloc of 41 bytes failed");
237
239
                        Tspi_Context_Close(hContext);
242
244
                free(uuidString);
243
245
                Tspi_Context_FreeMemory(hContext, pcrsSelectedValues[i]);
244
246
        }
245
 
        uuidString = util_bytes_to_string((BYTE*)uuid, 16);
 
247
        uuidString = (BYTE *)util_bytes_to_string((char *)uuid, 16);
246
248
        if (uuidString == NULL) {
247
249
                PRINT_ERR("malloc of 33 bytes failed");
248
250
                Tspi_Context_Close(hContext);