Re: opendkim-genzone -d

From: Murray S. Kucherawy <msk_at_blackops.org>
Date: Sun, 25 Jan 2015 22:45:51 -0800 (PST)

On Mon, 12 Jan 2015, A. Schulze wrote:
> using opendkim-genzone -d domain it's possible to extract public key portions
> from the configured
> private key repository ( files, sql or ldap ). That work very well.
>
> Now I have to export not only keys for a domain but all subdomains, too.
>
> opendkim-genzone.c, line 642 does the relevant check.
> if (onlydomain != NULL && strcasecmp(domain, onlydomain) != 0) {
> // skip this
> }
>
> I like to change the code to something like
> if (onlydomain != NULL && have_the_same_chars_at_strend(domain, '.' +
> onlydomain) != 0) {
> // skip this
> }
>
> but I fail to find a proper C function that check if two strings _end_ with
> the same chars.
>
> Any hints? Thanks.

Something like dkimf_checkhost() in opendkim/util.c might be what you're
after.

-MSK
Received on Mon Jan 26 2015 - 06:46:12 PST

This archive was generated by hypermail 2.3.0 : Mon Jan 26 2015 - 06:54:01 PST