[Slackbuilds-users] chntpw doesn't compile on -current
Sebastian Arcus
s.arcus at open-t.co.uk
Sun Apr 4 15:51:17 UTC 2021
Just a heads up that chntpw doesn't seem to compile any more against
-current. I've updated today to -current and tried it using the 14.2 SBo
scripts, and using the scripts from Ponce's GitHub repository. The error
message is below. Looking at the age of the code, I wouldn't be
surprised if it has become incompatible with current libraries somewhere
- but this is only me guessing.
</snip>
cc -c -DUSEOPENSSL -g -I. -I/usr/include -Wall chntpw.c
chntpw.c: In function ‘str_to_key’:
chntpw.c:145:22: error: ‘des_cblock’ undeclared (first use in this
function); did you mean ‘DES_cblock’?
145 | DES_set_odd_parity((des_cblock *)key);
| ^~~~~~~~~~
| DES_cblock
chntpw.c:145:22: note: each undeclared identifier is reported only once
for each function it appears in
chntpw.c:145:34: error: expected expression before ‘)’ token
145 | DES_set_odd_parity((des_cblock *)key);
| ^
chntpw.c: In function ‘E1’:
chntpw.c:190:3: error: unknown type name ‘des_key_schedule’; did you
mean ‘DES_key_schedule’?
190 | des_key_schedule ks;
| ^~~~~~~~~~~~~~~~
| DES_key_schedule
chntpw.c:191:3: error: unknown type name ‘des_cblock’; did you mean
‘DES_cblock’?
191 | des_cblock deskey;
| ^~~~~~~~~~
| DES_cblock
chntpw.c:193:16: warning: cast to pointer from integer of different size
[-Wint-to-pointer-cast]
193 | str_to_key(k,(uchar *)deskey);
| ^
chntpw.c:197:3: warning: implicit declaration of function ‘des_set_key’;
did you mean ‘DES_set_key’? [-Wimplicit-function-declaration]
197 | des_set_key((des_cblock *)deskey,ks);
| ^~~~~~~~~~~
| DES_set_key
chntpw.c:197:16: error: ‘des_cblock’ undeclared (first use in this
function); did you mean ‘DES_cblock’?
197 | des_set_key((des_cblock *)deskey,ks);
| ^~~~~~~~~~
| DES_cblock
chntpw.c:197:28: error: expected expression before ‘)’ token
197 | des_set_key((des_cblock *)deskey,ks);
| ^
chntpw.c:199:3: warning: implicit declaration of function
‘des_ecb_encrypt’; did you mean ‘DES_ecb_encrypt’?
[-Wimplicit-function-declaration]
199 | des_ecb_encrypt((des_cblock *)d,(des_cblock *)out, ks,
DES_ENCRYPT);
| ^~~~~~~~~~~~~~~
| DES_ecb_encrypt
chntpw.c:199:32: error: expected expression before ‘)’ token
199 | des_ecb_encrypt((des_cblock *)d,(des_cblock *)out, ks,
DES_ENCRYPT);
| ^
chntpw.c:190:20: warning: unused variable ‘ks’ [-Wunused-variable]
190 | des_key_schedule ks;
| ^~
chntpw.c: In function ‘change_pw’:
chntpw.c:507:4: error: unknown type name ‘des_key_schedule’; did you
mean ‘DES_key_schedule’?
507 | des_key_schedule ks1, ks2;
| ^~~~~~~~~~~~~~~~
| DES_key_schedule
chntpw.c:508:4: error: unknown type name ‘des_cblock’; did you mean
‘DES_cblock’?
508 | des_cblock deskey1, deskey2;
| ^~~~~~~~~~
| DES_cblock
chntpw.c:625:20: warning: cast to pointer from integer of different size
[-Wint-to-pointer-cast]
625 | sid_to_key1(rid,(unsigned char *)deskey1);
| ^
chntpw.c:626:17: error: ‘des_cblock’ undeclared (first use in this
function); did you mean ‘DES_cblock’?
626 | des_set_key((des_cblock *)deskey1,ks1);
| ^~~~~~~~~~
| DES_cblock
chntpw.c:626:29: error: expected expression before ‘)’ token
626 | des_set_key((des_cblock *)deskey1,ks1);
| ^
chntpw.c:627:20: warning: cast to pointer from integer of different size
[-Wint-to-pointer-cast]
627 | sid_to_key2(rid,(unsigned char *)deskey2);
| ^
chntpw.c:628:29: error: expected expression before ‘)’ token
628 | des_set_key((des_cblock *)deskey2,ks2);
| ^
chntpw.c:631:33: error: expected expression before ‘)’ token
631 | des_ecb_encrypt((des_cblock *)(vp+ntpw_offs ),
| ^
chntpw.c:632:19: error: expected expression before ‘)’ token
632 | (des_cblock *)md4, ks1, DES_DECRYPT);
| ^
chntpw.c:633:33: error: expected expression before ‘)’ token
633 | des_ecb_encrypt((des_cblock *)(vp+ntpw_offs + 8),
| ^
chntpw.c:634:19: error: expected expression before ‘)’ token
634 | (des_cblock *)&md4[8], ks2, DES_DECRYPT);
| ^
chntpw.c:637:33: error: expected expression before ‘)’ token
637 | des_ecb_encrypt((des_cblock *)(vp+lmpw_offs),
| ^
chntpw.c:638:19: error: expected expression before ‘)’ token
638 | (des_cblock *)lanman, ks1, DES_DECRYPT);
| ^
chntpw.c:639:33: error: expected expression before ‘)’ token
639 | des_ecb_encrypt((des_cblock *)(vp+lmpw_offs + 8),
| ^
chntpw.c:640:19: error: expected expression before ‘)’ token
640 | (des_cblock *)&lanman[8], ks2, DES_DECRYPT);
| ^
chntpw.c:708:35: error: expected expression before ‘)’ token
708 | des_ecb_encrypt((des_cblock *)digest,
| ^
chntpw.c:710:35: error: expected expression before ‘)’ token
710 | des_ecb_encrypt((des_cblock *)(digest+8),
| ^
chntpw.c:711:21: error: expected expression before ‘)’ token
711 | (des_cblock *)&despw[8], ks2, DES_ENCRYPT);
| ^
chntpw.c:713:35: error: expected expression before ‘)’ token
713 | des_ecb_encrypt((des_cblock *)lanman,
| ^
chntpw.c:715:35: error: expected expression before ‘)’ token
715 | des_ecb_encrypt((des_cblock *)(lanman+8),
| ^
chntpw.c:716:21: error: expected expression before ‘)’ token
716 | (des_cblock *)&newlandes[8], ks2, DES_ENCRYPT);
| ^
chntpw.c:507:26: warning: unused variable ‘ks2’ [-Wunused-variable]
507 | des_key_schedule ks1, ks2;
| ^~~
chntpw.c:507:21: warning: unused variable ‘ks1’ [-Wunused-variable]
507 | des_key_schedule ks1, ks2;
| ^~~
make: *** [Makefile:51: chntpw.o] Error 1
Failures:
chntpw: chntpw.SlackBuild return non-zero
More information about the SlackBuilds-users
mailing list