summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/beecrypt/beecrypt/fix-security.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/beecrypt/beecrypt/fix-security.patch')
-rw-r--r--meta/recipes-support/beecrypt/beecrypt/fix-security.patch47
1 files changed, 47 insertions, 0 deletions
diff --git a/meta/recipes-support/beecrypt/beecrypt/fix-security.patch b/meta/recipes-support/beecrypt/beecrypt/fix-security.patch
new file mode 100644
index 0000000000..6cb0c00205
--- /dev/null
+++ b/meta/recipes-support/beecrypt/beecrypt/fix-security.patch
@@ -0,0 +1,47 @@
1Fix visibility of various C++ functions, inspired by a similar patch in the Fink
2project:
3http://www.mail-archive.com/fink-commits@lists.sourceforge.net/msg75742.html
4
5JL 05/07/10
6
7Upstream-Status: Pending
8
9Index: beecrypt-4.2.1/include/beecrypt/c++/beeyond/BeeCertificate.h
10===================================================================
11--- beecrypt-4.2.1.orig/include/beecrypt/c++/beeyond/BeeCertificate.h 2010-11-26 17:22:57.000000000 +0800
12+++ beecrypt-4.2.1/include/beecrypt/c++/beeyond/BeeCertificate.h 2010-11-26 17:23:01.000000000 +0800
13@@ -147,13 +147,13 @@
14 mutable bytearray* enc;
15
16 BeeCertificate();
17- BeeCertificate(InputStream& in) throw (IOException);
18
19 void encodeTBS(DataOutputStream& out) const throw (IOException);
20
21 bytearray* encodeTBS() const throw (CertificateEncodingException);
22
23 public:
24+ BeeCertificate(InputStream& in) throw (IOException);
25 BeeCertificate(const BeeCertificate&) throw (CloneNotSupportedException);
26 virtual ~BeeCertificate();
27
28Index: beecrypt-4.2.1/include/beecrypt/c++/security/Security.h
29===================================================================
30--- beecrypt-4.2.1.orig/include/beecrypt/c++/security/Security.h 2010-11-26 17:20:55.000000000 +0800
31+++ beecrypt-4.2.1/include/beecrypt/c++/security/Security.h 2010-11-26 17:21:36.000000000 +0800
32@@ -61,7 +61,6 @@
33 friend class SecureRandom;
34 friend class Signature;
35
36- private:
37 struct spi
38 {
39 Object* cspi;
40@@ -76,6 +75,7 @@
41 static spi* getSpi(const String& algo, const String& type, const Provider&) throw (NoSuchAlgorithmException);
42 static spi* getFirstSpi(const String& type);
43
44+ private:
45 static const String& getKeyStoreDefault();
46
47 static bool _init;