🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #280636

Re: Ping Zax / merkinmuffley - mixmaster4096

#280636
From: Anonymous
Date: Sun, 06 Mar 2016 21:24
82 lines
3356 bytes
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
> 
> On Sun,  6 Mar 2016 15:50:27 +0100 (CET), Nomen Nescio wrote in
> Message-Id: <a759f89bd7e7aad1f7a11e0a3694f1d6@dizum.com>:
> 
> 
>>
>>   Correction for 'Key is expired:' error.  This should stop the new
>> key generation 5 day hiatus.
>>
>> https://github.com/merkinmuffley/mixmaster4096/archive/master.zip
>> The code in \mixmaster4096-master\Src\crypto.c needs correcting:
>>
>> Line 394 needs to be changed from
>>
>>       fprintf(f, "%s\nCreated: %s\n", begin_key, line);
>> to
>>       fprintf(f, "%s\ncreated: %s\n", begin_key, line);
>>
>> and line 404 needs to be changed from
>>
>>     fprintf(f, "Expires: %s\n", line);
>> to
>>     fprintf(f, "expires: %s\n", line);
>>
>> Delete the pre-compiled file crypto.o before compiling.
> 
> Hi,
> 
> Please can you offer some explanation as to how this fixes the key
> expiration issue?
> 
> The Created and Expired lines are read in keymgt.c using this clause:-
> 
> if (strileft(line, "created:")) {
> created = parse_yearmonthday(strchr(line, ':')+1);
> if (created == -1)
> created = 0;
> } else if (strileft(line, "expires:")) {
> expires = parse_yearmonthday(strchr(line, ':')+1);
> if (expires == -1)
> expires = 0;
> }
> 
> The strileft function contains:
> 
> int strileft(const char *string, const char *keyword)
> {
> register unsigned int i;
> 
> return 0;
> return 1;
> }
> 
> The tolower() function should be case insensitive.

  Yes, I see now.  That is where my lack of knowledge of C
gets me.  I thought that strileft was a C instruction, not
a function.  I see that the tolower is in there, sure enough.
It did seem completely logical that the do/while loop was
missing the expired line.

  I am wondering the function does?

int strileft(const char *string, const char *keyword)
{
  register unsigned int i;

  for (i = 0; keyword[i] != '\0'; i++)
    if (tolower(string[i]) != tolower(keyword[i]))
      return 0;
  return 1;
}

  Is it scanning or walking across 'string' looking for
'keyword'?

  Nevertheless, I guess I need to stick with what I know
best, mainframe assembler and cobol.

  inwtx.net
Technical Details
Message-ID: <810fdeeddff6227e5498f36d5899de1f@hoi-polloi.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!news.usenet.farm!..!..!not-for-mail
References: <slrnndp08b.qfp.admin@fleegle.mixmin.net>

Show Full Headers
Complete Article Headers
Message-ID: <810fdeeddff6227e5498f36d5899de1f@hoi-polloi.org>
Subject: Re: Ping Zax / merkinmuffley - mixmaster4096
Date: Sun, 6 Mar 2016 22:24:38 +0100
From: Anonymous <anonymous@hoi-polloi.org>
References: <slrnndp08b.qfp.admin@fleegle.mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!news.usenet.farm!..!..!not-for-mail
Authentication-Results: fleegle.mixmin.net; dkim=pass
 reason="1024-bit key; unprotected key"
 header.d=hoi-polloi.org header.i=@hoi-polloi.org header.b=E9niKcXo;
 dkim-adsp=pass; dkim-atps=neutral
Comments: This message did not originate from the Sender address above.
 It was remailed automatically by anonymizing remailer software.
 Please report problems or inappropriate use to the
 remailer administrator at <abuse@hoi-polloi.org>.
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.9
Newsgroups: alt.privacy.anon-server
Injection-Info: mail2news.mixmin.net; mail-complaints-to=abuse@mixmin.net
Lines: 82