Skip to content

Conversation

@dhalperi
Copy link
Contributor

@dhalperi dhalperi commented Feb 10, 2021

List gives more power to the caller, and matches the same function for
RelativeDistinguishedName.

This is a follow-up to #5712 (cc: @alex / @reaperhulk).


This change is Reviewable

`List` gives more power to the caller.

Note that `RelativeDistinguishedName`, the same function returns a `List`.

Is there a reason this was `Iterable` only for `Name`? If we don't want to
promise `List`, `Sequence` is another alternative.
@dhalperi
Copy link
Contributor Author

Is there a reason this was Iterable only for Name? If we don't want to
promise List, Sequence is another alternative.

Copy link
Member

@alex alex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know why I did it this way.Thanks!

@alex alex merged commit 278fece into pyca:master Feb 10, 2021
@dhalperi dhalperi deleted the patch-1 branch February 10, 2021 22:54
reaperhulk pushed a commit to reaperhulk/cryptography that referenced this pull request Feb 13, 2021
`List` gives more power to the caller.

Note that `RelativeDistinguishedName`, the same function returns a `List`.

Is there a reason this was `Iterable` only for `Name`? If we don't want to
promise `List`, `Sequence` is another alternative.
alex added a commit that referenced this pull request Feb 13, 2021
* Bump pyo3 and lower MSRV (#5823)

* fix signature of EllipticCurvePublicKey.verify() (#5808)

The signature change was introduced in #5729 but is inconsistent with respect to related methods, breaks backward compatibility and compatibility with the OpenSSL backend (and maybe other backends) when named arguments are used.

* Name: update get_attributes_for_oid return type (#5809)

`List` gives more power to the caller.

Note that `RelativeDistinguishedName`, the same function returns a `List`.

Is there a reason this was `Iterable` only for `Name`? If we don't want to
promise `List`, `Sequence` is another alternative.

* Start typing a bunch of stuff from x509 extensions (#5812)

* part 2 of typing x509 extensions (#5815)

* 3.4.5 changelog and version bump

* spelling

* fix a false positive from the latest clippy (#5813)

Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
Co-authored-by: Markus Wamser <wamserma@users.noreply.github.com>
Co-authored-by: Dan Halperin <dhalperi@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants