Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
1c324a8d
Commit
1c324a8d
authored
Aug 25, 2013
by
Christian Heimes
Browse files
Options
Browse Files
Download
Plain Diff
Issue #18709: Fix issue with IPv6 address in subjectAltName on Mac OS X Tiger
parents
37e5b928
103c9686
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
Lib/test/test_ssl.py
Lib/test/test_ssl.py
+15
-7
No files found.
Lib/test/test_ssl.py
View file @
1c324a8d
...
...
@@ -222,13 +222,21 @@ class BasicSocketTests(unittest.TestCase):
((
'emailAddress'
,
'python-dev@python.org'
),))
self
.
assertEqual
(
p
[
'subject'
],
subject
)
self
.
assertEqual
(
p
[
'issuer'
],
subject
)
self
.
assertEqual
(
p
[
'subjectAltName'
],
((
'DNS'
,
'altnull.python.org
\
x00
example.com'
),
(
'email'
,
'null@python.org
\
x00
user@example.org'
),
(
'URI'
,
'http://null.python.org
\
x00
http://example.org'
),
(
'IP Address'
,
'192.0.2.1'
),
(
'IP Address'
,
'2001:DB8:0:0:0:0:0:1
\
n
'
))
)
if
ssl
.
_OPENSSL_API_VERSION
>=
(
0
,
9
,
8
):
san
=
((
'DNS'
,
'altnull.python.org
\
x00
example.com'
),
(
'email'
,
'null@python.org
\
x00
user@example.org'
),
(
'URI'
,
'http://null.python.org
\
x00
http://example.org'
),
(
'IP Address'
,
'192.0.2.1'
),
(
'IP Address'
,
'2001:DB8:0:0:0:0:0:1
\
n
'
))
else
:
# OpenSSL 0.9.7 doesn't support IPv6 addresses in subjectAltName
san
=
((
'DNS'
,
'altnull.python.org
\
x00
example.com'
),
(
'email'
,
'null@python.org
\
x00
user@example.org'
),
(
'URI'
,
'http://null.python.org
\
x00
http://example.org'
),
(
'IP Address'
,
'192.0.2.1'
),
(
'IP Address'
,
'<invalid>'
))
self
.
assertEqual
(
p
[
'subjectAltName'
],
san
)
def
test_DER_to_PEM
(
self
):
with
open
(
SVN_PYTHON_ORG_ROOT_CERT
,
'r'
)
as
f
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment