X-Git-Url: https://www.bearssl.org/gitweb//home/git/?p=BearSSL;a=blobdiff_plain;f=inc%2Fbearssl.h;h=56df3ecb5197873690c5dc14344c7157d0095acd;hp=6258e92605f735869b087f9beee03f31eeea6f89;hb=89ea3b1876d6a17a754c1f80c74f5076eccda866;hpb=e683ebfe1962ef5b00a972761984674528922a4a diff --git a/inc/bearssl.h b/inc/bearssl.h index 6258e92..56df3ec 100644 --- a/inc/bearssl.h +++ b/inc/bearssl.h @@ -72,7 +72,17 @@ * does not include much failsafes or error reporting when the problem * does not arise from external transient conditions, and can be fixed * only in the application code. This is done so in order to make the - * total code footprint ligther. + * total code footprint lighter. + * + * + * ## `NULL` values + * + * Function parameters with a pointer type shall not be `NULL` unless + * explicitly authorised by the documentation. As an exception, when + * the pointer aims at a sequence of bytes and is accompanied with + * a length parameter, and the length is zero (meaning that there is + * no byte at all to retrieve), then the pointer may be `NULL` even if + * not explicitly allowed. * * * ## Memory Allocation