Add internal maxsize macros
authorRichard Levitte <levitte@openssl.org>
Wed, 22 Jan 2020 13:00:21 +0000 (14:00 +0100)
committerRichard Levitte <levitte@openssl.org>
Thu, 23 Jan 2020 16:17:47 +0000 (17:17 +0100)
commitc24937d5e71a990763f227be229ad41aab44728f
tree045fff71c29ad7e98c4f57c2d8d4c94ae2d4e372
parenta88aef32c902b79261c53a16546f4adbf6b3a617
Add internal maxsize macros

We've started to see "magic" numbers being used for certain sizes,
such as algorithm names and property query strings.

This change takes care of the few items where buffers for algorithm
names and property query strings are used.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/10928)
include/internal/sizes.h [new file with mode: 0644]
providers/implementations/asymciphers/rsa_enc.c
providers/implementations/signature/dsa.c