Commit Graph

188 Commits

Author SHA1 Message Date
Sebastian Bergmann
22f4ef45fe sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php 2010-01-03 09:23:27 +00:00
Guenter Knauf
e31e228a59 added timezone define for NetWare. 2009-11-03 21:26:39 +00:00
Felipe Pena
287b30ae50 - Fixed memory leak in openssl_pkcs12_export_to_file() 2009-10-27 21:37:03 +00:00
Arnaud Le Blanc
c29b5be312 Added client-side Server Name Indication (SNI) support in OpenSSL extension.
#
# [DOC]
#
# New SSL context options :
#
# - SNI_enabled : Set to FALSE to disable SNI support (enabled by default)
# - SNI_server_name : If not set, the server name will be guessed from the
# stream URL (e.g. https://example.com/ will use example.com as hostname.),
# else the given name will be used.
#
# SNI is to SSL/TLS what the Host header is for HTTP : it allows multiple
# certificates on the same IP address.
#
# As for HTTP virtual hosts, this should be totaly transparent in most cases.
#
# Context options allows more control, e.g. :
# 
# $context = stream_context_create(array(
#   'ssl' => array('SNI_server_name' => 'foo.example.com'),
#   'http' => array('header' => 'Host: foo.example.com'),
# ));
# file_get_contents('https://127.0.0.1/', false, $context);
#
# OpenSSL >= 0.9.8j supports SNI (by default since OpenSSL 0.9.8k).
2009-10-21 16:10:19 +00:00
Ilia Alshanetsky
d3ae759391 Fixed certificate validation inside php_openssl_apply_verification_policy 2009-09-14 12:50:30 +00:00
Jani Taskinen
c5584b5f68 - Fixed compile failure with older openssl libs (< 0.9.8), fixes bug #49012 2009-07-30 11:32:08 +00:00
Pierre Joye
6108111d36 - #48116, fix build with openssl 1.0 2009-07-06 23:36:56 +00:00
Mikko Koppanen
573961e6f9 Closes #47991 SSL streams fail if error stack contains items 2009-04-20 09:43:45 +00:00
Scott MacVicar
bf22f79452 Fix bug #47828 - Converting to UTF-8 can sometimes fail, check error codes and avoid segfault. 2009-03-29 23:32:17 +00:00
Marcus Boerger
d4f5b3f0a9 - This is PHP 6 - if this ... ever gets out 2009-03-10 23:40:06 +00:00
Sebastian Bergmann
7f4dc8702a Bump copyright year, 3 of 3. 2008-12-31 11:12:40 +00:00
Pierre Joye
934f3293a6 - MFB: #41033, enable signing with DSA keys 2008-11-18 02:12:48 +00:00
Scott MacVicar
355c955639 Add openssl_random_pseudo_bytes() in order to expose access to a PRG, this wraps around whatever the OS provides.
- OpenBSD uses arc4random()
- Windows uses the Windows Crypto API
- FreeBSD, Linux, etc use /dev/random or /dev/urandom if available
[DOC]
2008-11-17 21:54:20 +00:00
Felipe Pena
43791516db - Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro (again!) 2008-11-17 11:26:25 +00:00
Felipe Pena
e006a89e71 - Revert ZEND_BEGIN_ARG_INFO change 2008-11-02 21:10:13 +00:00
Ilia Alshanetsky
726f72a406 MFB: Fixed compiler warning 2008-10-26 14:36:25 +00:00
Felipe Pena
7eb2715464 - Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro 2008-10-24 14:34:17 +00:00
Arnaud Le Blanc
51f7cc3925 initialize optional vars 2008-10-21 23:36:17 +00:00
Ilia Alshanetsky
af8866961f MFB: Fixed bug #46271 (local_cert option is not resolved to full path) 2008-10-14 23:39:02 +00:00
Rob Richards
ad1c02c3f4 initialize keyresource 2008-09-30 14:40:58 +00:00
Scott MacVicar
f994f24c58 Show the library version currently loaded as well as the version the extension was compiled with. Useful for checking PHP is using the latest version. 2008-09-18 16:02:09 +00:00
Antony Dovgal
cb39231101 fix typo 2008-08-05 14:58:57 +00:00
Antony Dovgal
a4c57b7347 fix folding 2008-07-30 11:58:43 +00:00
Henrique do Nascimento Angelo
dfa9ff5624 Add unicode suport to ext/openssl 2008-07-18 23:59:49 +00:00
Henrique do Nascimento Angelo
93353faf5b Fix error message 2008-07-15 03:21:56 +00:00
Henrique do Nascimento Angelo
1ad5a03d8f Fix uninitilized variables in openssl_pkcs7_encrypt() and openssl_pkcs7_sign() 2008-07-15 03:04:26 +00:00
Henrique do Nascimento Angelo
f385e69fdb Fix segfault caused by openssl_pkey_new() in ext/openssl/tests/006.phpt 2008-07-15 02:46:26 +00:00
Henrique do Nascimento Angelo
d44509418e Fix a memory leak on openssl_decrypt() 2008-06-28 09:24:18 +00:00
Hannes Magnusson
4b6a31d286 MFB: fix arginfo 2008-06-01 18:25:29 +00:00
Hannes Magnusson
0fcbb305cc MFB: Add arginfo & fix protos 2008-06-01 18:21:05 +00:00
Etienne Kneuss
5f4e5fa60a Fix protos 2008-05-04 21:16:22 +00:00
Antony Dovgal
9dea5a0747 initialize variable 2008-04-02 14:35:16 +00:00
Felipe Pena
a1e8d340c3 New macro for check void parameters 2008-02-28 14:16:25 +00:00
Rob Richards
f395be9407 fix memleak in sign and verify functions 2008-01-15 15:12:12 +00:00
Rob Richards
2e656bee3b fix crash when using default algorithm 2008-01-09 16:46:52 +00:00
Sebastian Bergmann
9b620d50b4 Bump copyright year, 2 of 2. 2007-12-31 07:12:20 +00:00
Dmitry Stogov
8146078f7b Improved memory usage by movig constants to read only memory. (Dmitry, Pierre) 2007-09-27 18:28:44 +00:00
Dmitry Stogov
070e0e30b9 Revert ws-breaking patch 2007-09-27 08:28:46 +00:00
Dmitry Stogov
c9ecd0169a Fixed generation on DH publick key for given private key 2007-08-10 10:43:37 +00:00
Pierre Joye
6f7b46afbd - MFB: fix regressio introduced by #42222 2007-08-08 06:30:56 +00:00
Pierre Joye
ac3a73972a - MFB: #42222, forgot this one (thanks mattias) 2007-08-06 19:50:16 +00:00
Pierre Joye
0f55627dee - MFB: #42222, truncate the _default to the buffer size (was 200 since day #1, we don't need dynamic alloc here) 2007-08-06 19:13:05 +00:00
Dmitry Stogov
a433f85ce1 Improved ext/openssl
. Added support for OpenSSL digest functions
  . Added support for OpenSSL cipher functions
  . Added access to internal values of DSA, RSA and DH keys
2007-08-06 08:43:43 +00:00
Dmitry Stogov
35cdce9e02 Unicode support
improved openssl_x509_parse() extensions support
2007-07-11 12:10:28 +00:00
Dmitry Stogov
27737a9c45 Fixed memory leak 2007-07-11 07:35:53 +00:00
Dmitry Stogov
f54b1377a2 Fixed crash on non-string passphrase and unicode support 2007-07-11 07:27:20 +00:00
Dmitry Stogov
a84dbc7cb6 Fixed bug #41353 2007-07-10 07:57:15 +00:00
Pierre Joye
8a4c51e17a - MFB: Fixed a memory leak inside load_all_certs_file() 2007-06-20 05:27:38 +00:00
Ilia Alshanetsky
3821f0c45a MFB 2007-05-28 23:33:13 +00:00
Pierre Joye
2a10caedcf - MFB: enable DSA key if HAVE_DSA_DEFAULT_METHOD is set 2007-05-28 13:53:54 +00:00