# [PATCH] OpenSSL openssl_sign() patch

- Thread: https://externals.io/message/518
- Original archive: https://news-web.php.net/php.internals/518
- Started by scott on 2003-03-30T21:36:13+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

---

## #518 — scott — 2003-03-30T21:36:13+00:00

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

Hi,

I've created a patch for the modification I've made to the OpenSSL
extension.

The patch modifies the `openssl_sign()` function to accept a fourth
parameter, which specifies the hashing algorithm to use.

I've added 4 new constants to represent the hashing algorithms:

OPENSSL_ALGO_SHA1
OPENSSL_ALGO_MD5
OPENSSL_ALGO_MD4
OPENSSL_ALGO_MD2

Thanks,

Scott
scott@planetscott.ca

---

## #519 — Derick Rethans — 2003-03-30T21:56:05+00:00

URL: https://externals.io/message/518#519 · In reply to: #518

> I've created a patch for the modification I've made to the OpenSSL
> extension.
> 
> The patch modifies the `openssl_sign()` function to accept a fourth
> parameter, which specifies the hashing algorithm to use.

Looks fine, but can you please post the whole patch (including headers) 
and in 'Unified diff format' (add -u to 'cvs diff')?

regards,
Derick

-- 
                                        "my other box is your windows PC"
-------------------------------------------------------------------------
 Derick Rethans                                 http://derickrethans.nl/ 
 PHP Magazine - PHP Magazine for Professionals       http://php-mag.net/
