aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF_encryption.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2009-08-06 21:00:25 +0200
committerJay Berkenbilt <ejb@ql.org>2009-08-06 21:00:25 +0200
commit1e74c03acd39c000103b843d5acd3c0313da443a (patch)
treec603b2c2bb95b46bc129a0c28e6f87c0bd84428a /libqpdf/QPDF_encryption.cc
parented13d9074ef79847a10cfcfca32963c0883a2eb5 (diff)
downloadqpdf-1e74c03acd39c000103b843d5acd3c0313da443a.tar.zst
stick DLL_EXPORT in front of every public method of every public class
git-svn-id: svn+q:///qpdf/trunk@688 71b93d88-0707-0410-a8cf-f5a4172ac649
Diffstat (limited to 'libqpdf/QPDF_encryption.cc')
-rw-r--r--libqpdf/QPDF_encryption.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/libqpdf/QPDF_encryption.cc b/libqpdf/QPDF_encryption.cc
index bd7ef7a6..02517aed 100644
--- a/libqpdf/QPDF_encryption.cc
+++ b/libqpdf/QPDF_encryption.cc
@@ -32,6 +32,7 @@ pad_or_truncate_password(std::string const& password, char k1[key_bytes])
memcpy(k1 + password_bytes, padding_string, pad_bytes);
}
+DLL_EXPORT
void
QPDF::trim_user_password(std::string& user_password)
{
@@ -97,6 +98,7 @@ iterate_rc4(unsigned char* data, int data_len,
delete [] key;
}
+DLL_EXPORT
std::string
QPDF::compute_data_key(std::string const& encryption_key,
int objid, int generation)
@@ -120,6 +122,7 @@ QPDF::compute_data_key(std::string const& encryption_key,
std::min(result.length(), (size_t) 16));
}
+DLL_EXPORT
std::string
QPDF::compute_encryption_key(
std::string const& password, EncryptionData const& data)
@@ -424,6 +427,7 @@ QPDF::decryptStream(Pipeline*& pipeline, int objid, int generation,
heap.push_back(pipeline);
}
+DLL_EXPORT
void
QPDF::compute_encryption_O_U(
char const* user_password, char const* owner_password,
@@ -436,6 +440,7 @@ QPDF::compute_encryption_O_U(
U = compute_U_value(user_password, data);
}
+DLL_EXPORT
std::string const&
QPDF::getUserPassword() const
{