Browse Source

libdkim: Updated (1.0.19 -> 1.0.21) also reworked the patchset a bit.

user/chris/wip/linux37
Nagy Karoly Gabriel 12 years ago
parent
commit
7139409dae
  1. 15
      mail/libdkim/fix_warnings.patch
  2. 6
      mail/libdkim/libdkim.desc
  3. 32
      mail/libdkim/strtok_r.patch

15
mail/libdkim/fix-warnings.patch → mail/libdkim/fix_warnings.patch

@ -2,8 +2,8 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN --- # --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# #
# Filename: package/.../libdkim/fix-warnings.patch # Filename: package/.../libdkim/fix_warnings.patch
# Copyright (C) 2009 The OpenSDE Project # Copyright (C) 2013 The OpenSDE Project
# #
# More information can be found in the files COPYING and README. # More information can be found in the files COPYING and README.
# #
@ -291,17 +291,6 @@ diff -ru libdkim-1.0.19.orig/src/dkimverify.cpp libdkim-1.0.19/src/dkimverify.cp
{ {
if (values[j] != NULL && values[j] < values[0]) if (values[j] != NULL && values[j] < values[0])
{ {
@@ -1411,8 +1411,8 @@
return DKIM_POLICY_DNS_PERM_FAILURE;
}
- unsigned pos = sDomain.find('.');
- if (pos == -1 || sDomain.find('.', pos+1) == -1)
+ string::size_type pos = sDomain.find('.');
+ if (pos == string::npos || sDomain.find('.', pos+1) == string::npos)
{
// SSP not found but the domain exists, it's non-suspicious
iSSP = DKIM_SSP_UNKNOWN;
diff -ru libdkim-1.0.19.orig/src/libdkimtest.cpp libdkim-1.0.19/src/libdkimtest.cpp diff -ru libdkim-1.0.19.orig/src/libdkimtest.cpp libdkim-1.0.19/src/libdkimtest.cpp
--- ./libdkimtest.cpp 2008-05-12 20:08:54.000000000 +1000 --- ./libdkimtest.cpp 2008-05-12 20:08:54.000000000 +1000
+++ ./libdkimtest.cpp 2009-04-15 19:38:08.000000000 +1000 +++ ./libdkimtest.cpp 2009-04-15 19:38:08.000000000 +1000

6
mail/libdkim/libdkim.desc

@ -2,7 +2,7 @@
[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. [COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch.
[COPY] [COPY]
[COPY] Filename: package/.../libdkim/libdkim.desc [COPY] Filename: package/.../libdkim/libdkim.desc
[COPY] Copyright (C) 2009 The OpenSDE Project [COPY] Copyright (C) 2009 - 2013 The OpenSDE Project
[COPY] [COPY]
[COPY] More information can be found in the files COPYING and README. [COPY] More information can be found in the files COPYING and README.
[COPY] [COPY]
@ -27,7 +27,7 @@
[L] APL [L] APL
[S] Beta [S] Beta
[V] 1.0.19 [V] 1.0.21
[P] X -----5---9 800.000 [P] X -----5---9 800.000
[D] 2617769788 libdkim-1.0.19.zip http://dl.sourceforge.net/sourceforge/libdkim/ [D] 2718052893 libdkim-1.0.21.zip http://dl.sourceforge.net/sourceforge/libdkim/

32
mail/libdkim/enable-thread-safety.patch → mail/libdkim/strtok_r.patch

@ -2,8 +2,8 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN --- # --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# #
# Filename: package/.../libdkim/enable-thread-safety.patch # Filename: package/.../libdkim/strtok_r.patch
# Copyright (C) 2009 The OpenSDE Project # Copyright (C) 2013 The OpenSDE Project
# #
# More information can be found in the files COPYING and README. # More information can be found in the files COPYING and README.
# #
@ -133,31 +133,3 @@ diff -ru libdkim-1.0.19/src/dkimverify.cpp libdkim-1.0.19-new/src/dkimverify.cpp
} }
} }
@@ -1388,6 +1394,9 @@
////////////////////////////////////////////////////////////////////////////////
int CDKIMVerify::GetSSP( const string &sDomain, int &iSSP, bool &bTesting )
{
+ // for strtok_r()
+ char *saveptr;
+
string sFQDN = "_ssp._domainkey.";
sFQDN += sDomain;
@@ -1456,7 +1465,7 @@
// flags
if (values[1] != NULL)
{
- char *s = strtok(values[1], "|");
+ char *s = strtok_r(values[1], "|", &saveptr);
while (s != NULL)
{
if (strcmp(s, "y") == 0)
@@ -1474,7 +1483,7 @@
return DKIM_SUCCESS;
}
}
- s = strtok(NULL, "|");
+ s = strtok_r(NULL, "|", &saveptr);
}
}
}
Loading…
Cancel
Save