aboutsummaryrefslogtreecommitdiffstats
path: root/src/pubkey/pkcs8.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-11-02 18:52:38 +0000
committerlloyd <[email protected]>2010-11-02 18:52:38 +0000
commit6f07da35714ed19149be572952eb5bc5584f7fc4 (patch)
tree5eeec50aa84a73a15b45b63ad7b7cff2bd0d3657 /src/pubkey/pkcs8.h
parent66ff3ef44894c159c1c51cd282b550ea3826a007 (diff)
Add a BOTAN_DEPRECATED macro which can provide compile-time
deprecation warnings (at least for GCC and VC++). Use in some places.
Diffstat (limited to 'src/pubkey/pkcs8.h')
-rw-r--r--src/pubkey/pkcs8.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pubkey/pkcs8.h b/src/pubkey/pkcs8.h
index 376429d5b..00607b329 100644
--- a/src/pubkey/pkcs8.h
+++ b/src/pubkey/pkcs8.h
@@ -81,6 +81,7 @@ BOTAN_DLL std::string PEM_encode(const Private_Key& key,
* @param pipe the pipe to feed the encoded key into
* @param encoding the encoding type to use
*/
+BOTAN_DEPRECATED("Use PEM_encode or BER_encode")
inline void encode(const Private_Key& key,
Pipe& pipe,
X509_Encoding encoding = PEM)
@@ -104,6 +105,7 @@ inline void encode(const Private_Key& key,
default will be chosen.
* @param encoding the encoding type to use
*/
+BOTAN_DEPRECATED("Use PEM_encode or BER_encode")
inline void encrypt_key(const Private_Key& key,
Pipe& pipe,
RandomNumberGenerator& rng,