pyca / cryptography

cryptography is a package designed to expose cryptographic primitives and recipes to Python developers.
https://cryptography.io
Other
6.59k stars 1.51k forks source link

Update reference.rst #11137

Closed ndragon798 closed 3 months ago

ndragon798 commented 3 months ago

This code snippet works when importing the extension oid Without it you get

ext = cert.extensions.get_extension_for_oid(ExtensionOID.SUBJECT_ALTERNATIVE_NAME)
                                                ^^^^^^^^^^^^
NameError: name 'ExtensionOID' is not defined
alex commented 3 months ago

thanks