|
|
# --- ROCK-COPYRIGHT-NOTE-BEGIN --- # # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # Please add additional copyright information _after_ the line containing # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by # the ./scripts/Create-CopyPatch script. Do not edit this copyright text! # # ROCK Linux: rock-src/package/avm/asterisk-oh323/openssl-hotfix.patch.pwlib # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf # # This patch file is dual-licensed. It is available under the license the # patched project is licensed under, as long as it is an OpenSource license # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms # of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or (at your option) any later # version. # # --- ROCK-COPYRIGHT-NOTE-END ---
--- ./src/ptclib/pssl.cxx.orig 2005-07-25 14:03:17.000000000 +0200 +++ ./src/ptclib/pssl.cxx 2005-07-25 14:03:54.000000000 +0200 @@ -297,14 +297,14 @@ PSSLPrivateKey::PSSLPrivateKey(const BYTE * keyData, PINDEX keySize) { - key = d2i_AutoPrivateKey(NULL, (BYTE **)&keyData, keySize); + key = d2i_AutoPrivateKey(NULL, (const BYTE **)&keyData, keySize); } PSSLPrivateKey::PSSLPrivateKey(const PBYTEArray & keyData) { const BYTE * keyPtr = keyData; - key = d2i_AutoPrivateKey(NULL, (BYTE **)&keyPtr, keyData.GetSize()); + key = d2i_AutoPrivateKey(NULL, (const BYTE **)&keyPtr, keyData.GetSize()); } @@ -472,14 +472,14 @@ PSSLCertificate::PSSLCertificate(const BYTE * certData, PINDEX certSize) { - certificate = d2i_X509(NULL, (unsigned char **)&certData, certSize); + certificate = d2i_X509(NULL, (const unsigned char **)&certData, certSize); } PSSLCertificate::PSSLCertificate(const PBYTEArray & certData) { const BYTE * certPtr = certData; - certificate = d2i_X509(NULL, (unsigned char **)&certPtr, certData.GetSize()); + certificate = d2i_X509(NULL, (const unsigned char **)&certPtr, certData.GetSize()); } @@ -489,7 +489,7 @@ PBase64::Decode(certStr, certData); if (certData.GetSize() > 0) { const BYTE * certPtr = certData; - certificate = d2i_X509(NULL, (unsigned char **)&certPtr, certData.GetSize()); + certificate = d2i_X509(NULL, (const unsigned char **)&certPtr, certData.GetSize()); } else certificate = NULL;
|