• RFC 8315 perl hooks for Inn (was: Re: Systems running news servers)

    From =?UTF-8?Q?Julien_=c3=89LIE?=@21:1/5 to All on Mon Feb 8 22:44:59 2021
    Hi Gérald,

    When this feature will be natively integrated into INN, it will be even
    easier.

    Theres is the libcanlock that could be used.

    Yes, we'll call the functions defined by that library.


    https://code.th-h.de/?p=usenet/INN.git;a=tree;f=filter

    I think I've succeffuly rewrited those hooks to be RFC 8315 compliant.

    If that works and looks good, tell me how to (and where) submit these.

    As Thomas reads this newsgroup, just provide a link to your patch.
    Thanks for it!

    --
    Julien ÉLIE

    « Given a choice between fixing a small bug that affects something deep
    down in the guts, or making some flashy ui change that nobody wants,
    most bug fixers will choose the flash. » (Tomblin's Law)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?G=C3=A9rald?= Niel@21:1/5 to All on Mon Feb 8 07:51:18 2021
    Hi Julien,

    Le Mardi 26 janvier 2021 à 11:43 UTC, Julien ÉLIE écrivait sur news.software.nntp :

    Basically, you have to add Cancel-Lock support to both nnrpd and innd
    via Perl hooks:
    https://code.th-h.de/?p=usenet/INN.git;a=tree;f=filter

    When this feature will be natively integrated into INN, it will be even easier.

    Theres is the libcanlock that could be used.
    Not avaialable yet on FreeBSD ports, but available on Linux Debian
    based  : https://micha.freeshell.org/libcanlock/
    Unfortunatly the v3 doesn't works yet with slrn (on client side).

    Also, this Perl code pre-dates Michael's RFC 8315 so it does
    not support hashes other than sha1 (obsolescent) and md5 (obsolete). Nowadays, a sha256 hash should also be sent and recognized.

    I think I've succeffuly rewrited those hooks to be RFC 8315 compliant.
    As you can see in my headers, works fine to add the sha256 lock en keys.
    And works fine too to check if lock match with the key.

    See <news:slrns21n0l.1ala.gerald.niel+spam@home.niel.me> (in french,
    on fr.comp.lang.perl).

    I need to confirm that the changes I want to make in cleanfeed.local
    work.

    If that works and looks good, tell me how to (and where) submit these.
    I'll publish these on my Gemini capsule. And perhaps on my blog too.

    --
    On ne le dira jamais assez, l'anarchisme, c'est l'ordre sans le
    gouvernement ; c'est la paix sans la violence. C'est le contraire
    précisément de tout ce qu'on lui reproche, soit par ignorance, soit
    par mauvaise foi. -+- Hem Day -+-

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)