Replace the old ASN1_dup() with ASN1_item_dup() and
[oweals/openssl.git] / crypto / rsa / rsa.h
index a488b8076335d5717c0718f61de433c348708f1c..2de99d529a109db80bba93a29944c4e4ee308e22 100644 (file)
@@ -59,6 +59,8 @@
 #ifndef HEADER_RSA_H
 #define HEADER_RSA_H
 
+#include <openssl/asn1.h>
+
 #ifndef NO_BIO
 #include <openssl/bio.h>
 #endif
@@ -222,10 +224,9 @@ const RSA_METHOD *RSA_null_method(void);
 
 void   ERR_load_RSA_strings(void );
 
-RSA *  d2i_RSAPublicKey(RSA **a, const unsigned char **pp, long length);
-int    i2d_RSAPublicKey(const RSA *a, unsigned char **pp);
-RSA *  d2i_RSAPrivateKey(RSA **a, const unsigned char **pp, long length);
-int    i2d_RSAPrivateKey(const RSA *a, unsigned char **pp);
+DECLARE_ASN1_ENCODE_FUNCTIONS_const(RSA, RSAPublicKey)
+DECLARE_ASN1_ENCODE_FUNCTIONS_const(RSA, RSAPrivateKey)
+
 #ifndef NO_FP_API
 int    RSA_print_fp(FILE *fp, const RSA *r,int offset);
 #endif