Skip to content

Add X509 purpose constant v2 #13149

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

Closed
wants to merge 6 commits into from
Closed

Conversation

vjardin
Copy link
Contributor

@vjardin vjardin commented Jan 14, 2024

rebase an old pull request #6312

it is still WIP. It passes all the make test or
sapi/cli/php run-tests.php ext/openssl/tests/*.phpt

TBC: which commits should include openssl_arginfo.h's updates ?

Let's get it enabled for any case.

Suggested-by: Jakub Zelenka
  php#6312 (comment)
openssl_arginfo.h should be generated from openssl.stub.php, so drop
this commit
X509_PURPOSE_OCSP_HELPER, X509_PURPOSE_TIMESTAMP_SIGN are available from
OpenSSL for many years:
  - X509_PURPOSE_OCSP_HELPER, since 2001
  - X509_PURPOSE_TIMESTAMP_SIGN, since 2006
it should be generated from openssl.stub.php
@vjardin vjardin changed the title WIP - X509 purpos ev2 WIP - X509_PURPOSEv2 Jan 14, 2024
@vjardin vjardin changed the title WIP - X509_PURPOSEv2 WIP - Add X509 purpose constant v2 Jan 14, 2024
Thanks to the previous commit, we get new constants, let's check and
enforce them:
  X509_PURPOSE_OCSP_HELPER,
  X509_PURPOSE_TIMESTAMP_SIGN
using:
  ./configure --prefix=/home/vjardin/bin --enable-debug --with-openssl --enable-tokenizer  --disable-all --disable-cgi
  sapi/cli/php build/gen_stub.php -f ext/openssl/openssl.stub.php
@vjardin vjardin changed the title WIP - Add X509 purpose constant v2 Add X509 purpose constant v2 Jan 17, 2024
Copy link
Member

@devnexen devnexen left a comment

Choose a reason for hiding this comment

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

Makes sense to me

@devnexen devnexen closed this in 98e2948 Jan 19, 2024
@devnexen
Copy link
Member

Merci !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants