NIOSSLCertificate._subjectAlternativeNames() can currently return nil or an empty _SubjectAlternativeNames collection. There is no semantic difference in these two cases.
Modification
support a nilnameStack in _SubjectAlternativeNames
make NIOSSLCertificate._subjectAlternativeNames() return type non-optional
Result
We now return an empty _SubjectAlternativeNames instead of nil
Source Compatibility
This is a non-breaking change even though this is public API because it has an underscore prefix. It is therefore unstable and allowed to change in a minor release.
Motivation
NIOSSLCertificate._subjectAlternativeNames()
can currently returnnil
or an empty_SubjectAlternativeNames
collection. There is no semantic difference in these two cases.Modification
nil
nameStack
in_SubjectAlternativeNames
NIOSSLCertificate._subjectAlternativeNames()
return type non-optionalResult
We now return an empty
_SubjectAlternativeNames
instead ofnil
Source Compatibility
This is a non-breaking change even though this is public API because it has an underscore prefix. It is therefore unstable and allowed to change in a minor release.