~clint-fewbar/ubuntu/natty/php5/merge-5.3.3-3

« back to all changes in this revision

Viewing changes to ext/openssl/openssl.c

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-01-26 14:09:58 UTC
  • mfrom: (1.1.16 upstream) (0.3.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100126140958-sos69zwa00q2nt19
Tags: 5.2.12.dfsg.1-2ubuntu1
* Merge from debian testing.  Remaining changes:
  - debian/control, debian/rules: Disable a few build dependencies and
    accompanying binary packages which we do not want to support in main:
    + firebird2-dev/php5-interbase (we have a seperate php-interbase source)
    + libc-client/php5-imap (we have a seperate php-imap source)
    + libmcrypt-dev/php5-mcrypt (seperate php-mcrypt source)
    + readline support again, now that the libedit issue is fixed.
  - debian/control: Add build dependency: libedit-dev (>= 2.9.cvs.20050518-1)
    CLI readline support.
  - debian/rules:
    + Correctly mangle PHP5_* macros for lpia
  - debian/control:
    + Rename Vcs-Browser & Vcs-Git to XS-Original-Vcs-Browser & XS-Original-Vcs-Git (LP: #323731).
  - debian/control: Move php5-suhoshin to Suggests.
  - debian/rules: Fix broken symlink for pear.
  - main/php_version.h: updated with Ubuntu version info
  - debian/patches/series: Re-enable the 033-we_WANT_libtool.patch patch
  - debian/rules, debian/source_php5.py: Install apport hook. 
* Dropped patches: CVE-2009-3557.patch and CVE-2009-3558.patch, no longer needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
   +----------------------------------------------------------------------+
21
21
 */
22
22
 
23
 
/* $Id: openssl.c 288329 2009-09-14 12:50:30Z iliaa $ */
 
23
/* $Id: openssl.c 290180 2009-11-03 18:24:57Z guenter $ */
24
24
 
25
25
#ifdef HAVE_CONFIG_H
26
26
#include "config.h"
49
49
/* Common */
50
50
#include <time.h>
51
51
 
 
52
#ifdef NETWARE
 
53
#define timezone _timezone      /* timezone is called _timezone in LibC */
 
54
#endif
 
55
 
52
56
#define DEFAULT_KEY_LENGTH      512
53
57
#define MIN_KEY_LENGTH          384
54
58
 
1444
1448
        int filename_len;
1445
1449
        char * pass;
1446
1450
        int pass_len;
1447
 
        zval *zcert = NULL, *zpkey = NULL, *args = NULL;
 
1451
        zval **zcert = NULL, *zpkey = NULL, *args = NULL;
1448
1452
        EVP_PKEY *priv_key = NULL;
1449
1453
        long certresource, keyresource;
1450
1454
        zval ** item;
1451
1455
        STACK_OF(X509) *ca = NULL;
1452
1456
 
1453
 
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zszs|a", &zcert, &filename, &filename_len, &zpkey, &pass, &pass_len, &args) == FAILURE)
 
1457
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Zszs|a", &zcert, &filename, &filename_len, &zpkey, &pass, &pass_len, &args) == FAILURE)
1454
1458
                return;
1455
1459
 
1456
1460
        RETVAL_FALSE;
1457
1461
        
1458
 
        cert = php_openssl_x509_from_zval(&zcert, 0, &certresource TSRMLS_CC);
 
1462
        cert = php_openssl_x509_from_zval(zcert, 0, &certresource TSRMLS_CC);
1459
1463
        if (cert == NULL) {
1460
1464
                php_error_docref(NULL TSRMLS_CC, E_WARNING, "cannot get cert from parameter 1");
1461
1465
                return;