aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/codec
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/codec
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/codec')
-rw-r--r--src/lib/codec/base64/base64.h14
-rw-r--r--src/lib/codec/hex/hex.h18
2 files changed, 16 insertions, 16 deletions
diff --git a/src/lib/codec/base64/base64.h b/src/lib/codec/base64/base64.h
index 70d806ee8..aefed4ba5 100644
--- a/src/lib/codec/base64/base64.h
+++ b/src/lib/codec/base64/base64.h
@@ -26,7 +26,7 @@ namespace Botan {
padding chars will be applied if needed
* @return number of bytes written to output
*/
-size_t BOTAN_DLL base64_encode(char output[],
+size_t BOTAN_PUBLIC_API(2,0) base64_encode(char output[],
const uint8_t input[],
size_t input_length,
size_t& input_consumed,
@@ -38,7 +38,7 @@ size_t BOTAN_DLL base64_encode(char output[],
* @param input_length length of input in bytes
* @return base64adecimal representation of input
*/
-std::string BOTAN_DLL base64_encode(const uint8_t input[],
+std::string BOTAN_PUBLIC_API(2,0) base64_encode(const uint8_t input[],
size_t input_length);
/**
@@ -67,7 +67,7 @@ std::string base64_encode(const std::vector<uint8_t, Alloc>& input)
exception if whitespace is encountered
* @return number of bytes written to output
*/
-size_t BOTAN_DLL base64_decode(uint8_t output[],
+size_t BOTAN_PUBLIC_API(2,0) base64_decode(uint8_t output[],
const char input[],
size_t input_length,
size_t& input_consumed,
@@ -83,7 +83,7 @@ size_t BOTAN_DLL base64_decode(uint8_t output[],
exception if whitespace is encountered
* @return number of bytes written to output
*/
-size_t BOTAN_DLL base64_decode(uint8_t output[],
+size_t BOTAN_PUBLIC_API(2,0) base64_decode(uint8_t output[],
const char input[],
size_t input_length,
bool ignore_ws = true);
@@ -96,7 +96,7 @@ size_t BOTAN_DLL base64_decode(uint8_t output[],
exception if whitespace is encountered
* @return number of bytes written to output
*/
-size_t BOTAN_DLL base64_decode(uint8_t output[],
+size_t BOTAN_PUBLIC_API(2,0) base64_decode(uint8_t output[],
const std::string& input,
bool ignore_ws = true);
@@ -108,7 +108,7 @@ size_t BOTAN_DLL base64_decode(uint8_t output[],
exception if whitespace is encountered
* @return decoded base64 output
*/
-secure_vector<uint8_t> BOTAN_DLL base64_decode(const char input[],
+secure_vector<uint8_t> BOTAN_PUBLIC_API(2,0) base64_decode(const char input[],
size_t input_length,
bool ignore_ws = true);
@@ -119,7 +119,7 @@ secure_vector<uint8_t> BOTAN_DLL base64_decode(const char input[],
exception if whitespace is encountered
* @return decoded base64 output
*/
-secure_vector<uint8_t> BOTAN_DLL base64_decode(const std::string& input,
+secure_vector<uint8_t> BOTAN_PUBLIC_API(2,0) base64_decode(const std::string& input,
bool ignore_ws = true);
/**
diff --git a/src/lib/codec/hex/hex.h b/src/lib/codec/hex/hex.h
index 2927640e2..d22f1e084 100644
--- a/src/lib/codec/hex/hex.h
+++ b/src/lib/codec/hex/hex.h
@@ -20,7 +20,7 @@ namespace Botan {
* @param input_length length of input in bytes
* @param uppercase should output be upper or lower case?
*/
-void BOTAN_DLL hex_encode(char output[],
+void BOTAN_PUBLIC_API(2,0) hex_encode(char output[],
const uint8_t input[],
size_t input_length,
bool uppercase = true);
@@ -32,7 +32,7 @@ void BOTAN_DLL hex_encode(char output[],
* @param uppercase should output be upper or lower case?
* @return hexadecimal representation of input
*/
-std::string BOTAN_DLL hex_encode(const uint8_t input[],
+std::string BOTAN_PUBLIC_API(2,0) hex_encode(const uint8_t input[],
size_t input_length,
bool uppercase = true);
@@ -62,7 +62,7 @@ std::string hex_encode(const std::vector<uint8_t, Alloc>& input,
exception if whitespace is encountered
* @return number of bytes written to output
*/
-size_t BOTAN_DLL hex_decode(uint8_t output[],
+size_t BOTAN_PUBLIC_API(2,0) hex_decode(uint8_t output[],
const char input[],
size_t input_length,
size_t& input_consumed,
@@ -77,7 +77,7 @@ size_t BOTAN_DLL hex_decode(uint8_t output[],
exception if whitespace is encountered
* @return number of bytes written to output
*/
-size_t BOTAN_DLL hex_decode(uint8_t output[],
+size_t BOTAN_PUBLIC_API(2,0) hex_decode(uint8_t output[],
const char input[],
size_t input_length,
bool ignore_ws = true);
@@ -90,7 +90,7 @@ size_t BOTAN_DLL hex_decode(uint8_t output[],
exception if whitespace is encountered
* @return number of bytes written to output
*/
-size_t BOTAN_DLL hex_decode(uint8_t output[],
+size_t BOTAN_PUBLIC_API(2,0) hex_decode(uint8_t output[],
const std::string& input,
bool ignore_ws = true);
@@ -102,7 +102,7 @@ size_t BOTAN_DLL hex_decode(uint8_t output[],
exception if whitespace is encountered
* @return decoded hex output
*/
-std::vector<uint8_t> BOTAN_DLL
+std::vector<uint8_t> BOTAN_PUBLIC_API(2,0)
hex_decode(const char input[],
size_t input_length,
bool ignore_ws = true);
@@ -114,7 +114,7 @@ hex_decode(const char input[],
exception if whitespace is encountered
* @return decoded hex output
*/
-std::vector<uint8_t> BOTAN_DLL
+std::vector<uint8_t> BOTAN_PUBLIC_API(2,0)
hex_decode(const std::string& input,
bool ignore_ws = true);
@@ -127,7 +127,7 @@ hex_decode(const std::string& input,
exception if whitespace is encountered
* @return decoded hex output
*/
-secure_vector<uint8_t> BOTAN_DLL
+secure_vector<uint8_t> BOTAN_PUBLIC_API(2,0)
hex_decode_locked(const char input[],
size_t input_length,
bool ignore_ws = true);
@@ -139,7 +139,7 @@ hex_decode_locked(const char input[],
exception if whitespace is encountered
* @return decoded hex output
*/
-secure_vector<uint8_t> BOTAN_DLL
+secure_vector<uint8_t> BOTAN_PUBLIC_API(2,0)
hex_decode_locked(const std::string& input,
bool ignore_ws = true);