projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for setting raw private HMAC keys
[openssl.git]
/
crypto
/
evp
/
p_lib.c
diff --git
a/crypto/evp/p_lib.c
b/crypto/evp/p_lib.c
index 7ec1dd7800ffe1faf508edb6b52500839dd1e067..a92b169f7a6970b999f731ff553a741f3d829daf 100644
(file)
--- 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;
}
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();
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;
}
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();
size_t len)
{
EVP_PKEY *ret = EVP_PKEY_new();