diff options
author | Dmitry Sivachenko <demon@FreeBSD.org> | 2005-09-06 06:06:15 +0000 |
---|---|---|
committer | Dmitry Sivachenko <demon@FreeBSD.org> | 2005-09-06 06:06:15 +0000 |
commit | 0a7ff81632bdd6c172352602d221a86d10be02a3 (patch) | |
tree | 1c859e9748f674debdac25455bc265a85c8c24d3 /security/qca-tls/files/patch-qca-tls.cpp | |
parent | - update to 1.5.7 (diff) |
Fix build with openssl-0.9.8.
PR: 85309
Submitted by: Daniel Roethlisberger <daniel@roe.ch>
Notes
Notes:
svn path=/head/; revision=142052
Diffstat (limited to 'security/qca-tls/files/patch-qca-tls.cpp')
-rw-r--r-- | security/qca-tls/files/patch-qca-tls.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/security/qca-tls/files/patch-qca-tls.cpp b/security/qca-tls/files/patch-qca-tls.cpp new file mode 100644 index 000000000000..931c634383b0 --- /dev/null +++ b/security/qca-tls/files/patch-qca-tls.cpp @@ -0,0 +1,26 @@ +--- qca-tls.cpp.orig Fri Aug 26 10:47:35 2005 ++++ qca-tls.cpp Fri Aug 26 10:51:07 2005 +@@ -454,7 +454,11 @@ + if(!r) { + // try this other public function, for whatever reason + p = (void *)in; ++#ifdef OSSL_098 ++ r = d2i_RSA_PUBKEY(NULL, (const unsigned char **)&p, len); ++#else + r = d2i_RSA_PUBKEY(NULL, (unsigned char **)&p, len); ++#endif + } + if(r) { + if(pub) { +@@ -799,7 +803,11 @@ + bool createFromDER(const char *in, unsigned int len) + { + unsigned char *p = (unsigned char *)in; ++#ifdef OSSL_098 ++ X509 *t = d2i_X509(NULL, (const unsigned char**)&p, len); ++#else + X509 *t = d2i_X509(NULL, &p, len); ++#endif + if(!t) + return false; + fromX509(t); |