aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/misc/cryptobox
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-12-27 15:48:00 -0500
committerJack Lloyd <[email protected]>2017-09-19 22:30:41 -0400
commit12c4dfec24e999ab80ff3a45e0b837976d4c390c (patch)
tree7de91a2b86aec055800b8e046729fcc10a31d6d8 /src/lib/misc/cryptobox
parent0c6c4e058109791a9f17971ca782dc10af3eb9bc (diff)
Add API stability annotations.
Defined in build.h, all equal to BOTAN_DLL so ties into existing system for exporting symbols.
Diffstat (limited to 'src/lib/misc/cryptobox')
-rw-r--r--src/lib/misc/cryptobox/cryptobox.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/misc/cryptobox/cryptobox.h b/src/lib/misc/cryptobox/cryptobox.h
index 8a524c93c..da58cbf21 100644
--- a/src/lib/misc/cryptobox/cryptobox.h
+++ b/src/lib/misc/cryptobox/cryptobox.h
@@ -26,7 +26,7 @@ namespace CryptoBox {
* @param passphrase the passphrase used to encrypt the message
* @param rng a ref to a random number generator, such as AutoSeeded_RNG
*/
-BOTAN_DLL std::string encrypt(const uint8_t input[], size_t input_len,
+BOTAN_PUBLIC_API(2,0) std::string encrypt(const uint8_t input[], size_t input_len,
const std::string& passphrase,
RandomNumberGenerator& rng);
@@ -37,7 +37,7 @@ BOTAN_DLL std::string encrypt(const uint8_t input[], size_t input_len,
* @param input_len the length of input in bytes
* @param passphrase the passphrase used to encrypt the message
*/
-BOTAN_DLL std::string decrypt(const uint8_t input[], size_t input_len,
+BOTAN_PUBLIC_API(2,0) std::string decrypt(const uint8_t input[], size_t input_len,
const std::string& passphrase);
/**
@@ -45,7 +45,7 @@ BOTAN_DLL std::string decrypt(const uint8_t input[], size_t input_len,
* @param input the input data
* @param passphrase the passphrase used to encrypt the message
*/
-BOTAN_DLL std::string decrypt(const std::string& input,
+BOTAN_PUBLIC_API(2,0) std::string decrypt(const std::string& input,
const std::string& passphrase);
}