OSSL_PARAM_construct_from_text(): handle non-hex octet string input
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/8877)
This commit is contained in:
parent
f73eb733ee
commit
810a1d0320
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue