Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage of X509_NAME_oneline is ``strongly discouraged'' #745

Closed
jcrowgey opened this issue Mar 28, 2018 · 1 comment
Closed

Usage of X509_NAME_oneline is ``strongly discouraged'' #745

jcrowgey opened this issue Mar 28, 2018 · 1 comment

Comments

@jcrowgey
Copy link

From the openssl 1.1.0f manual page for X509_NAME_PRINT_EX(3SSL)

NOTES
       The functions X509_NAME_oneline() and X509_NAME_print() are legacy functions which produce a non standard output form, they don't handle multi character fields and
       have various quirks and inconsistencies. Their use is strongly discouraged in new applications.

I noticed that pyopenssl.crypto.X509Name.repr uses X509_NAME_oneline to generate part of the repr:

format_result = _lib.X509_NAME_oneline(

@alex alex modified the milestones: 17.3.0, 18.0.0 Mar 28, 2018
jcrowgey pushed a commit to jcrowgey/pyopenssl that referenced this issue Mar 28, 2018
Additionally, makes stringified part conformant to RFC2253
@reaperhulk reaperhulk removed this from the 18.0.0 milestone May 16, 2018
@pyca pyca deleted a comment Jun 11, 2019
@alex
Copy link
Member

alex commented Oct 26, 2024

We intended to deprecate this entire class (#1321) in favor of pyca/cryptography's APIs, so this is overtaken by events.

@alex alex closed this as completed Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants