X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fevp%2Fp_lib.c;fp=crypto%2Fevp%2Fp_lib.c;h=a92b169f7a6970b999f731ff553a741f3d829daf;hp=7ec1dd7800ffe1faf508edb6b52500839dd1e067;hb=e32b52a27e20a45f51f489e4efc04d1ca72b9609;hpb=cc8b15c7e1934ba710fbce32676451acc9cbe8a0 diff --git a/crypto/evp/p_lib.c b/crypto/evp/p_lib.c index 7ec1dd7800..a92b169f7a 100644 --- a/crypto/evp/p_lib.c +++ b/crypto/evp/p_lib.c @@ -219,7 +219,8 @@ static int pkey_set_type(EVP_PKEY *pkey, ENGINE *e, int type, const char *str, return 1; } -EVP_PKEY *EVP_PKEY_new_private_key(int type, ENGINE *e, unsigned char *priv, +EVP_PKEY *EVP_PKEY_new_private_key(int type, ENGINE *e, + const unsigned char *priv, size_t len) { EVP_PKEY *ret = EVP_PKEY_new(); @@ -248,7 +249,8 @@ EVP_PKEY *EVP_PKEY_new_private_key(int type, ENGINE *e, unsigned char *priv, return NULL; } -EVP_PKEY *EVP_PKEY_new_public_key(int type, ENGINE *e, unsigned char *pub, +EVP_PKEY *EVP_PKEY_new_public_key(int type, ENGINE *e, + const unsigned char *pub, size_t len) { EVP_PKEY *ret = EVP_PKEY_new();