Changeset 684a21c for tools


Ignore:
Timestamp:
03/02/17 13:47:48 (4 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, master, ndag_format, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance
Children:
f4fdcd1
Parents:
cb075c5
Message:

Don't assert fail if the cryptopan key is too short

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/traceanon/traceanon.cc

    ree6e802 r684a21c  
    223223
    224224        if (enc_type == ENC_CRYPTOPAN) {
     225                if (strlen(key) < 32) {
     226                        fprintf(stderr, "ERROR: Key must be at least 32 "
     227                        "characters long for CryptoPan anonymisation.\n");
     228                        exit(1);
     229                }
    225230#ifdef HAVE_LIBCRYPTO               
    226231                CryptoAnon *anon = new CryptoAnon((uint8_t *)key,
Note: See TracChangeset for help on using the changeset viewer.