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

Missing OpenSSL constants #4241

Open
Girgias opened this issue Dec 4, 2024 · 2 comments
Open

Missing OpenSSL constants #4241

Girgias opened this issue Dec 4, 2024 · 2 comments
Labels
Extension: openssl OpenSSL good first issue Good for newcomers QA Quality Assurance

Comments

@Girgias
Copy link
Member

Girgias commented Dec 4, 2024

Some are in the PHP 8.4 UPGRADING guide, however more are missing and I don't have version information for them:

  • X509_PURPOSE_OCSP_HELPER
  • X509_PURPOSE_TIMESTAMP_SIGN
  • PKCS7_DETACHED
  • PKCS7_TEXT
  • PKCS7_NOINTERN
  • PKCS7_NOVERIFY
  • PKCS7_NOCHAIN
  • PKCS7_NOCERTS
  • PKCS7_NOATTR
  • PKCS7_BINARY
  • PKCS7_NOSIGS
  • PKCS7_NOOLDMIMETYPE
  • OPENSSL_CMS_DETACHED
  • OPENSSL_CMS_TEXT
  • OPENSSL_CMS_NOINTERN
  • OPENSSL_CMS_NOVERIFY
  • OPENSSL_CMS_NOCERTS
  • OPENSSL_CMS_NOATTR
  • OPENSSL_CMS_BINARY
  • OPENSSL_CMS_NOSIGS
  • OPENSSL_CMS_OLDMIMETYPE
  • OPENSSL_KEYTYPE_X25519
  • OPENSSL_KEYTYPE_ED25519
  • OPENSSL_KEYTYPE_X448
  • OPENSSL_KEYTYPE_ED448

Determined via a new tool I'm working on.

@Girgias Girgias added good first issue Good for newcomers QA Quality Assurance Extension: openssl OpenSSL labels Dec 4, 2024
@damianwadley
Copy link
Member

As far as I can tell searching through git histories,

Added in PHP 8.4, always available:

  • X509_PURPOSE_OCSP_HELPER (since 0.9.6a)
  • X509_PURPOSE_TIMESTAMP_SIGN (since 0.9.8k)

Added in PHP 8.4, available if built against openssl >=3.0.0 but seems to have existed since 1.1.1:

  • OPENSSL_KEYTYPE_X25519
  • OPENSSL_KEYTYPE_ED25519
  • OPENSSL_KEYTYPE_X448
  • OPENSSL_KEYTYPE_ED448

Added in PHP 8.3, always available:

  • PKCS7_NOOLDMIMETYPE (since 0.9.7d)
  • OPENSSL_CMS_OLDMIMETYPE (since 0.9.5) - fun fact: like above, the underlying constant is NOOLDMIMETYPE

Added in PHP 8.0, always available, since 0.9.8k:

  • OPENSSL_CMS_DETACHED
  • OPENSSL_CMS_TEXT
  • OPENSSL_CMS_NOINTERN
  • OPENSSL_CMS_NOVERIFY
  • OPENSSL_CMS_NOCERTS
  • OPENSSL_CMS_NOATTR
  • OPENSSL_CMS_BINARY
  • OPENSSL_CMS_NOSIGS

Was present in PHP 4.0, always available, since 0.9.5:

  • PKCS7_DETACHED
  • PKCS7_TEXT
  • PKCS7_NOINTERN
  • PKCS7_NOVERIFY
  • PKCS7_NOCHAIN
  • PKCS7_NOCERTS
  • PKCS7_NOATTR
  • PKCS7_BINARY
  • PKCS7_NOSIGS

@Girgias
Copy link
Member Author

Girgias commented Dec 4, 2024

Thank you for gathering the version info!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Extension: openssl OpenSSL good first issue Good for newcomers QA Quality Assurance
Projects
None yet
Development

No branches or pull requests

2 participants