aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstate/look_pk.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/libstate/look_pk.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/libstate/look_pk.h')
-rw-r--r--src/libstate/look_pk.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libstate/look_pk.h b/src/libstate/look_pk.h
index c980e5f8d..bbd0e7dba 100644
--- a/src/libstate/look_pk.h
+++ b/src/libstate/look_pk.h
@@ -21,6 +21,7 @@ namespace Botan {
* @param eme determines the algorithm and encoding
* @return public key encryptor object
*/
+BOTAN_DEPRECATED("Instantiate object directly")
inline PK_Encryptor* get_pk_encryptor(const Public_Key& key,
const std::string& eme)
{
@@ -35,6 +36,7 @@ inline PK_Encryptor* get_pk_encryptor(const Public_Key& key,
* @param eme determines the algorithm and encoding
* @return public key decryptor object
*/
+BOTAN_DEPRECATED("Instantiate object directly")
inline PK_Decryptor* get_pk_decryptor(const Private_Key& key,
const std::string& eme)
{
@@ -50,6 +52,7 @@ inline PK_Decryptor* get_pk_decryptor(const Private_Key& key,
* @param sig_format the signature format to be used
* @return public key signer object
*/
+BOTAN_DEPRECATED("Instantiate object directly")
inline PK_Signer* get_pk_signer(const Private_Key& key,
const std::string& emsa,
Signature_Format sig_format = IEEE_1363)
@@ -66,6 +69,7 @@ inline PK_Signer* get_pk_signer(const Private_Key& key,
* @param sig_format the signature format to be used
* @return public key verifier object
*/
+BOTAN_DEPRECATED("Instantiate object directly")
inline PK_Verifier* get_pk_verifier(const Public_Key& key,
const std::string& emsa,
Signature_Format sig_format = IEEE_1363)
@@ -81,8 +85,9 @@ inline PK_Verifier* get_pk_verifier(const Public_Key& key,
* @param kdf the kdf algorithm to use
* @return key agreement algorithm
*/
+BOTAN_DEPRECATED("Instantiate object directly")
inline PK_Key_Agreement* get_pk_kas(const PK_Key_Agreement_Key& key,
- const std::string& kdf)
+ const std::string& kdf)
{
return new PK_Key_Agreement(key, kdf);
}