| Ticket UUID: | 3439693 | |||
| Title: | ::pki::x509::parse_cert error | |||
| Type: | Bug | Version: | None | |
| Submitter: | Created on: | 2011-11-18 04:09:40 | ||
| Subsystem: | pki | Assigned To: | rkeene | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2011-11-22 00:35:58 | |
| Resolution: | Out of Date | Closed By: | nobody | |
| Closed on: | 2011-11-18 23:40:46 | |||
| Description: |
While parsing a cert, a bug comes when reviving strings on the issuer and subject objects. The problem comes in proc ::pki::x509::_dn_to_list as some certs has UTF8String instead of PrintableString. My solution was to replace
::asn::asnGetPrintableString curr_part value
by:
set a $curr_part
::asn::asnPeekByte a b
switch -- $b {
19 {::asn::asnGetPrintableString curr_part value}
12 {::asn::asnGetUTF8String curr_part value}
default {::asn::asnGetPrintableString curr_part value}
}
Hope that helps
Regards
-=Raul=-
| |||
| User Comments: |
added on 2011-11-19 06:40:46:
allow_comments - 1 added on 2011-11-19 06:26:59: Tested the release candidate version, it works fine with ::asn::asnGetString instead of going through the switch I mentioned. andreas_kupries added on 2011-11-18 23:44:07: Side note: The files section contains "release candidate 0" of a 1.14 Tcllib release. This contains pki 0.2. In other words, testing is possible without going through CVS. andreas_kupries added on 2011-11-18 23:43:03: Putting this on the road to closing, given Roy's information (see previous comment). rkeene added on 2011-11-18 14:27:05: This has been fixed in "pki" version 0.2, which was committed to tcllib a few days ago. I initially took the same approach as you before I noticed [asn::asnGetString]. added on 2011-11-18 12:55:57: add this other line in the switch body
22 {::asn::asnGetIA5String curr_part value}
| |||
Home
Blog
Docs
Downloads
Tickets
Timeline
Branches
Tags
Wiki