constify *_dup() and *i2d_*() and related functions as far as possible, introducing...
[openssl.git] / crypto / include / internal / evp_int.h
index dc75fe92548a43cfa5987e85f8665adcf275fc93..e55c1d9e5b90ca59b10a194d9f347367157ab002 100644 (file)
@@ -44,7 +44,7 @@ struct evp_pkey_method_st {
     int pkey_id;
     int flags;
     int (*init) (EVP_PKEY_CTX *ctx);
-    int (*copy) (EVP_PKEY_CTX *dst, EVP_PKEY_CTX *src);
+    int (*copy) (EVP_PKEY_CTX *dst, const EVP_PKEY_CTX *src);
     void (*cleanup) (EVP_PKEY_CTX *ctx);
     int (*paramgen_init) (EVP_PKEY_CTX *ctx);
     int (*paramgen) (EVP_PKEY_CTX *ctx, EVP_PKEY *pkey);