Bug 796293
Summary: | cannot decode Basic Constraints | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Rob Crittenden <rcritten> | ||||
Component: | python-nss | Assignee: | John Dennis <jdennis> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 16 | CC: | dcantrell, jdennis, pkis | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | python-nss-0.13 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 796295 (view as bug list) | Environment: | |||||
Last Closed: | 2012-10-05 16:48:19 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 796295 | ||||||
Attachments: |
|
Description
Rob Crittenden
2012-02-22 16:07:34 UTC
Created attachment 565031 [details]
The failing CA PEM file
The format specifier for PyArg_ParseTupleAndKeywords in BasicConstraints_init() was wrong, instead of "O|i" it should have been "O!", looks like it was a cut-n-paste bug.
< if (!PyArg_ParseTupleAndKeywords(args, kwds, "O|i:BasicConstraints", kwlist,
---
> if (!PyArg_ParseTupleAndKeywords(args, kwds, "O!:BasicConstraints", kwlist,
As a note to myself, I found a couple of other places with similar issues, they're fixed in upstream tip but if we do a patch we should include these as well: - if (!PyArg_ParseTupleAndKeywords(args, kwds, "O|i:GeneralName", kwlist, + if (!PyArg_ParseTupleAndKeywords(args, kwds, "O!:GeneralName", kwlist, -------------- - if (!PyArg_ParseTuple(args, "O!|i:x509_key_usage", - &SecItemType, &py_sec_item, &repr_kind)) + if (!PyArg_ParseTupleAndKeywords(args, kwds, "O!|i:x509_key_usage", kwlist, + &SecItemType, &py_sec_item, &repr_kind)) --------------- - {"x509_key_usage", (PyCFunction)cert_x509_key_usage, METH_VARARGS, cert_x509_key_usage_doc}, + {"x509_key_usage", (PyCFunction)cert_x509_key_usage, METH_VARARGS|METH_KEYWORDS, cert_x509_key_usage_doc}, |