-
Committer:
twoaday
-
Date:
2003-06-25 08:57:45 UTC
-
Revision ID:
Arch-1:gnutls@projects.ubuntu.com%opencdk--MAIN--0--patch-304
2003-06-24 Timo Schulz <twoaday@freakmail.de>
* keydb.c (_cdk_keydb_get_sk_byusage): Copy the user-id to the
secret key struct to allow to use the CDK_SIGSUBPKT_SIGNERS_UID.
(_cdk_keydb_check_userid): Check if the given user-id really
belongs to the keyid specified by @keyid. Thanks to David who
reminded me of this possible security risk.
(cdk_keydb_import): skip non-exportable signatures.
* sign.c (_cdk_sig_create): If pk->uid is set, add the described
signature subpacket above.
* encrypt.c (store_verify_result): Try to extract the signers
user-id from the signature subpackets.
(cdk_stream_encrypt): Enable blockmode if requested.
(sym_stream_encrypt): Likewise.
* cipher.c (write_partial_block): Finished the code, but it
needs testings.
(write_header): Corrected calculation for the blockmode.