projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
prf redirection build fixes
[openssl.git]
/
crypto
/
kdf
/
tls1_prf.c
diff --git
a/crypto/kdf/tls1_prf.c
b/crypto/kdf/tls1_prf.c
index 3c14b904f873ff66d897db4f7c39068550a9f182..374c6e49ec60af95bd2da01cbb47b63e793ac22f 100644
(file)
--- a/
crypto/kdf/tls1_prf.c
+++ b/
crypto/kdf/tls1_prf.c
@@
-142,7
+142,7
@@
static int pkey_tls1_prf_derive(EVP_PKEY_CTX *ctx, unsigned char *key,
size_t *keylen)
{
TLS1_PRF_PKEY_CTX *kctx = ctx->data;
size_t *keylen)
{
TLS1_PRF_PKEY_CTX *kctx = ctx->data;
- if (kctx->md == NULL || kctx->sec == NULL || kctx->seed
== NULL
)
+ if (kctx->md == NULL || kctx->sec == NULL || kctx->seed
len == 0
)
return 0;
return tls1_prf_alg(kctx->md, kctx->sec, kctx->seclen,
kctx->seed, kctx->seedlen,
return 0;
return tls1_prf_alg(kctx->md, kctx->sec, kctx->seclen,
kctx->seed, kctx->seedlen,