The unified diff between revisions [5ac60dc5..] and [2fac918f..] is displayed below. It can also be downloaded as a raw diff.

This diff has been restricted to the following files: 'src/engine.cpp'

#
#
# patch "src/engine.cpp"
#  from [bf3c1acdcb480eb07013cebc9f03417730b1e01f]
#    to [7037c740399a1b4b4c0fc131150aaafeb754ed43]
#
============================================================
--- src/engine.cpp	bf3c1acdcb480eb07013cebc9f03417730b1e01f
+++ src/engine.cpp	7037c740399a1b4b4c0fc131150aaafeb754ed43
@@ -1,6 +1,6 @@
 /*************************************************
 * Engine Source File                             *
-* (C) 1999-2007 The Botan Project                *
+* (C) 1999-2007 Jack Lloyd                       *
 *************************************************/

 #include <botan/engine.h>
@@ -223,7 +223,7 @@ const BlockCipherModePaddingMethod* retr
 /*************************************************
 * Add a new block cipher                         *
 *************************************************/
-void add_algorithm(BlockCipher* algo)
+BOTAN_DLL void add_algorithm(BlockCipher* algo)
    {
    Library_State::Engine_Iterator i(global_state());

@@ -243,7 +243,7 @@ void add_algorithm(BlockCipher* algo)
 /*************************************************
 * Add a new stream cipher                        *
 *************************************************/
-void add_algorithm(StreamCipher* algo)
+BOTAN_DLL void add_algorithm(StreamCipher* algo)
    {
    Library_State::Engine_Iterator i(global_state());

@@ -263,7 +263,7 @@ void add_algorithm(StreamCipher* algo)
 /*************************************************
 * Add a new hash function                        *
 *************************************************/
-void add_algorithm(HashFunction* algo)
+BOTAN_DLL void add_algorithm(HashFunction* algo)
    {
    Library_State::Engine_Iterator i(global_state());

@@ -283,7 +283,7 @@ void add_algorithm(HashFunction* algo)
 /*************************************************
 * Add a new authentication code                  *
 *************************************************/
-void add_algorithm(MessageAuthenticationCode* algo)
+BOTAN_DLL void add_algorithm(MessageAuthenticationCode* algo)
    {
    Library_State::Engine_Iterator i(global_state());

@@ -303,7 +303,7 @@ void add_algorithm(MessageAuthentication
 /*************************************************
 * Add a padding method to the lookup table       *
 *************************************************/
-void add_algorithm(BlockCipherModePaddingMethod* algo)
+BOTAN_DLL void add_algorithm(BlockCipherModePaddingMethod* algo)
    {
    Library_State::Engine_Iterator i(global_state());

@@ -323,7 +323,8 @@ void add_algorithm(BlockCipherModePaddin
 /*************************************************
 * Get a cipher object                            *
 *************************************************/
-Keyed_Filter* get_cipher(const std::string& algo_spec, Cipher_Dir direction)
+BOTAN_DLL Keyed_Filter* get_cipher(const std::string& algo_spec,
+                                   Cipher_Dir direction)
    {
    Library_State::Engine_Iterator i(global_state());

@@ -340,8 +341,10 @@ Keyed_Filter* get_cipher(const std::stri
 /*************************************************
 * Get a cipher object                            *
 *************************************************/
-Keyed_Filter* get_cipher(const std::string& algo_spec, const SymmetricKey& key,
-                         const InitializationVector& iv, Cipher_Dir direction)
+BOTAN_DLL Keyed_Filter* get_cipher(const std::string& algo_spec,
+                                   const SymmetricKey& key,
+                                   const InitializationVector& iv,
+                                   Cipher_Dir direction)
    {
    Keyed_Filter* cipher = get_cipher(algo_spec, direction);
    cipher->set_key(key);
@@ -352,8 +355,9 @@ Keyed_Filter* get_cipher(const std::stri
 /*************************************************
 * Get a cipher object                            *
 *************************************************/
-Keyed_Filter* get_cipher(const std::string& algo_spec, const SymmetricKey& key,
-                         Cipher_Dir direction)
+BOTAN_DLL Keyed_Filter* get_cipher(const std::string& algo_spec,
+                                   const SymmetricKey& key,
+                                   Cipher_Dir direction)
    {
    return get_cipher(algo_spec, key, InitializationVector(), direction);
    }