summaryrefslogtreecommitdiff
path: root/lib/x509/crq.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2015-12-16 14:02:56 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2015-12-16 14:03:57 +0100
commit6cc022a099f3d13a8da59850a553a050703a01e7 (patch)
tree020574b3fe15ad46b9fbeee42ea6c05e40042f3f /lib/x509/crq.c
parent0dd5c078ad6db71f60a107dc0cdf78637baeafe1 (diff)
downloadgnutls-6cc022a099f3d13a8da59850a553a050703a01e7.tar.gz
pkcs7: use the PK_PKIX1_RSA_OID when writing RSA signature OIDs for PKCS#7 structures
That is because there are implementations which cannot cope with the normal RSA signature OIDs. Relates #59
Diffstat (limited to 'lib/x509/crq.c')
-rw-r--r--lib/x509/crq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/x509/crq.c b/lib/x509/crq.c
index 77eff5b848..5004f0f600 100644
--- a/lib/x509/crq.c
+++ b/lib/x509/crq.c
@@ -2574,7 +2574,7 @@ gnutls_x509_crq_privkey_sign(gnutls_x509_crq_t crq, gnutls_privkey_t key,
result =
_gnutls_x509_write_sig_params(crq->crq, "signatureAlgorithm",
gnutls_privkey_get_pk_algorithm
- (key, NULL), dig);
+ (key, NULL), dig, 0);
if (result < 0) {
gnutls_assert();
return result;