fix compilation problem with pgptext.[ch]
This commit is contained in:
parent
bf510e183a
commit
162f0b74cd
3 changed files with 22 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
2001-10-19 [alfons]
|
||||
|
||||
* src/gpgtext.[ch]
|
||||
fix compilation problems (part of bug #472895)
|
||||
|
||||
2001-10-18 [hoa] 0.6.3claws27
|
||||
|
||||
* src/grouplistdialog.[c]
|
||||
|
|
|
@ -69,6 +69,19 @@ struct passphrase_cb_info_s {
|
|||
int did_it;
|
||||
};
|
||||
|
||||
/* stolen from rfc2015.c */
|
||||
static int
|
||||
gpg_name_cmp(const char *a, const char *b)
|
||||
{
|
||||
for( ; *a && *b; a++, b++) {
|
||||
if(*a != *b
|
||||
&& toupper(*(unsigned char *)a) != toupper(*(unsigned char *)b))
|
||||
return 1;
|
||||
}
|
||||
|
||||
return *a != *b;
|
||||
}
|
||||
|
||||
static const char *
|
||||
passphrase_cb (void *opaque, const char *desc, void *r_hd)
|
||||
{
|
||||
|
@ -165,7 +178,7 @@ headerp(char *p, char **names)
|
|||
c = *p2;
|
||||
*p2 = 0;
|
||||
for(i = 0 ; names[i] != NULL; i++) {
|
||||
if(!name_cmp (names[i], p))
|
||||
if(!gpg_name_cmp (names[i], p))
|
||||
break;
|
||||
}
|
||||
*p2 = c;
|
||||
|
|
|
@ -17,8 +17,8 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __RFC2015_H__
|
||||
#define __RFC2015_H__
|
||||
#ifndef PGPTXT_H__
|
||||
#define PGPTXT_H__
|
||||
|
||||
#include <glib.h>
|
||||
#include <stdio.h>
|
||||
|
@ -38,4 +38,4 @@ void pgptext_decrypt_message (MsgInfo *msginfo, MimeInfo *mimeinfo, FILE *fp);
|
|||
int pgptext_encrypt (const char *file, GSList *recp_list);
|
||||
int pgptext_sign (const char *file, PrefsAccount *ac);
|
||||
|
||||
#endif /* __RFC2015_H__ */
|
||||
#endif /* PGPTEXT_H__ */
|
||||
|
|
Loading…
Reference in a new issue