Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 944645 Details for
Bug 1148895
RFE: Use same CKA_ID for certificates with same subject key identifier
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Use X509v3 Subject Key Identifier in p11_x509_calc_keyid()
use-x509v3-subject-key-id.patch (text/plain), 1.13 KB, created by
David Woodhouse
on 2014-10-07 15:43:19 UTC
(
hide
)
Description:
Use X509v3 Subject Key Identifier in p11_x509_calc_keyid()
Filename:
MIME Type:
Creator:
David Woodhouse
Created:
2014-10-07 15:43:19 UTC
Size:
1.13 KB
patch
obsolete
>diff --git a/trust/x509.c b/trust/x509.c >index b93d26c..9f5a0a6 100644 >--- a/trust/x509.c >+++ b/trust/x509.c >@@ -100,11 +100,29 @@ p11_x509_calc_keyid (node_asn *cert, > int start, end; > size_t len; > int ret; >+ unsigned char *ski; >+ size_t ski_len; > > return_val_if_fail (cert != NULL, NULL); > return_val_if_fail (der != NULL, NULL); > return_val_if_fail (keyid != NULL, NULL); > >+ ski = p11_x509_find_extension (cert, P11_OID_SUBJECT_KEY_IDENTIFIER, der, der_len, &ski_len); >+ if (ski) { >+ unsigned long tag; >+ unsigned char cls; >+ long octet_len; >+ int tag_len, len_len; >+ >+ if (asn1_get_tag_der (ski, ski_len, &cls, &tag_len, &tag) == ASN1_SUCCESS && >+ (octet_len = asn1_get_length_der (ski + tag_len, ski_len - tag_len, &len_len)) >= 0 && >+ tag_len + len_len + octet_len == ski_len && >+ octet_len == P11_DIGEST_SHA1_LEN) { >+ memcpy(keyid, ski + tag_len + len_len, octet_len); >+ return true; >+ } >+ } >+ > ret = asn1_der_decoding_startEnd (cert, der, der_len, "tbsCertificate.subjectPublicKeyInfo", &start, &end); > return_val_if_fail (ret == ASN1_SUCCESS, false); > return_val_if_fail (end >= start, false);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1148895
:
943419
|
943420
|
943493
|
943494
|
944600
| 944645