Skip to content

Not working in macOS Big Sur. 7 errors in keychaindump.c #14

@abhishek-bodapati

Description

@abhishek-bodapati
keychaindump.c:209:27: error: expected expression
    DES_set_key((C_Block *)ckey1, &ks1);
                          ^
keychaindump.c:209:18: error: use of undeclared identifier 'C_Block'; did you mean 'clock'?
    DES_set_key((C_Block *)ckey1, &ks1);
                 ^~~~~~~
                 clock
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/time.h:109:9: note: 'clock' declared here
clock_t clock(void) __DARWIN_ALIAS(clock);
        ^
keychaindump.c:210:27: error: expected expression
    DES_set_key((C_Block *)ckey2, &ks2);
                          ^
keychaindump.c:210:18: error: use of undeclared identifier 'C_Block'; did you mean 'clock'?
    DES_set_key((C_Block *)ckey2, &ks2);
                 ^~~~~~~
                 clock
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/time.h:109:9: note: 'clock' declared here
clock_t clock(void) __DARWIN_ALIAS(clock);
        ^
keychaindump.c:211:27: error: expected expression
    DES_set_key((C_Block *)ckey3, &ks3);
                          ^
keychaindump.c:211:18: error: use of undeclared identifier 'C_Block'; did you mean 'clock'?
    DES_set_key((C_Block *)ckey3, &ks3);
                 ^~~~~~~
                 clock
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/time.h:109:9: note: 'clock' declared here
clock_t clock(void) __DARWIN_ALIAS(clock);
        ^
keychaindump.c:449:9: error: implicit declaration of function 'geteuid' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    if (geteuid()) {
        ^
keychaindump.c:449:9: note: did you mean 'getauid'?
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/bsm/audit.h:353:9: note: 'getauid' declared here
int     getauid(au_id_t *);
        ^
keychaindump.c:490:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
        if (key_len = dump_wrapping_key(key, g_master_candidates[i], buffer, sz)) {
            ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
keychaindump.c:490:21: note: place parentheses around the assignment to silence this warning
        if (key_len = dump_wrapping_key(key, g_master_candidates[i], buffer, sz)) {
                    ^
            (                                                                   )
keychaindump.c:490:21: note: use '==' to turn this assignment into an equality comparison
        if (key_len = dump_wrapping_key(key, g_master_candidates[i], buffer, sz)) {
                    ^
                    ==
1 warning and 7 errors generated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions