We should check the eight bytes starting at p[-9] for rollback attack
[oweals/openssl.git] / crypto / rsa / rsa_asn1.c
index 1455a7e0e42bbf344823cfea777e0124ea3a37a7..bbbf26d50ed6b04039c5e59c0737eeaba759ede4 100644 (file)
 #include <openssl/asn1t.h>
 
 static ASN1_METHOD method={
-        (int (*)())  i2d_RSAPrivateKey,
-        (char *(*)())d2i_RSAPrivateKey,
-        (char *(*)())RSA_new,
-        (void (*)()) RSA_free};
+        (I2D_OF(void))     i2d_RSAPrivateKey,
+        (D2I_OF(void))     d2i_RSAPrivateKey,
+        (void *(*)(void))  RSA_new,
+        (void (*)(void *)) RSA_free};
 
 ASN1_METHOD *RSAPrivateKey_asn1_meth(void)
        {