make EVP_PKEY opaque
[openssl.git] / crypto / evp / p_lib.c
index 7d255af5826558aa5b2b05adaeac03b99b9b291c..c7a0b5ac4c1e02fa710f8742ac3e7f1d27487fc6 100644 (file)
@@ -78,6 +78,7 @@
 #endif
 
 #include "internal/asn1_int.h"
 #endif
 
 #include "internal/asn1_int.h"
+#include "internal/evp_int.h"
 
 static void EVP_PKEY_free_it(EVP_PKEY *x);
 
 
 static void EVP_PKEY_free_it(EVP_PKEY *x);
 
@@ -275,7 +276,7 @@ int EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key)
     return (key != NULL);
 }
 
     return (key != NULL);
 }
 
-void *EVP_PKEY_get0(EVP_PKEY *pkey)
+void *EVP_PKEY_get0(const EVP_PKEY *pkey)
 {
     return pkey->pkey.ptr;
 }
 {
     return pkey->pkey.ptr;
 }