projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
OSSL_PARAM_construct_from_text(): handle non-hex octet string input
[openssl.git]
/
crypto
/
params_from_text.c
diff --git
a/crypto/params_from_text.c
b/crypto/params_from_text.c
index 2a861c94fe341b2d492fdc7d1ba47960916d4404..72770ddc531a13824023fd54982da07d2e23a5f8 100644
(file)
--- a/
crypto/params_from_text.c
+++ b/
crypto/params_from_text.c
@@
-91,6
+91,8
@@
static int prepare_from_text(const OSSL_PARAM *paramdefs, const char *key,
case OSSL_PARAM_OCTET_STRING:
if (*ishex) {
*buf_n = strlen(value) >> 1;
+ } else {
+ *buf_n = value_n;
}
break;
}