Home GnuPG
Diffusion GnuPG 66fdafab3c6d

gpgsm: Fix bug so that a cert can be signed by a different algo.

Description

gpgsm: Fix bug so that a cert can be signed by a different algo.

* sm/certreqgen.c (create_request): Take the algo from the sigkey
  instead of the to-be-signed public key.

The bug was that a certificate could only be signed by a signing key
using the same algo.

  • Reported-by: Youfu Zhang <zhangyoufu@gmail.com>

Details

Provenance
wernerAuthored on Tue, Mar 31, 2:43 PM
Parents
rGbc7c91bee521: gpg: Improve a recursion check.
Branches
Unknown
Tags
Unknown
References
HEAD -> master