Latest update.
This commit is contained in:
+4
-1
@@ -780,7 +780,7 @@ static int get_string_internal(const OSSL_PARAM *p, void **val, size_t max_len,
|
||||
{
|
||||
size_t sz;
|
||||
|
||||
if (val == NULL || p == NULL || p->data_type != type)
|
||||
if ((val == NULL && used_len == NULL) || p == NULL || p->data_type != type)
|
||||
return 0;
|
||||
|
||||
sz = p->data_size;
|
||||
@@ -793,6 +793,9 @@ static int get_string_internal(const OSSL_PARAM *p, void **val, size_t max_len,
|
||||
if (p->data == NULL)
|
||||
return 0;
|
||||
|
||||
if (val == NULL)
|
||||
return 1;
|
||||
|
||||
if (*val == NULL) {
|
||||
char *const q = OPENSSL_malloc(sz);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user