git-svn: trunk@3567
Tomasz Kojm authored on 2008/01/31 21:16:31... | ... |
@@ -1183,7 +1183,7 @@ int downloadmanager(const struct cfgstruct *copt, const struct optstruct *opt, c |
1183 | 1183 |
time(&currtime); |
1184 | 1184 |
logg("ClamAV update process started at %s", ctime(&currtime)); |
1185 | 1185 |
|
1186 |
-#ifndef HAVE_GMP |
|
1186 |
+#ifndef HAVE_LIBGMP |
|
1187 | 1187 |
logg("SECURITY WARNING: NO SUPPORT FOR DIGITAL SIGNATURES\n"); |
1188 | 1188 |
logg("See the FAQ at http://www.clamav.net/support/faq for an explanation.\n"); |
1189 | 1189 |
#endif |
... | ... |
@@ -434,7 +434,7 @@ static int cli_cvdverify(FILE *fs, struct cl_cvd *cvdpt, unsigned int cld) |
434 | 434 |
return CL_EMD5; |
435 | 435 |
} |
436 | 436 |
|
437 |
-#ifdef HAVE_GMP |
|
437 |
+#ifdef HAVE_LIBGMP |
|
438 | 438 |
if(cli_versig(md5, cvd->dsig)) { |
439 | 439 |
cli_dbgmsg("cli_cvdverify: Digital signature verification error\n"); |
440 | 440 |
free(md5); |
... | ... |
@@ -23,11 +23,11 @@ |
23 | 23 |
#include "clamav-config.h" |
24 | 24 |
#endif |
25 | 25 |
|
26 |
-#ifdef HAVE_GMP |
|
26 |
+#ifdef HAVE_LIBGMP |
|
27 | 27 |
#include <gmp.h> |
28 | 28 |
|
29 | 29 |
int cli_versig(const char *md5, const char *dsig); |
30 | 30 |
unsigned char *cli_decodesig(const char *sig, unsigned int plen, mpz_t e, mpz_t n); |
31 | 31 |
|
32 |
-#endif /* HAVE_GMP */ |
|
32 |
+#endif /* HAVE_LIBGMP */ |
|
33 | 33 |
#endif |
... | ... |
@@ -43,14 +43,14 @@ |
43 | 43 |
|
44 | 44 |
#include "zlib.h" |
45 | 45 |
|
46 |
-#ifdef HAVE_GMP |
|
46 |
+#ifdef HAVE_LIBGMP |
|
47 | 47 |
#include "libclamav/dsig.h" |
48 | 48 |
|
49 | 49 |
#define PSS_NSTR "14783905874077467090262228516557917570254599638376203532031989214105552847269687489771975792123442185817287694951949800908791527542017115600501303394778618535864845235700041590056318230102449612217458549016089313306591388590790796515819654102320725712300822356348724011232654837503241736177907784198700834440681124727060540035754699658105895050096576226753008596881698828185652424901921668758326578462003247906470982092298106789657211905488986281078346361469524484829559560886227198091995498440676639639830463593211386055065360288422394053998134458623712540683294034953818412458362198117811990006021989844180721010947" |
50 | 50 |
#define PSS_ESTR "100002053" |
51 | 51 |
#define PSS_NBITS 2048 |
52 | 52 |
#define PSS_DIGEST_LENGTH 32 |
53 |
-#endif /* HAVE_GMP */ |
|
53 |
+#endif /* HAVE_LIBGMP */ |
|
54 | 54 |
|
55 | 55 |
struct cdiff_node { |
56 | 56 |
unsigned int lineno; |
... | ... |
@@ -766,7 +766,7 @@ static int cdiff_execute(const char *cmdstr, struct cdiff_ctx *ctx) |
766 | 766 |
return 0; |
767 | 767 |
} |
768 | 768 |
|
769 |
-#ifdef HAVE_GMP |
|
769 |
+#ifdef HAVE_LIBGMP |
|
770 | 770 |
static void pss_mgf(unsigned char *in, unsigned int inlen, unsigned char *out, unsigned int outlen) |
771 | 771 |
{ |
772 | 772 |
SHA256_CTX ctx; |
... | ... |
@@ -864,7 +864,7 @@ static int pss_versig(const unsigned char *sha256, const char *dsig) |
864 | 864 |
|
865 | 865 |
return 0; |
866 | 866 |
} |
867 |
-#endif /* HAVE_GMP */ |
|
867 |
+#endif /* HAVE_LIBGMP */ |
|
868 | 868 |
|
869 | 869 |
int cdiff_apply(int fd, unsigned short mode) |
870 | 870 |
{ |
... | ... |
@@ -877,7 +877,7 @@ int cdiff_apply(int fd, unsigned short mode) |
877 | 877 |
int end, i, n; |
878 | 878 |
struct stat sb; |
879 | 879 |
int desc; |
880 |
-#ifdef HAVE_GMP |
|
880 |
+#ifdef HAVE_LIBGMP |
|
881 | 881 |
SHA256_CTX sha256ctx; |
882 | 882 |
unsigned char digest[32]; |
883 | 883 |
int sum, bread; |
... | ... |
@@ -938,7 +938,7 @@ int cdiff_apply(int fd, unsigned short mode) |
938 | 938 |
return -1; |
939 | 939 |
} |
940 | 940 |
|
941 |
-#ifdef HAVE_GMP |
|
941 |
+#ifdef HAVE_LIBGMP |
|
942 | 942 |
sha256_init(&sha256ctx); |
943 | 943 |
sum = 0; |
944 | 944 |
while((bread = read(desc, buff, FILEBUFF)) > 0) { |
... | ... |
@@ -1009,7 +1009,7 @@ static int cvdinfo(struct optstruct *opt) |
1009 | 1009 |
mprintf("MD5: %s\n", cvd->md5); |
1010 | 1010 |
mprintf("Digital signature: %s\n", cvd->dsig); |
1011 | 1011 |
|
1012 |
-#ifndef HAVE_GMP |
|
1012 |
+#ifndef HAVE_LIBGMP |
|
1013 | 1013 |
mprintf("^Digital signature support not compiled in.\n"); |
1014 | 1014 |
#endif |
1015 | 1015 |
|