forked from NetBSD/pkgsrc
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
253 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
$NetBSD: distinfo,v 1.21 2021/03/19 09:50:21 manu Exp $ | ||
|
||
SHA1 (opendkim-2.10.3.tar.gz) = 4e9b966860bcfbca6441ed84a95bbe762fff69f4 | ||
RMD160 (opendkim-2.10.3.tar.gz) = c6553757ae9675434e647f3cc1e6357bc60c7d2a | ||
SHA512 (opendkim-2.10.3.tar.gz) = 97923e533d072c07ae4d16a46cbed95ee799aa50f19468d8bc6d1dc534025a8616c3b4b68b5842bc899b509349a2c9a67312d574a726b048c0ea46dd4fcc45d8 | ||
Size (opendkim-2.10.3.tar.gz) = 1210224 bytes | ||
SHA1 (patch-configure.ac) = c9ae182ed2c5c2ec3018fe4c6066ed7fa0d3686f | ||
SHA1 (patch-libopendkim_dkim-canon.c) = 82dc322f86981feddc2ad0100b33ce1eca7435d6 | ||
SHA1 (patch-opendkim_opendkim-crypto.c) = d7d08fda3dba5bf9cb834123218b1e89b78878e5 | ||
SHA1 (OpenDKIM-2.11.0-Beta2.tar.gz) = dc511f3faa7efd598a122e4ec297b904e0fd6299 | ||
RMD160 (OpenDKIM-2.11.0-Beta2.tar.gz) = 0402b03481a6958d56e8bedbf418c3d102ba1734 | ||
SHA512 (OpenDKIM-2.11.0-Beta2.tar.gz) = 6574755db70b4959a9d6f9f854a889f3905057b8563690571a3a13b6215658b9c5ea365fa34316208c71561eefd9bdcacbccea420557d5a76a7744e98f095980 | ||
Size (OpenDKIM-2.11.0-Beta2.tar.gz) = 792991 bytes | ||
SHA1 (patch-configure.ac) = 424652ad2900f80ff50c67e35bddbf6b77797ae6 | ||
SHA1 (patch-libopendkim_dkim-dns.c) = 93cae38341b30e381253afd15b10440e611ebe0c | ||
SHA1 (patch-libopendkim_dkim-dns.h) = d720cdcadc54b13a7be4fe13f06d1c6567da7e3e | ||
SHA1 (patch-librbl_rbl.c) = c50029d01fa5c7acdbda14614ee129e73ee61e6e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
$NetBSD$ | ||
|
||
- https://github.com/trusteddomainproject/OpenDKIM/pull/99 | ||
|
||
--- libopendkim/dkim-dns.c.orig 2020-10-09 02:30:56.209138165 +0000 | ||
+++ libopendkim/dkim-dns.c | ||
@@ -247,85 +247,3 @@ dkim_res_waitreply(void *srv, void *qh, | ||
|
||
return DKIM_DNS_SUCCESS; | ||
} | ||
- | ||
-/* | ||
-** DKIM_RES_SETNS -- set nameserver list | ||
-** | ||
-** Parameters: | ||
-** srv -- service handle | ||
-** nslist -- nameserver list, as a string | ||
-** | ||
-** Return value: | ||
-** DKIM_DNS_SUCCESS -- success | ||
-** DKIM_DNS_ERROR -- error | ||
-*/ | ||
- | ||
-int | ||
-dkim_res_nslist(void *srv, const char *nslist) | ||
-{ | ||
-#ifdef HAVE_RES_SETSERVERS | ||
- int nscount = 0; | ||
- char *tmp; | ||
- char *ns; | ||
- char *last = NULL; | ||
- struct sockaddr_in in; | ||
-# ifdef AF_INET6 | ||
- struct sockaddr_in6 in6; | ||
-# endif /* AF_INET6 */ | ||
- struct state *res; | ||
- res_sockaddr_union nses[MAXNS]; | ||
- | ||
- assert(srv != NULL); | ||
- assert(nslist != NULL); | ||
- | ||
- memset(nses, '\0', sizeof nses); | ||
- | ||
- tmp = strdup(nslist); | ||
- if (tmp == NULL) | ||
- return DKIM_DNS_ERROR; | ||
- | ||
- for (ns = strtok_r(tmp, ",", &last); | ||
- ns != NULL && nscount < MAXNS; | ||
- ns = strtok_r(NULL, ",", &last) | ||
- { | ||
- memset(&in, '\0', sizeof in); | ||
-# ifdef AF_INET6 | ||
- memset(&in6, '\0', sizeof in6); | ||
-# endif /* AF_INET6 */ | ||
- | ||
- if (inet_pton(AF_INET, ns, (struct in_addr *) &in.sin_addr, | ||
- sizeof in.sin_addr) == 1) | ||
- { | ||
- in.sin_family= AF_INET; | ||
- in.sin_port = htons(DNSPORT); | ||
- memcpy(&nses[nscount].sin, &in, | ||
- sizeof nses[nscount].sin); | ||
- nscount++; | ||
- } | ||
-# ifdef AF_INET6 | ||
- else if (inet_pton(AF_INET6, ns, | ||
- (struct in6_addr *) &in6.sin6_addr, | ||
- sizeof in6.sin6_addr) == 1) | ||
- { | ||
- in6.sin6_family= AF_INET6; | ||
- in6.sin6_port = htons(DNSPORT); | ||
- memcpy(&nses[nscount].sin6, &in6, | ||
- sizeof nses[nscount].sin6); | ||
- nscount++; | ||
- } | ||
-# endif /* AF_INET6 */ | ||
- else | ||
- { | ||
- free(tmp); | ||
- return DKIM_DNS_ERROR; | ||
- } | ||
- } | ||
- | ||
- res = srv; | ||
- res_setservers(res, nses, nscount); | ||
- | ||
- free(tmp); | ||
-#endif /* HAVE_RES_SETSERVERS */ | ||
- | ||
- return DKIM_DNS_SUCCESS; | ||
-} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
$NetBSD$ | ||
|
||
- https://github.com/trusteddomainproject/OpenDKIM/pull/99 | ||
|
||
--- libopendkim/dkim-dns.h.orig 2020-10-09 02:33:21.947346707 +0000 | ||
+++ libopendkim/dkim-dns.h | ||
@@ -13,7 +13,6 @@ | ||
extern int dkim_res_cancel __P((void *, void *)); | ||
extern void dkim_res_close __P((void *)); | ||
extern int dkim_res_init __P((void **)); | ||
-extern int dkim_res_nslist __P((void *, const char *)); | ||
extern int dkim_res_query __P((void *, int, unsigned char *, unsigned char *, | ||
size_t, void **)); | ||
extern int dkim_res_waitreply __P((void *, void *, struct timeval *, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
$NetBSD$ | ||
|
||
- https://github.com/trusteddomainproject/OpenDKIM/pull/99 | ||
|
||
--- librbl/rbl.c.orig 2020-10-09 02:35:12.584361423 +0000 | ||
+++ librbl/rbl.c | ||
@@ -235,87 +235,6 @@ rbl_res_waitreply(void *srv, void *qh, s | ||
} | ||
|
||
/* | ||
-** RBL_RES_SETNS -- set nameserver list | ||
-** | ||
-** Parameters: | ||
-** srv -- service handle | ||
-** nslist -- nameserver list, as a string | ||
-** | ||
-** Return value: | ||
-** 0 -- success | ||
-** !0 -- error | ||
-*/ | ||
- | ||
-int | ||
-rbl_res_nslist(void *srv, const char *nslist) | ||
-{ | ||
-#ifdef HAVE_RES_SETSERVERS | ||
- int nscount = 0; | ||
- char *tmp; | ||
- char *ns; | ||
- char *last = NULL; | ||
- struct sockaddr_in in; | ||
-# ifdef AF_INET6 | ||
- struct sockaddr_in6 in6; | ||
-# endif /* AF_INET6 */ | ||
- struct state *res; | ||
- res_sockaddr_union nses[MAXNS]; | ||
- | ||
- assert(srv != NULL); | ||
- assert(nslist != NULL); | ||
- | ||
- memset(nses, '\0', sizeof nses); | ||
- | ||
- tmp = strdup(nslist); | ||
- if (tmp == NULL) | ||
- return -1; | ||
- | ||
- for (ns = strtok_r(tmp, ",", &last); | ||
- ns != NULL && nscount < MAXNS; | ||
- ns = strtok_r(NULL, ",", &last) | ||
- { | ||
- memset(&in, '\0', sizeof in); | ||
-# ifdef AF_INET6 | ||
- memset(&in6, '\0', sizeof in6); | ||
-# endif /* AF_INET6 */ | ||
- | ||
- if (inet_pton(AF_INET, ns, (struct in_addr *) &in.sin_addr, | ||
- sizeof in.sin_addr) == 1) | ||
- { | ||
- in.sin_family= AF_INET; | ||
- in.sin_port = htons(DNSPORT); | ||
- memcpy(&nses[nscount].sin, &in, | ||
- sizeof nses[nscount].sin); | ||
- nscount++; | ||
- } | ||
-# ifdef AF_INET6 | ||
- else if (inet_pton(AF_INET6, ns, | ||
- (struct in6_addr *) &in6.sin6_addr, | ||
- sizeof in6.sin6_addr) == 1) | ||
- { | ||
- in6.sin6_family= AF_INET6; | ||
- in6.sin6_port = htons(DNSPORT); | ||
- memcpy(&nses[nscount].sin6, &in6, | ||
- sizeof nses[nscount].sin6); | ||
- nscount++; | ||
- } | ||
-# endif /* AF_INET6 */ | ||
- else | ||
- { | ||
- free(tmp); | ||
- return -1; | ||
- } | ||
- } | ||
- | ||
- res = srv; | ||
- res_setservers(res, nses, nscount); | ||
- | ||
- free(tmp); | ||
-#endif /* HAVE_RES_SETSERVERS */ | ||
- return 0; | ||
-} | ||
- | ||
-/* | ||
** RBL_RES_CLOSE -- shut down the resolver | ||
** | ||
** Parameters: | ||
@@ -379,7 +298,7 @@ rbl_init(void *(*caller_mallocf)(void *c | ||
new->rbl_dns_start = rbl_res_query; | ||
new->rbl_dns_waitreply = rbl_res_waitreply; | ||
new->rbl_dns_cancel = rbl_res_cancel; | ||
- new->rbl_dns_setns = rbl_res_nslist; | ||
+ new->rbl_dns_setns = NULL; | ||
new->rbl_dns_close = rbl_res_close; | ||
|
||
return new; | ||
@@ -664,11 +583,7 @@ void | ||
rbl_dns_set_nslist(RBL *lib, int (*func)(void *, const char *)) | ||
{ | ||
assert(lib != NULL); | ||
- | ||
- if (func != NULL) | ||
- lib->rbl_dns_setns = func; | ||
- else | ||
- lib->rbl_dns_setns = rbl_res_nslist; | ||
+ lib->rbl_dns_setns = func; | ||
} | ||
|
||
/* |
This file was deleted.
Oops, something went wrong.