forked from ports/contrib
21 lines
641 B
Diff
21 lines
641 B
Diff
--- qca-tls-1.0/qca-tls.cpp.orig 2007-12-01 17:56:17.060155571 -0400
|
|
+++ qca-tls-1.0/qca-tls.cpp 2007-12-01 17:57:37.169934323 -0400
|
|
@@ -454,7 +454,7 @@
|
|
if(!r) {
|
|
// try this other public function, for whatever reason
|
|
p = (void *)in;
|
|
- r = d2i_RSA_PUBKEY(NULL, (unsigned char **)&p, len);
|
|
+ r = d2i_RSA_PUBKEY(NULL, (const unsigned char **)&p, len);
|
|
}
|
|
if(r) {
|
|
if(pub) {
|
|
@@ -798,7 +798,7 @@
|
|
|
|
bool createFromDER(const char *in, unsigned int len)
|
|
{
|
|
- unsigned char *p = (unsigned char *)in;
|
|
+ const unsigned char *p = (unsigned char *)in;
|
|
X509 *t = d2i_X509(NULL, &p, len);
|
|
if(!t)
|
|
return false;
|