FreeRTOS-Plus/ThirdParty/WolfSSL-FIPS-Ready/wolfcrypt/src/asn.c
/* Set the DER/BER encoding of the ASN.1 NULL element.
 * Note: Function not required as yet.
 *
 * val     Boolean value to encode.
 * output  Buffer to write into.
 * returns the number of bytes added to the buffer.
 */
Set the DER/BER encoding of the ASN.1 NULL element.
Note: Function not required as yet.

val     Boolean value to encode.
output  Buffer to write into.
returns the number of bytes added to the buffer.
Set the DER / BER encoding of the ASN . 1 NULL element . Note : Function not required as yet . val Boolean value to encode . output Buffer to write into . returns the number of bytes added to the buffer .
static int SetBoolean(int val, byte* output)
{
    output[0] = ASN_BOOLEAN;
    output[1] = 1;
    output[2] = val ? -1 : 0;
    return 3;
}
static int SetBoolean ( int val , byte * output ) { output [ 0 ] = ASN_BOOLEAN ; output [ 1 ] = 1 ; output [ 2 ] = val ? -1 : 0 ; return 3 ; }
Set the DER/BER encoding of the ASN.1 NULL element.
Set the DER / BER encoding of the ASN . 1 NULL element .