mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.5 KiB

  1. --- ./src/ptclib/pssl.cxx.orig 2005-07-25 14:03:17.000000000 +0200
  2. +++ ./src/ptclib/pssl.cxx 2005-07-25 14:03:54.000000000 +0200
  3. @@ -297,14 +297,14 @@
  4. PSSLPrivateKey::PSSLPrivateKey(const BYTE * keyData, PINDEX keySize)
  5. {
  6. - key = d2i_AutoPrivateKey(NULL, (BYTE **)&keyData, keySize);
  7. + key = d2i_AutoPrivateKey(NULL, (const BYTE **)&keyData, keySize);
  8. }
  9. PSSLPrivateKey::PSSLPrivateKey(const PBYTEArray & keyData)
  10. {
  11. const BYTE * keyPtr = keyData;
  12. - key = d2i_AutoPrivateKey(NULL, (BYTE **)&keyPtr, keyData.GetSize());
  13. + key = d2i_AutoPrivateKey(NULL, (const BYTE **)&keyPtr, keyData.GetSize());
  14. }
  15. @@ -472,14 +472,14 @@
  16. PSSLCertificate::PSSLCertificate(const BYTE * certData, PINDEX certSize)
  17. {
  18. - certificate = d2i_X509(NULL, (unsigned char **)&certData, certSize);
  19. + certificate = d2i_X509(NULL, (const unsigned char **)&certData, certSize);
  20. }
  21. PSSLCertificate::PSSLCertificate(const PBYTEArray & certData)
  22. {
  23. const BYTE * certPtr = certData;
  24. - certificate = d2i_X509(NULL, (unsigned char **)&certPtr, certData.GetSize());
  25. + certificate = d2i_X509(NULL, (const unsigned char **)&certPtr, certData.GetSize());
  26. }
  27. @@ -489,7 +489,7 @@
  28. PBase64::Decode(certStr, certData);
  29. if (certData.GetSize() > 0) {
  30. const BYTE * certPtr = certData;
  31. - certificate = d2i_X509(NULL, (unsigned char **)&certPtr, certData.GetSize());
  32. + certificate = d2i_X509(NULL, (const unsigned char **)&certPtr, certData.GetSize());
  33. }
  34. else
  35. certificate = NULL;