• Gilles Peskine's avatar
    PK parse/write: support keylen=0 correctly · 159171b7
    Gilles Peskine authored
    A 0-length buffer for the key is a legitimate edge case. Ensure that
    it works, even with buf=NULL. Document the key and keylen parameters.
    
    There are already test cases for parsing an empty buffer. A subsequent
    commit will add tests for writing to an empty buffer.
    159171b7
pkwrite.c 17.3 KB