[PATCH 1/2] cipher: Add PUBKEY_FLAG_BYTE_STRING to support byte string data.

NIIBE Yutaka gniibe at fsij.org
Tue Jun 24 08:39:53 CEST 2025


Werner Koch <wk at gnupg.org> wrote:
>> +      /* Get VALUE.  */
>> +      value = sexp_nth_buffer (lvalue, 1, &valuelen);
>> +      if (!value)
>> +        rc = GPG_ERR_INV_OBJ;
>> +      if (rc)
>> +        goto leave;
>
> Please change the above to 
>
>> +      if (!value)
>> +        {
>> +          rc = GPG_ERR_INV_OBJ;
>> +          goto leave;
>> +        }
>
> just because this is easier to understand and the same pattern we use
> above.

I see.  Following your suggestion, applied those patches and pushed to master.
-- 



More information about the Gcrypt-devel mailing list