Skip to content

Instantly share code, notes, and snippets.

@aurora
Created December 8, 2010 21:57
Show Gist options
  • Save aurora/733990 to your computer and use it in GitHub Desktop.
Save aurora/733990 to your computer and use it in GitHub Desktop.
Compiling apg on OSX
Compiling apg on OSX
====================
Version: 2.2.3
http://www.adel.nursat.kz/apg/
Makefile
--------
@@ -13,7 +13,7 @@
#
# You should comment the line below ('LIBS= -lcrypt')for QNX RTP
# 6.1.0, OpenBSD 2.8 and above, WIN32 (+MinGW)
-LIBS = -lcrypt
+# LIBS = -lcrypt
LIBM = -lm
# Use lines below for cygwin
# LIBS =
apg.c
-----
@@ -571,7 +571,7 @@
char * seq;
UINT32 prom[2] = { 0L, 0L };
UINT32 sdres = 0L;
- printf ("\nPlease enter some random data (only first %d are significant)\n", sizeof(prom));
+ printf ("\nPlease enter some random data (only first %ld are significant)\n", sizeof(prom));
seq = (char *)getpass("(eg. your old password):>");
if (strlen(seq) < sizeof(prom))
(void)memcpy((void *)&prom[0], (void *)seq, (int)strlen(seq));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment