diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-06-18 11:19:37 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-06-18 11:19:37 +0200 |
commit | 53b7883d29620b77efb3ff3c5cf58c0099f297b4 (patch) | |
tree | 818c90eb6d5ccecafcd6220d238dedcce9c82a3d /lib/x509/pkcs7.c | |
parent | 672c27254dbb94df2306b5850180c8c943e2a722 (diff) | |
download | gnutls-53b7883d29620b77efb3ff3c5cf58c0099f297b4.tar.gz |
pkcs7: corrected write_signer_id() when GNUTLS_PKCS7_WRITE_SPKI was used
Diffstat (limited to 'lib/x509/pkcs7.c')
-rw-r--r-- | lib/x509/pkcs7.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/x509/pkcs7.c b/lib/x509/pkcs7.c index e5d6d1619a..b86378aad2 100644 --- a/lib/x509/pkcs7.c +++ b/lib/x509/pkcs7.c @@ -1708,7 +1708,7 @@ static int write_signer_id(ASN1_TYPE c2, const char *root, gnutls_x509_crt_t sig } serial_size = sizeof(serial); - result = gnutls_x509_crt_get_authority_key_id(signer, serial, &serial_size, NULL); + result = gnutls_x509_crt_get_subject_key_id(signer, serial, &serial_size, NULL); if (result < 0) return gnutls_assert_val(result); |