Patch for OpenSSL extension to implement SPKAC functions
| From: | Jason Gerfen | Date: | Tue, 13 Dec 2011 17:06:59 +0000 |
| Subject: | Patch for OpenSSL extension to implement SPKAC functions | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-56912@lists.php.net to get a copy of this message | ||
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
Attachment: [application/x-httpd-php] openssl-spki.php
Attachment: [application/x-httpd-php] openssl-spki-cli.php
Attachment: [application/x-httpd-php] openssl-spki.php
Attachment: [application/x-httpd-php] openssl-spki-cli.php