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.
This commit is contained in:
Marcus Brinkmann 2003-05-04 22:28:33 +00:00
parent 13634fff8a
commit 3cbd595c13
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
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.

View File

@ -222,10 +222,10 @@ _gpgme_key_append_name (GpgmeKey key, char *src)
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)
@ -266,10 +266,10 @@ _gpgme_key_add_sig (GpgmeKey key, char *src)
_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);
}