# Patch for OpenSSL extension to implement SPKAC functions

- Thread: https://externals.io/message/56912
- Original archive: https://news-web.php.net/php.internals/56912
- Started by Jason Gerfen on 2011-12-13T17:06:59+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #56912 — Jason Gerfen — 2011-12-13T17:06:59+00:00

URL: https://externals.io/message/56912#56912

I posted this patch early last week to the list and did not see any
activity about it. According to the page (http://php.net/svn-php.php)
I should re-submit after a week just in case, so without further
adieu.

This is a simple implementation of four new functions to the OpenSSL
extensions to handle signed public key and challenge requires sent by
the *cough* *cough* new KeyGen tag
(http://dev.w3.org/html5/markup/keygen.html).

openssl_spki_new(mixed pkey, string challenge)
openssl_spki_verify(string spkac)
openssl_spki_export(mixed pkey)
openssl_spki_export_challenge(mixed pkey)
openssl_spki_details(mixed pkey)

Attached is the patch (tested against php-5.3.8 & openssl-1.0.0e) as
well as a cli test case and module test case.

-- 
Jason

---

## #56913 — Pierre Joye — 2011-12-13T17:14:21+00:00

URL: https://externals.io/message/56912#56913 · In reply to: #56912

hi,

Thanks for the patch!


> I posted this patch early last week to the list and did not see any
> activity about it. According to the page (http://php.net/svn-php.php)
> I should re-submit after a week just in case, so without further
> adieu.

Patience is a virtue :)

I added a comment and requests there, please follow up with these
there directly as well,

Thanks,

Cheers,
--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org
