You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/tiran'closed_at=<Date2013-11-17.19:10:22.637>created_at=<Date2013-10-30.09:55:08.439>labels= ['type-feature']
title='SSL: add OID / NID lookup'updated_at=<Date2013-11-22.15:21:03.639>user='https://github.com/tiran'
Thanks for the feed back! The new patch implements a class with two additional class methods. The low level functions are no longer part of the public API.
If it's for bpo-17134, couldn't it remain a private API?
I'm rather uncomfortable about exposing such things unless we make the ssl module a full-fledged toolbox to handle X509 certificates (and perhaps think a bit more about the APIs). Are there any common use cases?
OK, let's keep it as private API for now and maybe make it public in 3.5. I'm going to rename ASN1Object to _ASN1Object, remove the docs and adjust the tests. Agreed?
OK, let's keep it as private API for now and maybe make it public in
3.5. I'm going to rename ASN1Object to _ASN1Object, remove the docs
and adjust the tests. Agreed?
New changeset f43f65038e2a by Christian Heimes in branch 'default':
Issue bpo-19448: Add private API to SSL module to lookup ASN.1 objects by OID, NID, short name and long name. http://hg.python.org/cpython/rev/f43f65038e2a
Activity
tiran commentedon Oct 30, 2013
For bpo-17134 I need a decent way to map OIDs to human readable strings and vice versa. OpenSSL has a couple of method for the task, e.g. http://www.openssl.org/docs/crypto/OBJ_nid2obj.html
The patch implements three ways to lookup NID, SN, LN and OID: by OpenSSL's internal numeric id (NID), by OID or by name:
tiran commentedon Nov 1, 2013
Thanks for the feed back! The new patch implements a class with two additional class methods. The low level functions are no longer part of the public API.
tiran commentedon Nov 17, 2013
Does anybody want to do a review of the patch?
pitrou commentedon Nov 17, 2013
If it's for bpo-17134, couldn't it remain a private API?
I'm rather uncomfortable about exposing such things unless we make the ssl module a full-fledged toolbox to handle X509 certificates (and perhaps think a bit more about the APIs). Are there any common use cases?
tiran commentedon Nov 17, 2013
OK, let's keep it as private API for now and maybe make it public in 3.5. I'm going to rename ASN1Object to _ASN1Object, remove the docs and adjust the tests. Agreed?
pitrou commentedon Nov 17, 2013
Yup.
python-dev commentedon Nov 17, 2013
New changeset f43f65038e2a by Christian Heimes in branch 'default':
Issue bpo-19448: Add private API to SSL module to lookup ASN.1 objects by OID, NID, short name and long name.
http://hg.python.org/cpython/rev/f43f65038e2a
tiran commentedon Nov 17, 2013
Thanks!
python-dev commentedon Nov 22, 2013
New changeset 7d914d4b05fe by Christian Heimes in branch 'default':
Issue bpo-19448: report name / NID in exception message of ASN1Object
http://hg.python.org/cpython/rev/7d914d4b05fe