- Fix pointer argument in address_list_uniq()
- Use const char in pgp_getkeybystr()
Signed-off-by: Julien Danjou <julien@danjou.info>
Signed-off-by: Pierre Habouzit <pierre.habouzit@intersec.eu>
*/
char *pgp_findKeys (address_t * to, address_t * cc, address_t * bcc)
{
*/
char *pgp_findKeys (address_t * to, address_t * cc, address_t * bcc)
{
- char *keyID, *keylist = NULL, *t;
+ char *keylist = NULL, *t;
+ const char *keyID;
size_t keylist_size = 0;
size_t keylist_used = 0;
address_t *tmp = NULL, *addr = NULL;
size_t keylist_size = 0;
size_t keylist_used = 0;
address_t *tmp = NULL, *addr = NULL;
pgp_key_t pgp_ask_for_key (char *, char *, short, pgp_ring_t);
pgp_key_t pgp_get_candidates (pgp_ring_t, string_list_t *);
pgp_key_t pgp_getkeybyaddr (address_t *, short, pgp_ring_t);
pgp_key_t pgp_ask_for_key (char *, char *, short, pgp_ring_t);
pgp_key_t pgp_get_candidates (pgp_ring_t, string_list_t *);
pgp_key_t pgp_getkeybyaddr (address_t *, short, pgp_ring_t);
-pgp_key_t pgp_getkeybystr (char *, short, pgp_ring_t);
+pgp_key_t pgp_getkeybystr (const char *, short, pgp_ring_t);
char *pgp_findKeys (address_t * to, address_t * cc, address_t * bcc);
char *pgp_findKeys (address_t * to, address_t * cc, address_t * bcc);
-pgp_key_t pgp_getkeybystr (char *p, short abilities, pgp_ring_t keyring)
+pgp_key_t pgp_getkeybystr (const char *p, short abilities, pgp_ring_t keyring)
{
string_list_t *hints = NULL;
pgp_key_t keys;
{
string_list_t *hints = NULL;
pgp_key_t keys;