aboutsummaryrefslogtreecommitdiffstats
path: root/mail/enma/files/patch-libsauth_src_dkimpublickey.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/enma/files/patch-libsauth_src_dkimpublickey.c')
-rw-r--r--mail/enma/files/patch-libsauth_src_dkimpublickey.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/mail/enma/files/patch-libsauth_src_dkimpublickey.c b/mail/enma/files/patch-libsauth_src_dkimpublickey.c
new file mode 100644
index 000000000000..2b7d820df4ef
--- /dev/null
+++ b/mail/enma/files/patch-libsauth_src_dkimpublickey.c
@@ -0,0 +1,16 @@
+--- ./libsauth/src/dkimpublickey.c.org 2018-11-11 18:07:34.804563000 +0900
++++ ./libsauth/src/dkimpublickey.c 2018-11-11 17:48:47.356482000 +0900
+@@ -398,11 +398,11 @@
+ // compare key type key-k-tag declared and stored in key-p-tag
+ switch (self->keytype) {
+ case DKIM_KEY_TYPE_RSA:
+- if (EVP_PKEY_RSA != EVP_PKEY_type(self->pkey->type)) {
++ if (EVP_PKEY_RSA != EVP_PKEY_base_id(self->pkey)) {
+ DkimLogPermFail
+ (policy,
+ "key-k-tag and key-p-tag doesn't match: domain=%s, keyalg=0x%x, keytype=0x%x",
+- domain, self->keytype, EVP_PKEY_type(self->pkey->type));
++ domain, self->keytype, EVP_PKEY_base_id(self->pkey));
+ SETDEREF(dstat, DSTAT_PERMFAIL_PUBLICKEY_TYPE_MISMATCH);
+ goto cleanup;
+ } // end if