projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rocco Rutte:
[apps/madmutt.git]
/
crypt.c
diff --git
a/crypt.c
b/crypt.c
index
fbe984a
..
9d175d9
100644
(file)
--- a/
crypt.c
+++ b/
crypt.c
@@
-386,7
+386,7
@@
int mutt_is_application_smime (BODY * m)
/* no .p7c, .p10 support yet. */
/* no .p7c, .p10 support yet. */
- len = s
afe_str
len (t) - 4;
+ len = s
tr_
len (t) - 4;
if (len > 0 && *(t + len) == '.') {
len++;
if (!ascii_strcasecmp ((t + len), "p7m"))
if (len > 0 && *(t + len) == '.') {
len++;
if (!ascii_strcasecmp ((t + len), "p7m"))
@@
-528,7
+528,7
@@
void convert_to_7bit (BODY * a)
convert_to_7bit (a->parts);
}
else if (a->type == TYPEMESSAGE &&
convert_to_7bit (a->parts);
}
else if (a->type == TYPEMESSAGE &&
- s
afe_str
casecmp (a->subtype, "delivery-status")) {
+ s
tr_
casecmp (a->subtype, "delivery-status")) {
if (a->encoding != ENC7BIT)
mutt_message_to_7bit (a, NULL);
}
if (a->encoding != ENC7BIT)
mutt_message_to_7bit (a, NULL);
}
@@
-705,7
+705,7
@@
static void crypt_fetch_signatures (BODY *** signatures, BODY * a, int *n)
crypt_fetch_signatures (signatures, a->parts, n);
else {
if ((*n % 5) == 0)
crypt_fetch_signatures (signatures, a->parts, n);
else {
if ((*n % 5) == 0)
-
safe
_realloc (signatures, (*n + 6) * sizeof (BODY **));
+
mem
_realloc (signatures, (*n + 6) * sizeof (BODY **));
(*signatures)[(*n)++] = a;
}
(*signatures)[(*n)++] = a;
}
@@
-755,7
+755,7
@@
void mutt_signed_handler (BODY * a, STATE * s)
/* consistency check */
if (!(a && a->next && a->next->type == protocol_major &&
/* consistency check */
if (!(a && a->next && a->next->type == protocol_major &&
- !s
afe_str
casecmp (a->next->subtype, protocol_minor))) {
+ !s
tr_
casecmp (a->next->subtype, protocol_minor))) {
state_attach_puts (_("[-- Error: "
"Inconsistent multipart/signed structure! --]\n\n"),
s);
state_attach_puts (_("[-- Error: "
"Inconsistent multipart/signed structure! --]\n\n"),
s);
@@
-766,13
+766,13
@@
void mutt_signed_handler (BODY * a, STATE * s)
if ((WithCrypto & APPLICATION_PGP)
&& protocol_major == TYPEAPPLICATION
if ((WithCrypto & APPLICATION_PGP)
&& protocol_major == TYPEAPPLICATION
- && !s
afe_str
casecmp (protocol_minor, "pgp-signature"));
+ && !s
tr_
casecmp (protocol_minor, "pgp-signature"));
else if ((WithCrypto & APPLICATION_SMIME)
&& protocol_major == TYPEAPPLICATION
else if ((WithCrypto & APPLICATION_SMIME)
&& protocol_major == TYPEAPPLICATION
- && !(s
afe_str
casecmp (protocol_minor, "x-pkcs7-signature")
- && s
afe_str
casecmp (protocol_minor, "pkcs7-signature")));
+ && !(s
tr_
casecmp (protocol_minor, "x-pkcs7-signature")
+ && s
tr_
casecmp (protocol_minor, "pkcs7-signature")));
else if (protocol_major == TYPEMULTIPART
else if (protocol_major == TYPEMULTIPART
- && !s
afe_str
casecmp (protocol_minor, "mixed"));
+ && !s
tr_
casecmp (protocol_minor, "mixed"));
else {
state_printf (s, _("[-- Error: "
"Unknown multipart/signed protocol %s! --]\n\n"),
else {
state_printf (s, _("[-- Error: "
"Unknown multipart/signed protocol %s! --]\n\n"),
@@
-791,7
+791,7
@@
void mutt_signed_handler (BODY * a, STATE * s)
for (i = 0; i < sigcnt; i++) {
if ((WithCrypto & APPLICATION_PGP)
&& signatures[i]->type == TYPEAPPLICATION
for (i = 0; i < sigcnt; i++) {
if ((WithCrypto & APPLICATION_PGP)
&& signatures[i]->type == TYPEAPPLICATION
- && !s
afe_str
casecmp (signatures[i]->subtype, "pgp-signature")) {
+ && !s
tr_
casecmp (signatures[i]->subtype, "pgp-signature")) {
if (crypt_pgp_verify_one (signatures[i], s, tempfile) != 0)
goodsig = 0;
if (crypt_pgp_verify_one (signatures[i], s, tempfile) != 0)
goodsig = 0;
@@
-801,8
+801,8
@@
void mutt_signed_handler (BODY * a, STATE * s)
if ((WithCrypto & APPLICATION_SMIME)
&& signatures[i]->type == TYPEAPPLICATION
&&
if ((WithCrypto & APPLICATION_SMIME)
&& signatures[i]->type == TYPEAPPLICATION
&&
- (!s
afe_str
casecmp (signatures[i]->subtype, "x-pkcs7-signature")
- || !s
afe_str
casecmp (signatures[i]->subtype,
+ (!s
tr_
casecmp (signatures[i]->subtype, "x-pkcs7-signature")
+ || !s
tr_
casecmp (signatures[i]->subtype,
"pkcs7-signature"))) {
if (crypt_smime_verify_one (signatures[i], s, tempfile) != 0)
goodsig = 0;
"pkcs7-signature"))) {
if (crypt_smime_verify_one (signatures[i], s, tempfile) != 0)
goodsig = 0;
@@
-825,7
+825,7
@@
void mutt_signed_handler (BODY * a, STATE * s)
state_attach_puts (_("[-- The following data is signed --]\n\n"), s);
state_attach_puts (_("[-- The following data is signed --]\n\n"), s);
-
FREE
(&signatures);
+
mem_free
(&signatures);
}
else
state_attach_puts (_("[-- Warning: Can't find any signatures. --]\n\n"),
}
else
state_attach_puts (_("[-- Warning: Can't find any signatures. --]\n\n"),