Use the preferred key ID when reading the pk_algorithm in openpgp keys.
commitb726f19b9e821db6fdc0a3b335e7cc5b191de6a8
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Fri, 17 Aug 2012 20:48:50 +0000 (17 22:48 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Fri, 17 Aug 2012 20:49:20 +0000 (17 22:49 +0200)
tree6238a74bc28f1292680b31703021616749813609
parent8361e8735c5c27fae542a87c14886a788735d65e
Use the preferred key ID when reading the pk_algorithm in openpgp keys.

gnutls_openpgp_*_get_pk_algorithm() returns the algorithm of the preferred
key ID if set.
lib/auth/cert.h
lib/gnutls_cert.c
lib/gnutls_x509.c
lib/openpgp/gnutls_openpgp.c
lib/openpgp/pgp.c
lib/openpgp/privkey.c