git://git.exim.org
/
users
/
heiko
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
e1d04f4
)
Fix DKIM/GnuTLS build
author
Jeremy Harris
<jgh146exb@wizmail.org>
Wed, 8 Feb 2017 17:31:37 +0000
(17:31 +0000)
committer
Jeremy Harris
<jgh146exb@wizmail.org>
Wed, 8 Feb 2017 17:31:37 +0000
(17:31 +0000)
Broken-by: e1d04f48a45c
src/src/pdkim/rsa.c
patch
|
blob
|
history
diff --git
a/src/src/pdkim/rsa.c
b/src/src/pdkim/rsa.c
index 548bae6be49bd1fb428e6efd3d66bc6ef90808f4..950c617c78171b2561a4dc00ede001ca811fdf7b 100644
(file)
--- a/
src/src/pdkim/rsa.c
+++ b/
src/src/pdkim/rsa.c
@@
-170,7
+170,7
@@
uschar tag_class;
int taglen;
long tag, len;
int taglen;
long tag, len;
-/*
acl_debug_printf
("as_tag: %02x %02x %02x %02x\n",
+/*
debug_printf_indent
("as_tag: %02x %02x %02x %02x\n",
der->data[0], der->data[1], der->data[2], der->data[3]); */
if ((rc = asn1_get_tag_der(der->data++, der->len--, &tag_class, &taglen, &tag))
der->data[0], der->data[1], der->data[2], der->data[3]); */
if ((rc = asn1_get_tag_der(der->data++, der->len--, &tag_class, &taglen, &tag))
@@
-183,7
+183,7
@@
if ((len = asn1_get_length_der(der->data, der->len, &taglen)) < 0)
return ASN1_DER_ERROR;
if (alen) *alen = len;
return ASN1_DER_ERROR;
if (alen) *alen = len;
-/*
acl_debug_printf
("as_tag: tlen %d dlen %d\n", taglen, (int)len); */
+/*
debug_printf_indent
("as_tag: tlen %d dlen %d\n", taglen, (int)len); */
der->data += taglen;
der->len -= taglen;
der->data += taglen;
der->len -= taglen;
@@
-325,25
+325,25
@@
if ( (s1 = as_mpi(&der, &sign_ctx->n))
)
return s1;
)
return s1;
-DEBUG(D_acl)
acl_debug_printf
("rsa_signing_init:\n");
+DEBUG(D_acl)
debug_printf_indent
("rsa_signing_init:\n");
{
uschar * s;
gcry_mpi_aprint (GCRYMPI_FMT_HEX, &s, NULL, sign_ctx->n);
{
uschar * s;
gcry_mpi_aprint (GCRYMPI_FMT_HEX, &s, NULL, sign_ctx->n);
-
acl_debug_printf
(" N : %s\n", s);
+
debug_printf_indent
(" N : %s\n", s);
gcry_mpi_aprint (GCRYMPI_FMT_HEX, &s, NULL, sign_ctx->e);
gcry_mpi_aprint (GCRYMPI_FMT_HEX, &s, NULL, sign_ctx->e);
-
acl_debug_printf
(" E : %s\n", s);
+
debug_printf_indent
(" E : %s\n", s);
gcry_mpi_aprint (GCRYMPI_FMT_HEX, &s, NULL, sign_ctx->d);
gcry_mpi_aprint (GCRYMPI_FMT_HEX, &s, NULL, sign_ctx->d);
-
acl_debug_printf
(" D : %s\n", s);
+
debug_printf_indent
(" D : %s\n", s);
gcry_mpi_aprint (GCRYMPI_FMT_HEX, &s, NULL, sign_ctx->p);
gcry_mpi_aprint (GCRYMPI_FMT_HEX, &s, NULL, sign_ctx->p);
-
acl_debug_printf
(" P : %s\n", s);
+
debug_printf_indent
(" P : %s\n", s);
gcry_mpi_aprint (GCRYMPI_FMT_HEX, &s, NULL, sign_ctx->q);
gcry_mpi_aprint (GCRYMPI_FMT_HEX, &s, NULL, sign_ctx->q);
-
acl_debug_printf
(" Q : %s\n", s);
+
debug_printf_indent
(" Q : %s\n", s);
gcry_mpi_aprint (GCRYMPI_FMT_HEX, &s, NULL, sign_ctx->dp);
gcry_mpi_aprint (GCRYMPI_FMT_HEX, &s, NULL, sign_ctx->dp);
-
acl_debug_printf
(" DP: %s\n", s);
+
debug_printf_indent
(" DP: %s\n", s);
gcry_mpi_aprint (GCRYMPI_FMT_HEX, &s, NULL, sign_ctx->dq);
gcry_mpi_aprint (GCRYMPI_FMT_HEX, &s, NULL, sign_ctx->dq);
-
acl_debug_printf
(" DQ: %s\n", s);
+
debug_printf_indent
(" DQ: %s\n", s);
gcry_mpi_aprint (GCRYMPI_FMT_HEX, &s, NULL, sign_ctx->qp);
gcry_mpi_aprint (GCRYMPI_FMT_HEX, &s, NULL, sign_ctx->qp);
-
acl_debug_printf
(" QP: %s\n", s);
+
debug_printf_indent
(" QP: %s\n", s);
}
return NULL;
}
return NULL;
@@
-402,13
+402,13
@@
DEBUG(D_acl)
{
uschar * s;
gcry_mpi_aprint (GCRYMPI_FMT_HEX, &s, NULL, m_sig);
{
uschar * s;
gcry_mpi_aprint (GCRYMPI_FMT_HEX, &s, NULL, m_sig);
-
acl_debug_printf
(" SG: %s\n", s);
+
debug_printf_indent
(" SG: %s\n", s);
}
gerr = gcry_mpi_print(GCRYMPI_FMT_USG, sig->data, SIGSPACE, &sig->len, m_sig);
if (gerr)
{
}
gerr = gcry_mpi_print(GCRYMPI_FMT_USG, sig->data, SIGSPACE, &sig->len, m_sig);
if (gerr)
{
-
acl_debug_printf
("signature conversion from MPI to buffer failed\n");
+
debug_printf_indent
("signature conversion from MPI to buffer failed\n");
return US gcry_strerror(gerr);
}
#undef SIGSPACE
return US gcry_strerror(gerr);
}
#undef SIGSPACE
@@
-480,13
+480,13
@@
if ( (errstr = as_mpi(pubkey_der, &verify_ctx->n))
)
return errstr;
)
return errstr;
-DEBUG(D_acl)
acl_debug_printf
("rsa_verify_init:\n");
+DEBUG(D_acl)
debug_printf_indent
("rsa_verify_init:\n");
{
uschar * s;
gcry_mpi_aprint (GCRYMPI_FMT_HEX, &s, NULL, verify_ctx->n);
{
uschar * s;
gcry_mpi_aprint (GCRYMPI_FMT_HEX, &s, NULL, verify_ctx->n);
-
acl_debug_printf
(" N : %s\n", s);
+
debug_printf_indent
(" N : %s\n", s);
gcry_mpi_aprint (GCRYMPI_FMT_HEX, &s, NULL, verify_ctx->e);
gcry_mpi_aprint (GCRYMPI_FMT_HEX, &s, NULL, verify_ctx->e);
-
acl_debug_printf
(" E : %s\n", s);
+
debug_printf_indent
(" E : %s\n", s);
}
return NULL;
}
return NULL;
@@
-528,7
+528,7
@@
if ( (stage = US"pkey sexp build",
gerr = gcry_pk_verify (s_sig, s_hash, s_pkey))
)
{
gerr = gcry_pk_verify (s_sig, s_hash, s_pkey))
)
{
- DEBUG(D_acl)
acl_debug_printf
("verify: error in stage '%s'\n", stage);
+ DEBUG(D_acl)
debug_printf_indent
("verify: error in stage '%s'\n", stage);
return US gcry_strerror(gerr);
}
return US gcry_strerror(gerr);
}