9e84dea72d
use new libgcrypt ok maintainer Michael Schubert <michael at schubert.cx>
22 lines
886 B
Plaintext
22 lines
886 B
Plaintext
$OpenBSD: patch-wmbiff_Pop3Client_c,v 1.1 2004/05/08 06:50:10 sturm Exp $
|
|
--- wmbiff/Pop3Client.c.orig 2004-03-28 01:44:11.000000000 +0100
|
|
+++ wmbiff/Pop3Client.c 2004-04-25 11:21:12.000000000 +0200
|
|
@@ -280,7 +280,7 @@ static FILE *authenticate_md5(Pop3 pc, F
|
|
strcat(buf, " ");
|
|
|
|
|
|
- gmh = gcry_md_open(GCRY_MD_MD5, GCRY_MD_FLAG_HMAC);
|
|
+ gcry_md_open(&gmh, GCRY_MD_MD5, GCRY_MD_FLAG_HMAC);
|
|
gcry_md_setkey(gmh, PCU.password, strlen(PCU.password));
|
|
gcry_md_write(gmh, (unsigned char *) buf2, strlen(buf2));
|
|
gcry_md_final(gmh);
|
|
@@ -322,7 +322,7 @@ static FILE *authenticate_apop(Pop3 pc,
|
|
POP_DM(pc, DEBUG_INFO, "APOP challenge: %s\n", apop_str);
|
|
strcat(apop_str, PCU.password);
|
|
|
|
- gmh = gcry_md_open(GCRY_MD_MD5, 0);
|
|
+ gcry_md_open(&gmh, GCRY_MD_MD5, 0);
|
|
gcry_md_write(gmh, (unsigned char *) apop_str, strlen(apop_str));
|
|
gcry_md_final(gmh);
|
|
md5 = gcry_md_read(gmh, 0);
|