Avoid compiler complaint about mismatched function signatures
authorRichard Levitte <levitte@openssl.org>
Wed, 20 Apr 2005 10:02:16 +0000 (10:02 +0000)
committerRichard Levitte <levitte@openssl.org>
Wed, 20 Apr 2005 10:02:16 +0000 (10:02 +0000)
(void * != RSA *)

crypto/evp/evp.h

index 209e16c..69ed179 100644 (file)
@@ -277,8 +277,8 @@ typedef int evp_verify_method(int type,const unsigned char *m,
                                (evp_verify_method *)RSA_verify, \
                                {EVP_PKEY_RSA,EVP_PKEY_RSA2,0,0}
 #define EVP_PKEY_RSA_ASN1_OCTET_STRING_method \
-                               RSA_sign_ASN1_OCTET_STRING, \
-                               RSA_verify_ASN1_OCTET_STRING, \
+                               (evp_sign_method *)RSA_sign_ASN1_OCTET_STRING, \
+                               (evp_verify_method *)RSA_verify_ASN1_OCTET_STRING, \
                                {EVP_PKEY_RSA,EVP_PKEY_RSA2,0,0}
 #else
 #define EVP_PKEY_RSA_method    EVP_PKEY_NULL_method