+2003-05-05 Marcus Brinkmann <marcus@g10code.de>
+
+ * key.c (_gpgme_key_append_name): Use decoded string to parse user id.
+ (_gpgme_key_add_sig): Likewise.
+
2003-05-04 Marcus Brinkmann <marcus@g10code.de>
* context.h (struct gpgme_context_s): Remove member op_info.
dst += src_len + 1;
if (key->protocol == GPGME_PROTOCOL_CMS)
- parse_x509_user_id (src, &uid->name, &uid->email,
+ parse_x509_user_id (uid->uid, &uid->name, &uid->email,
&uid->comment, dst);
else
- parse_user_id (src, &uid->name, &uid->email,
+ parse_user_id (uid->uid, &uid->name, &uid->email,
&uid->comment, dst);
if (!key->uids)
_gpgme_decode_c_string (src, &dst, src_len + 1);
dst += src_len + 1;
if (key->protocol == GPGME_PROTOCOL_CMS)
- parse_x509_user_id (src, &sig->name, &sig->email,
+ parse_x509_user_id (sig->uid, &sig->name, &sig->email,
&sig->comment, dst);
else
- parse_user_id (src, &sig->name, &sig->email,
+ parse_user_id (sig->uid, &sig->name, &sig->email,
&sig->comment, dst);
}