php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #61421
Patch openssl-add-sig-algs.txt revision 2012-06-18 20:47 UTC by mark at zedwood dot com
Patch openssl-add-rmd160-sha2-sig-alg.patch revision 2012-04-05 22:08 UTC by mark at zedwood dot com
revision 2012-04-05 22:04 UTC by mark at zedwood dot com
Patch openssl-add-ripemd160-sha2-sig-algs revision 2012-04-02 18:19 UTC by mark at zedwood dot com
Patch add_openssl_signature_algorithms.txt revision 2012-03-16 19:35 UTC by zedwoodnoreply at gmail dot com

Patch openssl-add-rmd160-sha2-sig-alg.patch for OpenSSL related Bug #61421

Patch version 2012-04-05 22:08 UTC

Return to Bug #61421 | Download this patch
This patch is obsolete

Obsoleted by patches:

This patch renders other patches obsolete

Obsolete patches:

Patch Revisions: 2012-04-05 22:08 UTC | 2012-04-05 22:04 UTC

Developer: mark@zedwood.com



   	REGISTER_LONG_CONSTANT("PKCS7_DETACHED", PKCS7_DETACHED, CONST_CS|CONST_PERSISTENT);
   	REGISTER_LONG_CONSTANT("PKCS7_TEXT", PKCS7_TEXT, CONST_CS|CONST_PERSISTENT);
  diff -urN php-5.4.0-orig/ext/openssl/tests/bug61421.phpt php-5.4.0/ext/openssl/tests/bug61421.phpt
  --- php-5.4.0-orig/ext/openssl/tests/bug61421.phpt	1969-12-31 17:00:00.000000000 -0700
 +++ php-5.4.0/ext/openssl/tests/bug61421.phpt	2012-04-02 11:45:19.232200358 -0600
 +++ php-5.4.0/ext/openssl/tests/bug61421.phpt	2012-04-05 16:05:11.055205268 -0600
  @@ -0,0 +1,121 @@
  +--TEST--
 +openssl_verify() for ripemd160 and sha2 family
 +openssl_verify() for rmd160 and sha2 family
  +--SKIPIF--
  +<?php if (!extension_loaded("openssl")) print "skip"; 
  +if (OPENSSL_VERSION_NUMBER < 0x0090708f) die("skip Output requires OpenSSL 0.9.7h or greater");
  +?>
  +--FILE--
  +<?php
  +$to_test = array();
 +$to_test[] = array('data_length'=>336,'sig_offset'=>356,'alg'=>OPENSSL_ALGO_RIPEMD160,'csr'=>'-----BEGIN CERTIFICATE REQUEST-----
 +$to_test[] = array('data_length'=>336,'sig_offset'=>356,'alg'=>OPENSSL_ALGO_RMD160,'csr'=>'-----BEGIN CERTIFICATE REQUEST-----
  +MIICZTCCAVACAQAwIzELMAkGA1UEBhMCVVMxFDASBgNVBAMTC2V4YW1wbGUuY29t
  +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1swVdlC2GbRJY6z23C1l
  +eqyHMKcq68WOjuu84c15b+/UVTPxwTT8XEdJP5Dxbkg3j3O0D7IjUUzHSuSG3Tig
  +tvjxOIjIY0y7c6eg9/jIGPAQREiTi8Eym0Ney+WLJ4ysWIEU0YMSF0f5XAxLZhgW
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Fri Apr 18 18:01:58 2014 UTC