mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
(gpgsm_sign): Include a short list of capabilities.
This commit is contained in:
parent
2b1f8df9bd
commit
496cf5aa7c
@ -1,3 +1,7 @@
|
||||
2004-03-24 Werner Koch <wk@gnupg.org>
|
||||
|
||||
* sign.c (gpgsm_sign): Include a short list of capabilities.
|
||||
|
||||
2004-03-17 Werner Koch <wk@gnupg.org>
|
||||
|
||||
* gpgsm.c (main) <gpgconf>: Fixed default value quoting.
|
||||
|
19
sm/sign.c
19
sm/sign.c
@ -494,6 +494,25 @@ gpgsm_sign (CTRL ctrl, CERTLIST signerlist,
|
||||
}
|
||||
}
|
||||
|
||||
/* We need to write at least a minimal list of our capabilities to
|
||||
try to convince some MUAs to use 3DEs and not the crippled
|
||||
RC2. Our list is:
|
||||
|
||||
aes128-CBC
|
||||
des-EDE3-CBC
|
||||
*/
|
||||
err = ksba_cms_add_smime_capability (cms, "2.16.840.1.101.3.4.1.2", NULL, 0);
|
||||
if (!err)
|
||||
err = ksba_cms_add_smime_capability (cms, "1.2.840.113549.3.7", NULL, 0);
|
||||
if (err)
|
||||
{
|
||||
log_error ("ksba_cms_add_smime_capability failed: %s\n",
|
||||
gpg_strerror (err));
|
||||
goto leave;
|
||||
}
|
||||
|
||||
|
||||
/* Main building loop. */
|
||||
do
|
||||
{
|
||||
err = ksba_cms_build (cms, &stopreason);
|
||||
|
Loading…
x
Reference in New Issue
Block a user