7b37434 Require that binary decoding leaves no leftovers

Authored and Committed by nalin 8 years ago
1 file changed. 3 lines added. 3 lines removed.
    Require that binary decoding leaves no leftovers
    
    When decoding a PKCS#7 signed-data or certificate, reject a result if a
    successful decode leaves us with trailing binary data that isn't parsed,
    just in case the sender's trying something malicious.
    
        
file modified
+3 -3