+2001-10-19 [alfons]
+
+ * src/gpgtext.[ch]
+ fix compilation problems (part of bug #472895)
+
2001-10-18 [hoa] 0.6.3claws27
* src/grouplistdialog.[c]
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)
{
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;
* 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>
int pgptext_encrypt (const char *file, GSList *recp_list);
int pgptext_sign (const char *file, PrefsAccount *ac);
-#endif /* __RFC2015_H__ */
+#endif /* PGPTEXT_H__ */