Skip to content

Commit

Permalink
Fix build for older versions of OpenSSL
Browse files Browse the repository at this point in the history
  • Loading branch information
kholia committed Apr 23, 2013
1 parent 0651a79 commit a8418b1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ JOHN_OBJS = \
hmacMD5_fmt.o hmacSHA1_fmt.o \
django_fmt.o \
truecrypt_fmt.o \
aix_ssha_fmt.o \
SKEY_fmt.o \
ssh_fmt.o ssh2john.o \
pfx_fmt.o pfx2john.o \
Expand Down
7 changes: 7 additions & 0 deletions src/aix_ssha_fmt_plug.c → src/aix_ssha_fmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
* modification, are permitted.
*/

#include <openssl/evp.h>

/* this check can be relaxed more */
#if OPENSSL_VERSION_NUMBER >= 0x10001000

#include <string.h>
#include <assert.h>
#include <errno.h>
Expand Down Expand Up @@ -328,3 +333,5 @@ struct fmt_main fmt_aixssha = {
cmp_exact
}
};

#endif
2 changes: 2 additions & 0 deletions src/john.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ extern struct fmt_main fmt_django;
extern struct fmt_main fmt_truecrypt;
extern struct fmt_main fmt_truecrypt_sha512;
extern struct fmt_main fmt_truecrypt_whirlpool;
extern struct fmt_main fmt_aixssha;
#endif

#ifdef __SSE2__
Expand Down Expand Up @@ -297,6 +298,7 @@ static void john_register_all(void)
john_register_one(&fmt_truecrypt);
john_register_one(&fmt_truecrypt_sha512);
john_register_one(&fmt_truecrypt_whirlpool);
john_register_one(&fmt_aixssha);
#endif

#ifdef __SSE2__
Expand Down

0 comments on commit a8418b1

Please sign in to comment.