Skip to content

Not Working... I think... #6

@IsaiahJTurner

Description

@IsaiahJTurner

Maybe it's just my own stupidity but I keep getting this error when compiling it:
keychaindump.c:209:5: warning: 'DES_set_key' is deprecated: first deprecated in
OS X 10.7 [-Wdeprecated-declarations]
DES_set_key((C_Block *)ckey1, &ks1);
^
/usr/include/openssl/des.h:225:5: note: 'DES_set_key' declared here
int DES_set_key(const_DES_cblock *key,DES_key_schedule *schedule) DEPREC...
^
keychaindump.c:210:5: warning: 'DES_set_key' is deprecated: first deprecated in
OS X 10.7 [-Wdeprecated-declarations]
DES_set_key((C_Block *)ckey2, &ks2);
^
/usr/include/openssl/des.h:225:5: note: 'DES_set_key' declared here
int DES_set_key(const_DES_cblock *key,DES_key_schedule *schedule) DEPREC...
^
keychaindump.c:211:5: warning: 'DES_set_key' is deprecated: first deprecated in
OS X 10.7 [-Wdeprecated-declarations]
DES_set_key((C_Block *)ckey3, &ks3);
^
/usr/include/openssl/des.h:225:5: note: 'DES_set_key' declared here
int DES_set_key(const_DES_cblock *key,DES_key_schedule *schedule) DEPREC...
^
keychaindump.c:214:5: warning: 'DES_ede3_cbc_encrypt' is deprecated: first
deprecated in OS X 10.7 [-Wdeprecated-declarations]
DES_ede3_cbc_encrypt((unsigned char *)in, (unsigned char *)padded, l...
^
/usr/include/openssl/des.h:178:6: note: 'DES_ede3_cbc_encrypt' declared here
void DES_ede3_cbc_encrypt(const unsigned char *input,unsigned char *output,
^
keychaindump.c:449:9: warning: implicit declaration of function 'geteuid' is
invalid in C99 [-Wimplicit-function-declaration]
if (geteuid()) {
^
keychaindump.c:490:21: warning: using the result of an assignment as a condition
without parentheses [-Wparentheses]
...(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
...(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], buf...
^
==
6 warnings generated.

And when executing it it prompts for my password and then hangs... forever.

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